Lines Matching refs:val
283 int val);
298 static void pcnet32_wio_write_csr(unsigned long addr, int index, u16 val)
301 outw(val, addr + PCNET32_WIO_RDP);
310 static void pcnet32_wio_write_bcr(unsigned long addr, int index, u16 val)
313 outw(val, addr + PCNET32_WIO_BDP);
321 static void pcnet32_wio_write_rap(unsigned long addr, u16 val)
323 outw(val, addr + PCNET32_WIO_RAP);
353 static void pcnet32_dwio_write_csr(unsigned long addr, int index, u16 val)
356 outl(val, addr + PCNET32_DWIO_RDP);
365 static void pcnet32_dwio_write_bcr(unsigned long addr, int index, u16 val)
368 outl(val, addr + PCNET32_DWIO_BDP);
376 static void pcnet32_dwio_write_rap(unsigned long addr, u16 val)
378 outl(val, addr + PCNET32_DWIO_RAP);
440 u16 val;
450 val = lp->a.read_bcr(ioaddr, 2) & ~2;
452 val |= 2;
453 lp->a.write_bcr(ioaddr, 2, val);
456 val = lp->a.read_bcr(ioaddr, 9) & ~3;
458 val |= 1;
461 val |= 2;
470 val |= 3;
472 lp->a.write_bcr(ioaddr, 9, val);
476 val = lp->a.read_csr(ioaddr, 124) & ~0x10;
478 val |= 0x10;
479 lp->a.write_csr(ioaddr, 124, val);
482 val = lp->a.read_bcr(ioaddr, 32) & ~0x38; /* disable Auto Negotiation, set 10Mpbs, HD */
484 val |= 0x10;
486 val |= 0x08;
487 lp->a.write_bcr(ioaddr, 32, val);
490 val = lp->a.read_bcr(ioaddr, 32) & ~0x98;
491 val |= 0x20;
492 lp->a.write_bcr(ioaddr, 32, val);
498 val = lp->a.read_csr(ioaddr, 3);
499 val |= 0x40;
500 lp->a.write_csr(ioaddr, 3, val);
505 val = lp->a.read_csr(ioaddr, 5);
506 val |= (1 << 14);
507 lp->a.write_csr(ioaddr, 5, val);
975 int val)
986 lp->a.write_bcr(ioaddr, 34, val);