csr0 445 drivers/net/ethernet/amd/7990.c int csr0; csr0 450 drivers/net/ethernet/amd/7990.c csr0 = READRDP(lp); csr0 454 drivers/net/ethernet/amd/7990.c if (!(csr0 & LE_C0_INTR)) { /* Check if any interrupt has */ csr0 460 drivers/net/ethernet/amd/7990.c WRITERDP(lp, csr0 & ~(LE_C0_INEA|LE_C0_TDMD|LE_C0_STOP|LE_C0_STRT|LE_C0_INIT)); csr0 462 drivers/net/ethernet/amd/7990.c if ((csr0 & LE_C0_ERR)) { csr0 467 drivers/net/ethernet/amd/7990.c if (csr0 & LE_C0_RINT) csr0 470 drivers/net/ethernet/amd/7990.c if (csr0 & LE_C0_TINT) csr0 474 drivers/net/ethernet/amd/7990.c if (csr0 & LE_C0_BABL) csr0 476 drivers/net/ethernet/amd/7990.c if (csr0 & LE_C0_MISS) csr0 478 drivers/net/ethernet/amd/7990.c if (csr0 & LE_C0_MERR) { csr0 480 drivers/net/ethernet/amd/7990.c dev->name, csr0); csr0 419 drivers/net/ethernet/amd/a2065.c int csr0; csr0 422 drivers/net/ethernet/amd/a2065.c csr0 = ll->rdp; csr0 424 drivers/net/ethernet/amd/a2065.c if (!(csr0 & LE_C0_INTR)) /* Check if any interrupt has */ csr0 428 drivers/net/ethernet/amd/a2065.c ll->rdp = csr0 & ~(LE_C0_INEA | LE_C0_TDMD | LE_C0_STOP | LE_C0_STRT | csr0 431 drivers/net/ethernet/amd/a2065.c if (csr0 & LE_C0_ERR) { csr0 436 drivers/net/ethernet/amd/a2065.c if (csr0 & LE_C0_RINT) csr0 439 drivers/net/ethernet/amd/a2065.c if (csr0 & LE_C0_TINT) csr0 443 drivers/net/ethernet/amd/a2065.c if (csr0 & LE_C0_BABL) csr0 445 drivers/net/ethernet/amd/a2065.c if (csr0 & LE_C0_MISS) csr0 447 drivers/net/ethernet/amd/a2065.c if (csr0 & LE_C0_MERR) { csr0 449 drivers/net/ethernet/amd/a2065.c csr0); csr0 244 drivers/net/ethernet/amd/ariadne.c int csr0, boguscnt; csr0 255 drivers/net/ethernet/amd/ariadne.c while ((csr0 = lance->RDP) & (ERR | RINT | TINT) && --boguscnt >= 0) { csr0 257 drivers/net/ethernet/amd/ariadne.c lance->RDP = csr0 & ~(INEA | TDMD | STOP | STRT | INIT); csr0 262 drivers/net/ethernet/amd/ariadne.c csr0, lance->RDP); csr0 263 drivers/net/ethernet/amd/ariadne.c if (csr0 & INTR) csr0 265 drivers/net/ethernet/amd/ariadne.c if (csr0 & INEA) csr0 267 drivers/net/ethernet/amd/ariadne.c if (csr0 & RXON) csr0 269 drivers/net/ethernet/amd/ariadne.c if (csr0 & TXON) csr0 271 drivers/net/ethernet/amd/ariadne.c if (csr0 & TDMD) csr0 273 drivers/net/ethernet/amd/ariadne.c if (csr0 & STOP) csr0 275 drivers/net/ethernet/amd/ariadne.c if (csr0 & STRT) csr0 277 drivers/net/ethernet/amd/ariadne.c if (csr0 & INIT) csr0 279 drivers/net/ethernet/amd/ariadne.c if (csr0 & ERR) csr0 281 drivers/net/ethernet/amd/ariadne.c if (csr0 & BABL) csr0 283 drivers/net/ethernet/amd/ariadne.c if (csr0 & CERR) csr0 285 drivers/net/ethernet/amd/ariadne.c if (csr0 & MISS) csr0 287 drivers/net/ethernet/amd/ariadne.c if (csr0 & MERR) csr0 289 drivers/net/ethernet/amd/ariadne.c if (csr0 & RINT) csr0 291 drivers/net/ethernet/amd/ariadne.c if (csr0 & TINT) csr0 293 drivers/net/ethernet/amd/ariadne.c if (csr0 & IDON) csr0 299 drivers/net/ethernet/amd/ariadne.c if (csr0 & RINT) { /* Rx interrupt */ csr0 304 drivers/net/ethernet/amd/ariadne.c if (csr0 & TINT) { /* Tx-done interrupt */ csr0 332 drivers/net/ethernet/amd/ariadne.c csr0); csr0 364 drivers/net/ethernet/amd/ariadne.c if (csr0 & BABL) { csr0 368 drivers/net/ethernet/amd/ariadne.c if (csr0 & MISS) { csr0 372 drivers/net/ethernet/amd/ariadne.c if (csr0 & MERR) { csr0 375 drivers/net/ethernet/amd/ariadne.c csr0); csr0 855 drivers/net/ethernet/amd/atarilance.c int csr0, boguscnt = 10; csr0 869 drivers/net/ethernet/amd/atarilance.c while( ((csr0 = DREG) & (CSR0_ERR | CSR0_TINT | CSR0_RINT)) && csr0 873 drivers/net/ethernet/amd/atarilance.c DREG = csr0 & ~(CSR0_INIT | CSR0_STRT | CSR0_STOP | csr0 877 drivers/net/ethernet/amd/atarilance.c dev->name, csr0, DREG )); csr0 879 drivers/net/ethernet/amd/atarilance.c if (csr0 & CSR0_RINT) /* Rx interrupt */ csr0 882 drivers/net/ethernet/amd/atarilance.c if (csr0 & CSR0_TINT) { /* Tx-done interrupt */ csr0 906 drivers/net/ethernet/amd/atarilance.c dev->name, csr0 )); csr0 940 drivers/net/ethernet/amd/atarilance.c if (csr0 & CSR0_BABL) dev->stats.tx_errors++; /* Tx babble. */ csr0 941 drivers/net/ethernet/amd/atarilance.c if (csr0 & CSR0_MISS) dev->stats.rx_errors++; /* Missed a Rx frame. */ csr0 942 drivers/net/ethernet/amd/atarilance.c if (csr0 & CSR0_MERR) { csr0 944 drivers/net/ethernet/amd/atarilance.c "status %04x.\n", dev->name, csr0 )); csr0 739 drivers/net/ethernet/amd/declance.c int csr0; csr0 742 drivers/net/ethernet/amd/declance.c csr0 = ll->rdp; csr0 745 drivers/net/ethernet/amd/declance.c writereg(&ll->rdp, csr0 & (LE_C0_INTR | LE_C0_TINT | LE_C0_RINT)); csr0 747 drivers/net/ethernet/amd/declance.c if ((csr0 & LE_C0_ERR)) { csr0 752 drivers/net/ethernet/amd/declance.c if (csr0 & LE_C0_RINT) csr0 755 drivers/net/ethernet/amd/declance.c if (csr0 & LE_C0_TINT) csr0 758 drivers/net/ethernet/amd/declance.c if (csr0 & LE_C0_BABL) csr0 761 drivers/net/ethernet/amd/declance.c if (csr0 & LE_C0_MISS) csr0 764 drivers/net/ethernet/amd/declance.c if (csr0 & LE_C0_MERR) { csr0 765 drivers/net/ethernet/amd/declance.c printk("%s: Memory error, status %04x\n", dev->name, csr0); csr0 1024 drivers/net/ethernet/amd/lance.c int csr0, ioaddr, boguscnt=10; csr0 1033 drivers/net/ethernet/amd/lance.c while ((csr0 = inw(dev->base_addr + LANCE_DATA)) & 0x8600 && csr0 1036 drivers/net/ethernet/amd/lance.c outw(csr0 & ~0x004f, dev->base_addr + LANCE_DATA); csr0 1042 drivers/net/ethernet/amd/lance.c dev->name, csr0, inw(dev->base_addr + LANCE_DATA)); csr0 1044 drivers/net/ethernet/amd/lance.c if (csr0 & 0x0400) /* Rx interrupt */ csr0 1047 drivers/net/ethernet/amd/lance.c if (csr0 & 0x0200) { /* Tx-done interrupt */ csr0 1074 drivers/net/ethernet/amd/lance.c dev->name, csr0); csr0 1111 drivers/net/ethernet/amd/lance.c if (csr0 & 0x4000) csr0 1113 drivers/net/ethernet/amd/lance.c if (csr0 & 0x1000) csr0 1115 drivers/net/ethernet/amd/lance.c if (csr0 & 0x0800) { csr0 1117 drivers/net/ethernet/amd/lance.c dev->name, csr0); csr0 721 drivers/net/ethernet/amd/ni65.c int csr0 = CSR0_INEA; csr0 761 drivers/net/ethernet/amd/ni65.c writedatareg(CSR0_STRT | csr0); csr0 770 drivers/net/ethernet/amd/ni65.c writedatareg(CSR0_TDMD | CSR0_INEA | csr0); csr0 783 drivers/net/ethernet/amd/ni65.c writedatareg(CSR0_STRT | csr0); csr0 873 drivers/net/ethernet/amd/ni65.c int csr0 = 0; csr0 883 drivers/net/ethernet/amd/ni65.c csr0 = inw(PORT+L_DATAREG); csr0 886 drivers/net/ethernet/amd/ni65.c writedatareg( (csr0 & CSR0_CLRALL) ); /* ack interrupts, disable int. */ csr0 888 drivers/net/ethernet/amd/ni65.c writedatareg( (csr0 & CSR0_CLRALL) | CSR0_INEA ); /* ack interrupts, interrupts enabled */ csr0 891 drivers/net/ethernet/amd/ni65.c if(!(csr0 & (CSR0_ERR | CSR0_RINT | CSR0_TINT))) csr0 894 drivers/net/ethernet/amd/ni65.c if(csr0 & CSR0_RINT) /* RECV-int? */ csr0 895 drivers/net/ethernet/amd/ni65.c ni65_recv_intr(dev,csr0); csr0 896 drivers/net/ethernet/amd/ni65.c if(csr0 & CSR0_TINT) /* XMIT-int? */ csr0 897 drivers/net/ethernet/amd/ni65.c ni65_xmit_intr(dev,csr0); csr0 899 drivers/net/ethernet/amd/ni65.c if(csr0 & CSR0_ERR) csr0 902 drivers/net/ethernet/amd/ni65.c printk(KERN_ERR "%s: general error: %04x.\n",dev->name,csr0); csr0 903 drivers/net/ethernet/amd/ni65.c if(csr0 & CSR0_BABL) csr0 905 drivers/net/ethernet/amd/ni65.c if(csr0 & CSR0_MISS) { csr0 912 drivers/net/ethernet/amd/ni65.c if(csr0 & CSR0_MERR) { csr0 914 drivers/net/ethernet/amd/ni65.c printk(KERN_ERR "%s: Ooops .. memory error: %04x.\n",dev->name,csr0); csr0 955 drivers/net/ethernet/amd/ni65.c ni65_recv_intr(dev,csr0); csr0 965 drivers/net/ethernet/amd/ni65.c if( (csr0 & (CSR0_RXON | CSR0_TXON)) != (CSR0_RXON | CSR0_TXON) ) { csr0 980 drivers/net/ethernet/amd/ni65.c static void ni65_xmit_intr(struct net_device *dev,int csr0) csr0 1017 drivers/net/ethernet/amd/ni65.c printk(KERN_ERR "%s: xmit-error: %04x %02x-%04x\n",dev->name,csr0,(int) tmdstat,(int) tmdp->status2); csr0 1018 drivers/net/ethernet/amd/ni65.c if(!(csr0 & CSR0_BABL)) /* don't count errors twice */ csr0 1044 drivers/net/ethernet/amd/ni65.c static void ni65_recv_intr(struct net_device *dev,int csr0) csr0 1067 drivers/net/ethernet/amd/ni65.c dev->name,(int) rmdstat,csr0,(int) inw(PORT+L_DATAREG) ); csr0 1077 drivers/net/ethernet/amd/ni65.c if(!(csr0 & CSR0_MISS)) /* don't count errors twice */ csr0 1444 drivers/net/ethernet/amd/pcnet32.c int i, csr0; csr0 1453 drivers/net/ethernet/amd/pcnet32.c csr0 = a->read_csr(ioaddr, CSR0); csr0 1454 drivers/net/ethernet/amd/pcnet32.c if (!(csr0 & CSR0_STOP)) /* If not stopped */ csr0 1491 drivers/net/ethernet/amd/pcnet32.c if (!(csr0 & CSR0_STOP)) /* If not stopped */ csr0 2564 drivers/net/ethernet/amd/pcnet32.c u16 csr0; csr0 2572 drivers/net/ethernet/amd/pcnet32.c csr0 = lp->a->read_csr(ioaddr, CSR0); csr0 2573 drivers/net/ethernet/amd/pcnet32.c while ((csr0 & 0x8f00) && --boguscnt >= 0) { csr0 2574 drivers/net/ethernet/amd/pcnet32.c if (csr0 == 0xffff) csr0 2577 drivers/net/ethernet/amd/pcnet32.c lp->a->write_csr(ioaddr, CSR0, csr0 & ~0x004f); csr0 2581 drivers/net/ethernet/amd/pcnet32.c csr0, lp->a->read_csr(ioaddr, CSR0)); csr0 2584 drivers/net/ethernet/amd/pcnet32.c if (csr0 & 0x4000) csr0 2586 drivers/net/ethernet/amd/pcnet32.c if (csr0 & 0x1000) { csr0 2600 drivers/net/ethernet/amd/pcnet32.c if (csr0 & 0x0800) { csr0 2602 drivers/net/ethernet/amd/pcnet32.c csr0); csr0 2615 drivers/net/ethernet/amd/pcnet32.c csr0 = lp->a->read_csr(ioaddr, CSR0); csr0 659 drivers/net/ethernet/amd/sun3lance.c int csr0; csr0 675 drivers/net/ethernet/amd/sun3lance.c csr0 = DREG; csr0 678 drivers/net/ethernet/amd/sun3lance.c DREG = csr0 & (CSR0_TINT | CSR0_RINT | CSR0_IDON); csr0 681 drivers/net/ethernet/amd/sun3lance.c if(csr0 & CSR0_ERR) csr0 686 drivers/net/ethernet/amd/sun3lance.c dev->name, csr0, DREG )); csr0 688 drivers/net/ethernet/amd/sun3lance.c if (csr0 & CSR0_TINT) { /* Tx-done interrupt */ csr0 747 drivers/net/ethernet/amd/sun3lance.c if (csr0 & CSR0_RINT) /* Rx interrupt */ csr0 751 drivers/net/ethernet/amd/sun3lance.c if (csr0 & CSR0_BABL) dev->stats.tx_errors++; /* Tx babble. */ csr0 752 drivers/net/ethernet/amd/sun3lance.c if (csr0 & CSR0_MISS) dev->stats.rx_errors++; /* Missed a Rx frame. */ csr0 753 drivers/net/ethernet/amd/sun3lance.c if (csr0 & CSR0_MERR) { csr0 755 drivers/net/ethernet/amd/sun3lance.c "status %04x.\n", dev->name, csr0 )); csr0 819 drivers/net/ethernet/amd/sunlance.c int csr0; csr0 822 drivers/net/ethernet/amd/sunlance.c csr0 = sbus_readw(lp->lregs + RDP); csr0 825 drivers/net/ethernet/amd/sunlance.c sbus_writew(csr0 & (LE_C0_INTR | LE_C0_TINT | LE_C0_RINT), csr0 828 drivers/net/ethernet/amd/sunlance.c if ((csr0 & LE_C0_ERR) != 0) { csr0 835 drivers/net/ethernet/amd/sunlance.c if (csr0 & LE_C0_RINT) csr0 838 drivers/net/ethernet/amd/sunlance.c if (csr0 & LE_C0_TINT) csr0 841 drivers/net/ethernet/amd/sunlance.c if (csr0 & LE_C0_BABL) csr0 844 drivers/net/ethernet/amd/sunlance.c if (csr0 & LE_C0_MISS) csr0 847 drivers/net/ethernet/amd/sunlance.c if (csr0 & LE_C0_MERR) { csr0 852 drivers/net/ethernet/amd/sunlance.c dev->name, csr0, addr & 0xffffff); csr0 855 drivers/net/ethernet/amd/sunlance.c dev->name, csr0); csr0 827 drivers/net/ethernet/dec/tulip/de4x5.c s32 csr0; /* Saved Bus Mode Register */ csr0 3737 drivers/net/ethernet/dec/tulip/de4x5.c lp->cache.csr0 = inl(DE4X5_BMR); csr0 3743 drivers/net/ethernet/dec/tulip/de4x5.c outl(lp->cache.csr0, DE4X5_BMR); csr0 437 drivers/net/ethernet/dec/tulip/tulip.h unsigned int csr0; /* CSR0 setting. */ csr0 87 drivers/net/ethernet/dec/tulip/tulip_core.c static int csr0 = 0x01A00000 | 0xE000; csr0 89 drivers/net/ethernet/dec/tulip/tulip_core.c static int csr0 = 0x01A00000 | 0x8000; csr0 95 drivers/net/ethernet/dec/tulip/tulip_core.c static int csr0 = 0x01A00000 | 0x9000; csr0 97 drivers/net/ethernet/dec/tulip/tulip_core.c static int csr0 = 0x01A00000 | 0x4800; csr0 99 drivers/net/ethernet/dec/tulip/tulip_core.c static int csr0 = 0x00200000 | 0x4000; csr0 101 drivers/net/ethernet/dec/tulip/tulip_core.c static int csr0; csr0 116 drivers/net/ethernet/dec/tulip/tulip_core.c module_param(csr0, int, 0); csr0 325 drivers/net/ethernet/dec/tulip/tulip_core.c iowrite32(tp->csr0, ioaddr + CSR0); csr0 1195 drivers/net/ethernet/dec/tulip/tulip_core.c u32 csr0; csr0 1200 drivers/net/ethernet/dec/tulip/tulip_core.c tp->csr0 = csr0 = 0; csr0 1203 drivers/net/ethernet/dec/tulip/tulip_core.c csr0 |= MRM | MWI; csr0 1212 drivers/net/ethernet/dec/tulip/tulip_core.c if ((csr0 & MWI) && (!(pci_command & PCI_COMMAND_INVALIDATE))) csr0 1213 drivers/net/ethernet/dec/tulip/tulip_core.c csr0 &= ~MWI; csr0 1217 drivers/net/ethernet/dec/tulip/tulip_core.c if ((csr0 & MWI) && (cache == 0)) { csr0 1218 drivers/net/ethernet/dec/tulip/tulip_core.c csr0 &= ~MWI; csr0 1227 drivers/net/ethernet/dec/tulip/tulip_core.c csr0 |= MRL | (1 << CALShift) | (16 << BurstLenShift); csr0 1230 drivers/net/ethernet/dec/tulip/tulip_core.c csr0 |= MRL | (2 << CALShift) | (16 << BurstLenShift); csr0 1233 drivers/net/ethernet/dec/tulip/tulip_core.c csr0 |= MRL | (3 << CALShift) | (32 << BurstLenShift); csr0 1247 drivers/net/ethernet/dec/tulip/tulip_core.c if (csr0 & MWI) { csr0 1249 drivers/net/ethernet/dec/tulip/tulip_core.c csr0 &= ~MWI; csr0 1255 drivers/net/ethernet/dec/tulip/tulip_core.c csr0 |= (8 << BurstLenShift) | (1 << CALShift); csr0 1258 drivers/net/ethernet/dec/tulip/tulip_core.c tp->csr0 = csr0; csr0 1261 drivers/net/ethernet/dec/tulip/tulip_core.c cache, csr0); csr0 1378 drivers/net/ethernet/dec/tulip/tulip_core.c csr0 = MRL | MRM | (8 << BurstLenShift) | (1 << CALShift); csr0 1384 drivers/net/ethernet/dec/tulip/tulip_core.c if ((csr0 & 0x3f00) == 0) csr0 1385 drivers/net/ethernet/dec/tulip/tulip_core.c csr0 |= 0x2000; csr0 1390 drivers/net/ethernet/dec/tulip/tulip_core.c csr0 &= ~0xfff10000; /* zero reserved bits 31:20, 16 */ csr0 1394 drivers/net/ethernet/dec/tulip/tulip_core.c csr0 &= ~0x01f100ff; csr0 1396 drivers/net/ethernet/dec/tulip/tulip_core.c csr0 = (csr0 & ~0xff00) | 0xe000; csr0 1470 drivers/net/ethernet/dec/tulip/tulip_core.c tp->csr0 = csr0; csr0 1976 drivers/net/ethernet/dec/tulip/tulip_core.c if (!csr0) { csr0 1979 drivers/net/ethernet/dec/tulip/tulip_core.c csr0 = 0x00A00000 | 0x4800; csr0 538 drivers/net/wan/sbni.c unsigned char csr0; csr0 550 drivers/net/wan/sbni.c csr0 = inb( ioaddr + CSR0 ); csr0 551 drivers/net/wan/sbni.c if( ( csr0 & (RC_RDY | TR_RDY) ) == 0 ) csr0 556 drivers/net/wan/sbni.c if( csr0 & RC_RDY ) csr0 563 drivers/net/wan/sbni.c csr0 = inb( ioaddr + CSR0 ); csr0 564 drivers/net/wan/sbni.c if( !(csr0 & TR_RDY) || (csr0 & RC_RDY) ) csr0 1038 drivers/net/wan/sbni.c unsigned char csr0; csr0 1042 drivers/net/wan/sbni.c csr0 = inb( dev->base_addr + CSR0 ); csr0 1043 drivers/net/wan/sbni.c if( csr0 & RC_CHK ) { csr0 1046 drivers/net/wan/sbni.c if( csr0 & (RC_RDY | BU_EMP) ) csr0 1056 drivers/net/wan/sbni.c csr0 = inb( dev->base_addr + CSR0 ); csr0 1061 drivers/net/wan/sbni.c outb( csr0 | RC_CHK, dev->base_addr + CSR0 ); csr0 1271 drivers/net/wan/sbni.c unsigned char csr0; csr0 1273 drivers/net/wan/sbni.c csr0 = inb( ioaddr + CSR0 ); csr0 1274 drivers/net/wan/sbni.c if( csr0 != 0xff && csr0 != 0x00 ) { csr0 1275 drivers/net/wan/sbni.c csr0 &= ~EN_INT; csr0 1276 drivers/net/wan/sbni.c if( csr0 & BU_EMP ) csr0 1277 drivers/net/wan/sbni.c csr0 |= EN_INT; csr0 1279 drivers/net/wan/sbni.c if( VALID_DECODER & (1 << (csr0 >> 4)) ) csr0 307 drivers/usb/mtu3/mtu3_core.c u32 csr0, csr1, csr2; csr0 321 drivers/usb/mtu3/mtu3_core.c csr0 = TX_TXMAXPKTSZ(mep->maxp); csr0 322 drivers/usb/mtu3/mtu3_core.c csr0 |= TX_DMAREQEN; csr0 348 drivers/usb/mtu3/mtu3_core.c mtu3_writel(mbase, MU3D_EP_TXCR0(epnum), csr0); csr0 357 drivers/usb/mtu3/mtu3_core.c csr0 = RX_RXMAXPKTSZ(mep->maxp); csr0 358 drivers/usb/mtu3/mtu3_core.c csr0 |= RX_DMAREQEN; csr0 384 drivers/usb/mtu3/mtu3_core.c mtu3_writel(mbase, MU3D_EP_RXCR0(epnum), csr0); csr0 394 drivers/usb/mtu3/mtu3_core.c dev_dbg(mtu->dev, "csr0:%#x, csr1:%#x, csr2:%#x\n", csr0, csr1, csr2);