/Linux-v6.6/drivers/net/ethernet/amd/ |
D | ariadne.c | 244 int csr0, boguscnt; in ariadne_interrupt() local 255 while ((csr0 = lance->RDP) & (ERR | RINT | TINT) && --boguscnt >= 0) { in ariadne_interrupt() 257 lance->RDP = csr0 & ~(INEA | TDMD | STOP | STRT | INIT); in ariadne_interrupt() 262 csr0, lance->RDP); in ariadne_interrupt() 263 if (csr0 & INTR) in ariadne_interrupt() 265 if (csr0 & INEA) in ariadne_interrupt() 267 if (csr0 & RXON) in ariadne_interrupt() 269 if (csr0 & TXON) in ariadne_interrupt() 271 if (csr0 & TDMD) in ariadne_interrupt() 273 if (csr0 & STOP) in ariadne_interrupt() [all …]
|
D | 7990.c | 445 int csr0; in lance_interrupt() local 450 csr0 = READRDP(lp); in lance_interrupt() 454 if (!(csr0 & LE_C0_INTR)) { /* Check if any interrupt has */ in lance_interrupt() 460 WRITERDP(lp, csr0 & ~(LE_C0_INEA|LE_C0_TDMD|LE_C0_STOP|LE_C0_STRT|LE_C0_INIT)); in lance_interrupt() 462 if ((csr0 & LE_C0_ERR)) { in lance_interrupt() 467 if (csr0 & LE_C0_RINT) in lance_interrupt() 470 if (csr0 & LE_C0_TINT) in lance_interrupt() 474 if (csr0 & LE_C0_BABL) in lance_interrupt() 476 if (csr0 & LE_C0_MISS) in lance_interrupt() 478 if (csr0 & LE_C0_MERR) { in lance_interrupt() [all …]
|
D | a2065.c | 415 int csr0; in lance_interrupt() local 418 csr0 = ll->rdp; in lance_interrupt() 420 if (!(csr0 & LE_C0_INTR)) /* Check if any interrupt has */ in lance_interrupt() 424 ll->rdp = csr0 & ~(LE_C0_INEA | LE_C0_TDMD | LE_C0_STOP | LE_C0_STRT | in lance_interrupt() 427 if (csr0 & LE_C0_ERR) { in lance_interrupt() 432 if (csr0 & LE_C0_RINT) in lance_interrupt() 435 if (csr0 & LE_C0_TINT) in lance_interrupt() 439 if (csr0 & LE_C0_BABL) in lance_interrupt() 441 if (csr0 & LE_C0_MISS) in lance_interrupt() 443 if (csr0 & LE_C0_MERR) { in lance_interrupt() [all …]
|
D | sun3lance.c | 653 int csr0; in lance_interrupt() local 659 csr0 = DREG; in lance_interrupt() 662 DREG = csr0 & (CSR0_TINT | CSR0_RINT | CSR0_IDON); in lance_interrupt() 665 if(csr0 & CSR0_ERR) in lance_interrupt() 670 dev->name, csr0, DREG )); in lance_interrupt() 672 if (csr0 & CSR0_TINT) { /* Tx-done interrupt */ in lance_interrupt() 731 if (csr0 & CSR0_RINT) /* Rx interrupt */ in lance_interrupt() 735 if (csr0 & CSR0_BABL) dev->stats.tx_errors++; /* Tx babble. */ in lance_interrupt() 736 if (csr0 & CSR0_MISS) dev->stats.rx_errors++; /* Missed a Rx frame. */ in lance_interrupt() 737 if (csr0 & CSR0_MERR) { in lance_interrupt() [all …]
|
D | atarilance.c | 854 int csr0, boguscnt = 10; in lance_interrupt() local 868 while( ((csr0 = DREG) & (CSR0_ERR | CSR0_TINT | CSR0_RINT)) && in lance_interrupt() 872 DREG = csr0 & ~(CSR0_INIT | CSR0_STRT | CSR0_STOP | in lance_interrupt() 876 dev->name, csr0, DREG )); in lance_interrupt() 878 if (csr0 & CSR0_RINT) /* Rx interrupt */ in lance_interrupt() 881 if (csr0 & CSR0_TINT) { /* Tx-done interrupt */ in lance_interrupt() 905 dev->name, csr0 )); in lance_interrupt() 939 if (csr0 & CSR0_BABL) dev->stats.tx_errors++; /* Tx babble. */ in lance_interrupt() 940 if (csr0 & CSR0_MISS) dev->stats.rx_errors++; /* Missed a Rx frame. */ in lance_interrupt() 941 if (csr0 & CSR0_MERR) { in lance_interrupt() [all …]
|
D | lance.c | 1029 int csr0, ioaddr, boguscnt=10; in lance_interrupt() local 1038 while ((csr0 = inw(dev->base_addr + LANCE_DATA)) & 0x8600 && in lance_interrupt() 1041 outw(csr0 & ~0x004f, dev->base_addr + LANCE_DATA); in lance_interrupt() 1047 dev->name, csr0, inw(dev->base_addr + LANCE_DATA)); in lance_interrupt() 1049 if (csr0 & 0x0400) /* Rx interrupt */ in lance_interrupt() 1052 if (csr0 & 0x0200) { /* Tx-done interrupt */ in lance_interrupt() 1079 dev->name, csr0); in lance_interrupt() 1116 if (csr0 & 0x4000) in lance_interrupt() 1118 if (csr0 & 0x1000) in lance_interrupt() 1120 if (csr0 & 0x0800) { in lance_interrupt() [all …]
|
D | declance.c | 739 int csr0; in lance_interrupt() local 742 csr0 = ll->rdp; in lance_interrupt() 745 writereg(&ll->rdp, csr0 & (LE_C0_INTR | LE_C0_TINT | LE_C0_RINT)); in lance_interrupt() 747 if ((csr0 & LE_C0_ERR)) { in lance_interrupt() 752 if (csr0 & LE_C0_RINT) in lance_interrupt() 755 if (csr0 & LE_C0_TINT) in lance_interrupt() 758 if (csr0 & LE_C0_BABL) in lance_interrupt() 761 if (csr0 & LE_C0_MISS) in lance_interrupt() 764 if (csr0 & LE_C0_MERR) { in lance_interrupt() 765 printk("%s: Memory error, status %04x\n", dev->name, csr0); in lance_interrupt()
|
D | sunlance.c | 814 int csr0; in lance_interrupt() local 817 csr0 = sbus_readw(lp->lregs + RDP); in lance_interrupt() 820 sbus_writew(csr0 & (LE_C0_INTR | LE_C0_TINT | LE_C0_RINT), in lance_interrupt() 823 if ((csr0 & LE_C0_ERR) != 0) { in lance_interrupt() 830 if (csr0 & LE_C0_RINT) in lance_interrupt() 833 if (csr0 & LE_C0_TINT) in lance_interrupt() 836 if (csr0 & LE_C0_BABL) in lance_interrupt() 839 if (csr0 & LE_C0_MISS) in lance_interrupt() 842 if (csr0 & LE_C0_MERR) { in lance_interrupt() 847 dev->name, csr0, addr & 0xffffff); in lance_interrupt() [all …]
|
D | pcnet32.c | 1434 int i, csr0; in pcnet32_get_regs() local 1443 csr0 = a->read_csr(ioaddr, CSR0); in pcnet32_get_regs() 1444 if (!(csr0 & CSR0_STOP)) /* If not stopped */ in pcnet32_get_regs() 1481 if (!(csr0 & CSR0_STOP)) /* If not stopped */ in pcnet32_get_regs() 2557 u16 csr0; in pcnet32_interrupt() local 2565 csr0 = lp->a->read_csr(ioaddr, CSR0); in pcnet32_interrupt() 2566 while ((csr0 & 0x8f00) && --boguscnt >= 0) { in pcnet32_interrupt() 2567 if (csr0 == 0xffff) in pcnet32_interrupt() 2570 lp->a->write_csr(ioaddr, CSR0, csr0 & ~0x004f); in pcnet32_interrupt() 2574 csr0, lp->a->read_csr(ioaddr, CSR0)); in pcnet32_interrupt() [all …]
|
/Linux-v6.6/drivers/net/ethernet/dec/tulip/ |
D | tulip_core.c | 77 static int csr0 = 0x01A00000 | 0xE000; variable 79 static int csr0 = 0x01A00000 | 0x8000; variable 85 static int csr0 = 0x01A00000 | 0x9000; variable 87 static int csr0 = 0x01A00000 | 0x4800; variable 89 static int csr0 = 0x00200000 | 0x4000; variable 91 static int csr0; variable 105 module_param(csr0, int, 0); 314 iowrite32(tp->csr0, ioaddr + CSR0); in tulip_up() 1186 u32 csr0; in tulip_mwi_config() local 1191 tp->csr0 = csr0 = 0; in tulip_mwi_config() [all …]
|
D | tulip.h | 437 unsigned int csr0; /* CSR0 setting. */ member
|
/Linux-v6.6/drivers/usb/mtu3/ |
D | mtu3_core.c | 410 u32 csr0, csr1, csr2; in mtu3_config_ep() local 424 csr0 = TX_TXMAXPKTSZ(mep->maxp); in mtu3_config_ep() 425 csr0 |= TX_DMAREQEN; in mtu3_config_ep() 451 mtu3_writel(mbase, MU3D_EP_TXCR0(epnum), csr0); in mtu3_config_ep() 460 csr0 = RX_RXMAXPKTSZ(mep->maxp); in mtu3_config_ep() 461 csr0 |= RX_DMAREQEN; in mtu3_config_ep() 487 mtu3_writel(mbase, MU3D_EP_RXCR0(epnum), csr0); in mtu3_config_ep() 497 dev_dbg(mtu->dev, "csr0:%#x, csr1:%#x, csr2:%#x\n", csr0, csr1, csr2); in mtu3_config_ep()
|