Lines Matching +full:0 +full:x0001ffff

22 #define MIT_TABLE 15 /* We use 0 or max */
38 0x0, /* IM disabled */
39 0x80150000, /* RX time = 1, RX pkts = 2, CM = 1 */
40 0x80150000,
41 0x80270000,
42 0x80370000,
43 0x80490000,
44 0x80590000,
45 0x80690000,
46 0x807B0000,
47 0x808B0000,
48 0x809D0000,
49 0x80AD0000,
50 0x80BD0000,
51 0x80CF0000,
52 0x80DF0000,
53 // 0x80FF0000 /* RX time = 16, RX pkts = 7, CM = 1 */
54 0x80F10000 /* RX time = 16, RX pkts = 0, CM = 1 */
63 int refilled = 0; in tulip_refill_rx()
66 for (; tp->cur_rx - tp->dirty_rx > 0; tp->dirty_rx++) { in tulip_refill_rx()
93 if(((ioread32(tp->base_addr + CSR5)>>17)&0x07) == 4) { in tulip_refill_rx()
97 iowrite32(0x01, tp->base_addr + CSR2); in tulip_refill_rx()
117 int work_done = 0; in tulip_poll()
119 int received = 0; in tulip_poll()
135 if (ioread32(tp->base_addr + CSR5) == 0xffffffff) { in tulip_poll()
163 pkt_len = ((status >> 16) & 0x7ff) - 4; in tulip_poll()
181 if ((status & 0xffff) != 0x7fff) { in tulip_poll()
198 if (status & 0x0004) in tulip_poll()
200 if (status & 0x0002) in tulip_poll()
202 if (status & 0x0001) in tulip_poll()
251 tp->rx_buffers[entry].mapping = 0; in tulip_poll()
298 Note. We only use min and max (0, 15) settings from mit_table */ in tulip_poll()
310 tp->mit_on = 0; in tulip_poll()
311 iowrite32(0, tp->base_addr + CSR11); in tulip_poll()
374 int received = 0; in tulip_rx()
387 if (--rx_work_limit < 0) in tulip_rx()
395 pkt_len = ((status >> 16) & 0x7ff) - 4; in tulip_rx()
412 if ((status & 0xffff) != 0x7fff) { in tulip_rx()
428 if (status & 0x0004) in tulip_rx()
430 if (status & 0x0002) in tulip_rx()
432 if (status & 0x0001) in tulip_rx()
480 tp->rx_buffers[entry].mapping = 0; in tulip_rx()
500 int csr12 = ioread32(tp->base_addr + CSR12) & 0xff; in phy_interrupt()
504 iowrite32(csr12 | 0x02, tp->base_addr + CSR12); in phy_interrupt()
511 iowrite32(csr12 & ~0x02, tp->base_addr + CSR12); in phy_interrupt()
517 return 0; in phy_interrupt()
529 int rx = 0; in tulip_interrupt()
530 int tx = 0; in tulip_interrupt()
531 int oi = 0; in tulip_interrupt()
536 int rxd = 0; in tulip_interrupt()
541 unsigned int handled = 0; in tulip_interrupt()
549 if ((csr5 & (NormalIntr|AbnormalIntr)) == 0) in tulip_interrupt()
571 iowrite32(csr5 & 0x0001ff3f, ioaddr + CSR5); in tulip_interrupt()
575 iowrite32(csr5 & 0x0001ffff, ioaddr + CSR5); in tulip_interrupt()
595 for (dirty_tx = tp->dirty_tx; tp->cur_tx - dirty_tx > 0; in tulip_interrupt()
600 if (status < 0) in tulip_interrupt()
614 if (status & 0x8000) { in tulip_interrupt()
622 if (status & 0x4104) in tulip_interrupt()
624 if (status & 0x0C00) in tulip_interrupt()
626 if (status & 0x0200) in tulip_interrupt()
628 if (status & 0x0002) in tulip_interrupt()
630 if ((status & 0x0080) && tp->full_duplex == 0) in tulip_interrupt()
647 tp->tx_buffers[entry].mapping = 0; in tulip_interrupt()
677 if (csr5 == 0xffffffff) in tulip_interrupt()
682 if ((tp->csr6 & 0xC000) != 0xC000) in tulip_interrupt()
683 tp->csr6 += 0x4000; /* Bump up the Tx threshold */ in tulip_interrupt()
685 tp->csr6 |= 0x00200000; /* Store-n-forward. */ in tulip_interrupt()
688 iowrite32(0, ioaddr + CSR1); in tulip_interrupt()
692 iowrite32(tp->mc_filter[0], ioaddr + 0xAC); in tulip_interrupt()
693 iowrite32(tp->mc_filter[1], ioaddr + 0xB0); in tulip_interrupt()
697 dev->stats.rx_missed_errors += ioread32(ioaddr + CSR8) & 0xffff; in tulip_interrupt()
705 if (csr5 & (TPLnkPass | TPLnkFail | 0x08000000)) { in tulip_interrupt()
713 * 0 - parity error in tulip_interrupt()
726 iowrite32(0x0800f7ba, ioaddr + CSR5); in tulip_interrupt()
736 tp->ttimer = 0; in tulip_interrupt()
741 dev_warn(&dev->dev, "Too much work during an interrupt, csr5=0x%08x. (%lu) (%d,%d,%d)\n", in tulip_interrupt()
745 iowrite32(0x8001ffff, ioaddr + CSR5); in tulip_interrupt()
749 iowrite32(0x8b240000, ioaddr + CSR11); in tulip_interrupt()
752 iowrite32(0x00, ioaddr + CSR7); in tulip_interrupt()
757 … iowrite32(((~csr5) & 0x0001ebef) | AbnormalIntr | TimerInt, ioaddr + CSR7); in tulip_interrupt()
758 iowrite32(0x0012, ioaddr + CSR11); in tulip_interrupt()
764 if (work_count == 0) in tulip_interrupt()
781 SystemError )) != 0); in tulip_interrupt()
783 } while ((csr5 & (NormalIntr|AbnormalIntr)) != 0); in tulip_interrupt()
795 iowrite32(0x00, ioaddr + CSR7);
798 if (tp->ttimer == 0 || (ioread32(ioaddr + CSR11) & 0xffff) == 0) {
813 if ((missed = ioread32(ioaddr + CSR8) & 0x1ffff)) {
814 dev->stats.rx_dropped += missed & 0x10000 ? 0x10000 : missed;