tag | line | file | source code |
csr0 | 337 | drivers/net/a2065.c | int csr0, boguscnt = 10; |
csr0 | 358 | drivers/net/a2065.c | while ((csr0 = board->Lance.RDP) & (ERR|RINT|TINT) && --boguscnt >= 0){ |
csr0 | 360 | drivers/net/a2065.c | board->Lance.RDP = csr0 & ~(INEA|TDMD|STOP|STRT|INIT); |
csr0 | 365 | drivers/net/a2065.c | dev->name, csr0, board->Lance.RDP); |
csr0 | 367 | drivers/net/a2065.c | if (csr0 & INTR) |
csr0 | 369 | drivers/net/a2065.c | if (csr0 & INEA) |
csr0 | 371 | drivers/net/a2065.c | if (csr0 & RXON) |
csr0 | 373 | drivers/net/a2065.c | if (csr0 & TXON) |
csr0 | 375 | drivers/net/a2065.c | if (csr0 & TDMD) |
csr0 | 377 | drivers/net/a2065.c | if (csr0 & STOP) |
csr0 | 379 | drivers/net/a2065.c | if (csr0 & STRT) |
csr0 | 381 | drivers/net/a2065.c | if (csr0 & INIT) |
csr0 | 383 | drivers/net/a2065.c | if (csr0 & ERR) |
csr0 | 385 | drivers/net/a2065.c | if (csr0 & BABL) |
csr0 | 387 | drivers/net/a2065.c | if (csr0 & CERR) |
csr0 | 389 | drivers/net/a2065.c | if (csr0 & MISS) |
csr0 | 391 | drivers/net/a2065.c | if (csr0 & MERR) |
csr0 | 393 | drivers/net/a2065.c | if (csr0 & RINT) |
csr0 | 395 | drivers/net/a2065.c | if (csr0 & TINT) |
csr0 | 397 | drivers/net/a2065.c | if (csr0 & IDON) |
csr0 | 403 | drivers/net/a2065.c | if (csr0 & RINT) /* Rx interrupt */ |
csr0 | 406 | drivers/net/a2065.c | if (csr0 & TINT) { /* Tx-done interrupt */ |
csr0 | 434 | drivers/net/a2065.c | printk("%s: Tx FIFO error! Status %4.4x.\n", dev->name, csr0); |
csr0 | 466 | drivers/net/a2065.c | if (csr0 & BABL) |
csr0 | 468 | drivers/net/a2065.c | if (csr0 & MISS) |
csr0 | 470 | drivers/net/a2065.c | if (csr0 & MERR) { |
csr0 | 471 | drivers/net/a2065.c | printk("%s: Bus master arbitration failure, status %4.4x.\n", dev->name, csr0); |
csr0 | 385 | drivers/net/ariadne.c | int csr0, boguscnt = 10; |
csr0 | 405 | drivers/net/ariadne.c | while ((csr0 = board->Lance.RDP) & (ERR|RINT|TINT) && --boguscnt >= 0) { |
csr0 | 407 | drivers/net/ariadne.c | board->Lance.RDP = csr0 & ~(INEA|TDMD|STOP|STRT|INIT); |
csr0 | 412 | drivers/net/ariadne.c | csr0, board->Lance.RDP); |
csr0 | 414 | drivers/net/ariadne.c | if (csr0 & INTR) |
csr0 | 416 | drivers/net/ariadne.c | if (csr0 & INEA) |
csr0 | 418 | drivers/net/ariadne.c | if (csr0 & RXON) |
csr0 | 420 | drivers/net/ariadne.c | if (csr0 & TXON) |
csr0 | 422 | drivers/net/ariadne.c | if (csr0 & TDMD) |
csr0 | 424 | drivers/net/ariadne.c | if (csr0 & STOP) |
csr0 | 426 | drivers/net/ariadne.c | if (csr0 & STRT) |
csr0 | 428 | drivers/net/ariadne.c | if (csr0 & INIT) |
csr0 | 430 | drivers/net/ariadne.c | if (csr0 & ERR) |
csr0 | 432 | drivers/net/ariadne.c | if (csr0 & BABL) |
csr0 | 434 | drivers/net/ariadne.c | if (csr0 & CERR) |
csr0 | 436 | drivers/net/ariadne.c | if (csr0 & MISS) |
csr0 | 438 | drivers/net/ariadne.c | if (csr0 & MERR) |
csr0 | 440 | drivers/net/ariadne.c | if (csr0 & RINT) |
csr0 | 442 | drivers/net/ariadne.c | if (csr0 & TINT) |
csr0 | 444 | drivers/net/ariadne.c | if (csr0 & IDON) |
csr0 | 450 | drivers/net/ariadne.c | if (csr0 & RINT) /* Rx interrupt */ |
csr0 | 453 | drivers/net/ariadne.c | if (csr0 & TINT) { /* Tx-done interrupt */ |
csr0 | 480 | drivers/net/ariadne.c | csr0); |
csr0 | 512 | drivers/net/ariadne.c | if (csr0 & BABL) |
csr0 | 514 | drivers/net/ariadne.c | if (csr0 & MISS) |
csr0 | 516 | drivers/net/ariadne.c | if (csr0 & MERR) { |
csr0 | 518 | drivers/net/ariadne.c | dev->name, csr0); |
csr0 | 853 | drivers/net/atarilance.c | int csr0, boguscnt = 10; |
csr0 | 868 | drivers/net/atarilance.c | while( ((csr0 = DREG) & (CSR0_ERR | CSR0_TINT | CSR0_RINT)) && |
csr0 | 871 | drivers/net/atarilance.c | DREG = csr0 & ~(CSR0_INIT | CSR0_STRT | CSR0_STOP | |
csr0 | 875 | drivers/net/atarilance.c | dev->name, csr0, DREG )); |
csr0 | 877 | drivers/net/atarilance.c | if (csr0 & CSR0_RINT) /* Rx interrupt */ |
csr0 | 880 | drivers/net/atarilance.c | if (csr0 & CSR0_TINT) { /* Tx-done interrupt */ |
csr0 | 904 | drivers/net/atarilance.c | dev->name, csr0 )); |
csr0 | 937 | drivers/net/atarilance.c | if (csr0 & CSR0_BABL) lp->stats.tx_errors++; /* Tx babble. */ |
csr0 | 938 | drivers/net/atarilance.c | if (csr0 & CSR0_MISS) lp->stats.rx_errors++; /* Missed a Rx frame. */ |
csr0 | 939 | drivers/net/atarilance.c | if (csr0 & CSR0_MERR) { |
csr0 | 941 | drivers/net/atarilance.c | "status %04x.\n", dev->name, csr0 )); |
csr0 | 514 | drivers/net/de4x5.c | s32 csr0; /* Saved Bus Mode Register */ |
csr0 | 2766 | drivers/net/de4x5.c | lp->cache.csr0 = inl(DE4X5_BMR); |
csr0 | 2777 | drivers/net/de4x5.c | outl(lp->cache.csr0, DE4X5_BMR); |
csr0 | 844 | drivers/net/depca.c | s16 csr0, nicsr; |
csr0 | 864 | drivers/net/depca.c | csr0 = inw(DEPCA_DATA); |
csr0 | 867 | drivers/net/depca.c | outw(csr0 & INTE, DEPCA_DATA); |
csr0 | 869 | drivers/net/depca.c | if (csr0 & RINT) /* Rx interrupt (packet arrived) */ |
csr0 | 872 | drivers/net/depca.c | if (csr0 & TINT) /* Tx interrupt (packet sent) */ |
csr0 | 882 | drivers/net/lance.c | int csr0, ioaddr, boguscnt=10; |
csr0 | 898 | drivers/net/lance.c | while ((csr0 = inw(dev->base_addr + LANCE_DATA)) & 0x8600 |
csr0 | 901 | drivers/net/lance.c | outw(csr0 & ~0x004f, dev->base_addr + LANCE_DATA); |
csr0 | 907 | drivers/net/lance.c | dev->name, csr0, inw(dev->base_addr + LANCE_DATA)); |
csr0 | 909 | drivers/net/lance.c | if (csr0 & 0x0400) /* Rx interrupt */ |
csr0 | 912 | drivers/net/lance.c | if (csr0 & 0x0200) { /* Tx-done interrupt */ |
csr0 | 936 | drivers/net/lance.c | dev->name, csr0); |
csr0 | 975 | drivers/net/lance.c | if (csr0 & 0x4000) lp->stats.tx_errors++; /* Tx babble. */ |
csr0 | 976 | drivers/net/lance.c | if (csr0 & 0x1000) lp->stats.rx_errors++; /* Missed a Rx frame. */ |
csr0 | 977 | drivers/net/lance.c | if (csr0 & 0x0800) { |
csr0 | 979 | drivers/net/lance.c | dev->name, csr0); |
csr0 | 541 | drivers/net/lance32.c | int csr0, ioaddr, boguscnt=10; |
csr0 | 557 | drivers/net/lance32.c | while ((csr0 = inw(dev->base_addr + LANCE_DATA)) & 0x8600 |
csr0 | 560 | drivers/net/lance32.c | outw(csr0 & ~0x004f, dev->base_addr + LANCE_DATA); |
csr0 | 566 | drivers/net/lance32.c | dev->name, csr0, inw(dev->base_addr + LANCE_DATA)); |
csr0 | 568 | drivers/net/lance32.c | if (csr0 & 0x0400) /* Rx interrupt */ |
csr0 | 571 | drivers/net/lance32.c | if (csr0 & 0x0200) { /* Tx-done interrupt */ |
csr0 | 595 | drivers/net/lance32.c | dev->name, csr0); |
csr0 | 633 | drivers/net/lance32.c | if (csr0 & 0x4000) lp->stats.tx_errors++; /* Tx babble. */ |
csr0 | 634 | drivers/net/lance32.c | if (csr0 & 0x1000) lp->stats.rx_errors++; /* Missed a Rx frame. */ |
csr0 | 635 | drivers/net/lance32.c | if (csr0 & 0x0800) { |
csr0 | 637 | drivers/net/lance32.c | dev->name, csr0); |
csr0 | 456 | drivers/net/ni65.c | int csr0; |
csr0 | 469 | drivers/net/ni65.c | csr0 = inw(PORT+L_DATAREG); |
csr0 | 470 | drivers/net/ni65.c | writedatareg(csr0 & CSR0_CLRALL); /* ack interrupts, disable int. */ |
csr0 | 472 | drivers/net/ni65.c | if(!(csr0 & (CSR0_ERR | CSR0_RINT | CSR0_TINT))) |
csr0 | 475 | drivers/net/ni65.c | if(csr0 & CSR0_ERR) |
csr0 | 479 | drivers/net/ni65.c | if(csr0 & CSR0_BABL) |
csr0 | 481 | drivers/net/ni65.c | if(csr0 & CSR0_MISS) |
csr0 | 483 | drivers/net/ni65.c | if(csr0 & CSR0_MERR) { |
csr0 | 488 | drivers/net/ni65.c | if(csr0 & CSR0_RINT) /* RECV-int? */ |
csr0 | 489 | drivers/net/ni65.c | ni65_recv_intr(dev,csr0); |
csr0 | 490 | drivers/net/ni65.c | if(csr0 & CSR0_TINT) /* XMIT-int? */ |
csr0 | 491 | drivers/net/ni65.c | ni65_xmit_intr(dev,csr0); |
csr0 | 510 | drivers/net/ni65.c | ni65_recv_intr(dev,csr0); |
csr0 | 515 | drivers/net/ni65.c | if(csr0 & (CSR0_RXON | CSR0_TXON) != (CSR0_RXON | CSR0_TXON) ) { |
csr0 | 530 | drivers/net/ni65.c | static void ni65_xmit_intr(struct device *dev,int csr0) |
csr0 | 568 | drivers/net/ni65.c | printk(KERN_ERR "%s: xmit-error: %04x %02x-%04x\n",dev->name,csr0,(int) tmdstat,(int) tmdp->status2); |
csr0 | 587 | drivers/net/ni65.c | static void ni65_recv_intr(struct device *dev,int csr0) |
csr0 | 607 | drivers/net/ni65.c | dev->name,(int) rmdstat,csr0,(int) inw(PORT+L_DATAREG) ); |
csr0 | 1312 | drivers/net/sk_g16.c | int csr0; |
csr0 | 1331 | drivers/net/sk_g16.c | csr0 = SK_read_reg(CSR0); /* store register for checking */ |
csr0 | 1340 | drivers/net/sk_g16.c | SK_write_reg(CSR0, csr0 & CSR0_CLRALL); |
csr0 | 1342 | drivers/net/sk_g16.c | if (csr0 & CSR0_ERR) /* LANCE Error */ |
csr0 | 1344 | drivers/net/sk_g16.c | printk("%s: error: %04x\n", dev->name, csr0); |
csr0 | 1346 | drivers/net/sk_g16.c | if (csr0 & CSR0_MISS) /* No place to store packet ? */ |
csr0 | 1352 | drivers/net/sk_g16.c | if (csr0 & CSR0_RINT) /* Receive Interrupt (packet arrived) */ |
csr0 | 1357 | drivers/net/sk_g16.c | if (csr0 & CSR0_TINT) /* Transmit interrupt (packet sent) */ |
csr0 | 497 | drivers/net/sunlance.c | int csr0; |
csr0 | 521 | drivers/net/sunlance.c | csr0 = ll->rdp; |
csr0 | 524 | drivers/net/sunlance.c | ll->rdp = csr0 & 0x004f; |
csr0 | 526 | drivers/net/sunlance.c | if ((csr0 & LE_C0_ERR)) { |
csr0 | 531 | drivers/net/sunlance.c | if (csr0 & LE_C0_RINT) |
csr0 | 534 | drivers/net/sunlance.c | if (csr0 & LE_C0_TINT) |