Home
last modified time | relevance | path

Searched refs:csr0 (Results 1 – 14 of 14) sorted by relevance

/drivers/net/ethernet/amd/
Dariadne.c244 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 …]
Dni65.c726 int csr0 = CSR0_INEA; in ni65_stop_start() local
766 writedatareg(CSR0_STRT | csr0); in ni65_stop_start()
775 writedatareg(CSR0_TDMD | CSR0_INEA | csr0); in ni65_stop_start()
788 writedatareg(CSR0_STRT | csr0); in ni65_stop_start()
878 int csr0 = 0; in ni65_interrupt() local
888 csr0 = inw(PORT+L_DATAREG); in ni65_interrupt()
891 writedatareg( (csr0 & CSR0_CLRALL) ); /* ack interrupts, disable int. */ in ni65_interrupt()
893 writedatareg( (csr0 & CSR0_CLRALL) | CSR0_INEA ); /* ack interrupts, interrupts enabled */ in ni65_interrupt()
896 if(!(csr0 & (CSR0_ERR | CSR0_RINT | CSR0_TINT))) in ni65_interrupt()
899 if(csr0 & CSR0_RINT) /* RECV-int? */ in ni65_interrupt()
[all …]
D7990.c444 int csr0; in lance_interrupt() local
449 csr0 = READRDP(lp); in lance_interrupt()
453 if (!(csr0 & LE_C0_INTR)) { /* Check if any interrupt has */ in lance_interrupt()
459 WRITERDP(lp, csr0 & ~(LE_C0_INEA|LE_C0_TDMD|LE_C0_STOP|LE_C0_STRT|LE_C0_INIT)); in lance_interrupt()
461 if ((csr0 & LE_C0_ERR)) { in lance_interrupt()
466 if (csr0 & LE_C0_RINT) in lance_interrupt()
469 if (csr0 & LE_C0_TINT) in lance_interrupt()
473 if (csr0 & LE_C0_BABL) in lance_interrupt()
475 if (csr0 & LE_C0_MISS) in lance_interrupt()
477 if (csr0 & LE_C0_MERR) { in lance_interrupt()
[all …]
Da2065.c418 int csr0; in lance_interrupt() local
421 csr0 = ll->rdp; in lance_interrupt()
423 if (!(csr0 & LE_C0_INTR)) /* Check if any interrupt has */ in lance_interrupt()
427 ll->rdp = csr0 & ~(LE_C0_INEA | LE_C0_TDMD | LE_C0_STOP | LE_C0_STRT | in lance_interrupt()
430 if (csr0 & LE_C0_ERR) { in lance_interrupt()
435 if (csr0 & LE_C0_RINT) in lance_interrupt()
438 if (csr0 & LE_C0_TINT) in lance_interrupt()
442 if (csr0 & LE_C0_BABL) in lance_interrupt()
444 if (csr0 & LE_C0_MISS) in lance_interrupt()
446 if (csr0 & LE_C0_MERR) { in lance_interrupt()
[all …]
Dsun3lance.c657 int csr0; in lance_interrupt() local
673 csr0 = DREG; in lance_interrupt()
676 DREG = csr0 & (CSR0_TINT | CSR0_RINT | CSR0_IDON); in lance_interrupt()
679 if(csr0 & CSR0_ERR) in lance_interrupt()
684 dev->name, csr0, DREG )); in lance_interrupt()
686 if (csr0 & CSR0_TINT) { /* Tx-done interrupt */ in lance_interrupt()
745 if (csr0 & CSR0_RINT) /* Rx interrupt */ in lance_interrupt()
749 if (csr0 & CSR0_BABL) dev->stats.tx_errors++; /* Tx babble. */ in lance_interrupt()
750 if (csr0 & CSR0_MISS) dev->stats.rx_errors++; /* Missed a Rx frame. */ in lance_interrupt()
751 if (csr0 & CSR0_MERR) { in lance_interrupt()
[all …]
Datarilance.c854 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 …]
Dlance.c1025 int csr0, ioaddr, boguscnt=10; in lance_interrupt() local
1034 while ((csr0 = inw(dev->base_addr + LANCE_DATA)) & 0x8600 && in lance_interrupt()
1037 outw(csr0 & ~0x004f, dev->base_addr + LANCE_DATA); in lance_interrupt()
1043 dev->name, csr0, inw(dev->base_addr + LANCE_DATA)); in lance_interrupt()
1045 if (csr0 & 0x0400) /* Rx interrupt */ in lance_interrupt()
1048 if (csr0 & 0x0200) { /* Tx-done interrupt */ in lance_interrupt()
1075 dev->name, csr0); in lance_interrupt()
1112 if (csr0 & 0x4000) in lance_interrupt()
1114 if (csr0 & 0x1000) in lance_interrupt()
1116 if (csr0 & 0x0800) { in lance_interrupt()
[all …]
Ddeclance.c737 int csr0; in lance_interrupt() local
740 csr0 = ll->rdp; in lance_interrupt()
743 writereg(&ll->rdp, csr0 & (LE_C0_INTR | LE_C0_TINT | LE_C0_RINT)); in lance_interrupt()
745 if ((csr0 & LE_C0_ERR)) { in lance_interrupt()
750 if (csr0 & LE_C0_RINT) in lance_interrupt()
753 if (csr0 & LE_C0_TINT) in lance_interrupt()
756 if (csr0 & LE_C0_BABL) in lance_interrupt()
759 if (csr0 & LE_C0_MISS) in lance_interrupt()
762 if (csr0 & LE_C0_MERR) { in lance_interrupt()
763 printk("%s: Memory error, status %04x\n", dev->name, csr0); in lance_interrupt()
Dsunlance.c818 int csr0; in lance_interrupt() local
821 csr0 = sbus_readw(lp->lregs + RDP); in lance_interrupt()
824 sbus_writew(csr0 & (LE_C0_INTR | LE_C0_TINT | LE_C0_RINT), in lance_interrupt()
827 if ((csr0 & LE_C0_ERR) != 0) { in lance_interrupt()
834 if (csr0 & LE_C0_RINT) in lance_interrupt()
837 if (csr0 & LE_C0_TINT) in lance_interrupt()
840 if (csr0 & LE_C0_BABL) in lance_interrupt()
843 if (csr0 & LE_C0_MISS) in lance_interrupt()
846 if (csr0 & LE_C0_MERR) { in lance_interrupt()
851 dev->name, csr0, addr & 0xffffff); in lance_interrupt()
[all …]
Dpcnet32.c1384 int i, csr0; in pcnet32_get_regs() local
1393 csr0 = a->read_csr(ioaddr, CSR0); in pcnet32_get_regs()
1394 if (!(csr0 & CSR0_STOP)) /* If not stopped */ in pcnet32_get_regs()
1431 if (!(csr0 & CSR0_STOP)) { /* If not stopped */ in pcnet32_get_regs()
2500 u16 csr0; in pcnet32_interrupt() local
2508 csr0 = lp->a->read_csr(ioaddr, CSR0); in pcnet32_interrupt()
2509 while ((csr0 & 0x8f00) && --boguscnt >= 0) { in pcnet32_interrupt()
2510 if (csr0 == 0xffff) in pcnet32_interrupt()
2513 lp->a->write_csr(ioaddr, CSR0, csr0 & ~0x004f); in pcnet32_interrupt()
2517 csr0, lp->a->read_csr(ioaddr, CSR0)); in pcnet32_interrupt()
[all …]
/drivers/net/ethernet/dec/tulip/
Dtulip_core.c87 static int csr0 = 0x01A00000 | 0xE000; variable
89 static int csr0 = 0x01A00000 | 0x8000; variable
95 static int csr0 = 0x01A00000 | 0x9000; variable
97 static int csr0 = 0x01A00000 | 0x4800; variable
99 static int csr0 = 0x00200000 | 0x4000; variable
101 static int csr0; variable
116 module_param(csr0, int, 0);
325 iowrite32(tp->csr0, ioaddr + CSR0); in tulip_up()
1198 u32 csr0; in tulip_mwi_config() local
1203 tp->csr0 = csr0 = 0; in tulip_mwi_config()
[all …]
Dtulip.h437 unsigned int csr0; /* CSR0 setting. */ member
Dde4x5.c827 s32 csr0; /* Saved Bus Mode Register */ member
3732 lp->cache.csr0 = inl(DE4X5_BMR); in de4x5_cache_state()
3738 outl(lp->cache.csr0, DE4X5_BMR); in de4x5_cache_state()
/drivers/net/wan/
Dsbni.c538 unsigned char csr0; in handle_channel() local
550 csr0 = inb( ioaddr + CSR0 ); in handle_channel()
551 if( ( csr0 & (RC_RDY | TR_RDY) ) == 0 ) in handle_channel()
556 if( csr0 & RC_RDY ) in handle_channel()
563 csr0 = inb( ioaddr + CSR0 ); in handle_channel()
564 if( !(csr0 & TR_RDY) || (csr0 & RC_RDY) ) in handle_channel()
1039 unsigned char csr0; in sbni_watchdog() local
1043 csr0 = inb( dev->base_addr + CSR0 ); in sbni_watchdog()
1044 if( csr0 & RC_CHK ) { in sbni_watchdog()
1047 if( csr0 & (RC_RDY | BU_EMP) ) in sbni_watchdog()
[all …]