/drivers/net/ethernet/dec/tulip/ |
D | interrupt.c | 66 for (; tp->cur_rx - tp->dirty_rx > 0; tp->dirty_rx++) { in tulip_refill_rx() 67 entry = tp->dirty_rx % RX_RING_SIZE; in tulip_refill_rx() 142 if (tp->dirty_rx + RX_RING_SIZE == tp->cur_rx) in tulip_poll() 255 if (tp->cur_rx - tp->dirty_rx > RX_RING_SIZE/4) in tulip_poll() 311 if (tp->rx_buffers[tp->dirty_rx % RX_RING_SIZE].skb == NULL) in tulip_poll() 333 if (tp->cur_rx - tp->dirty_rx > RX_RING_SIZE/2 || in tulip_poll() 334 tp->rx_buffers[tp->dirty_rx % RX_RING_SIZE].skb == NULL) in tulip_poll() 337 if (tp->rx_buffers[tp->dirty_rx % RX_RING_SIZE].skb == NULL) in tulip_poll() 363 int rx_work_limit = tp->dirty_rx + RX_RING_SIZE - tp->cur_rx; in tulip_rx() 774 entry = tp->dirty_rx % RX_RING_SIZE;
|
D | winbond-840.c | 312 unsigned int cur_rx, dirty_rx; /* Producer/consumer ring indices */ member 830 np->dirty_rx = (unsigned int)(i - RX_RING_SIZE); in init_rxtx_rings() 1185 int work_limit = np->dirty_rx + RX_RING_SIZE - np->cur_rx; in netdev_rx() 1269 for (; np->cur_rx - np->dirty_rx > 0; np->dirty_rx++) { in netdev_rx() 1271 entry = np->dirty_rx % RX_RING_SIZE; in netdev_rx() 1493 np->cur_rx, np->dirty_rx); in netdev_close()
|
D | tulip.h | 423 unsigned int dirty_rx, dirty_tx; /* The ring entries to be free()ed. */ member
|
D | tulip_core.c | 336 tp->dirty_rx = tp->dirty_tx = 0; in tulip_up() 651 tp->dirty_rx = (unsigned int)(i - RX_RING_SIZE); in tulip_init_ring()
|
/drivers/net/ethernet/packetengines/ |
D | hamachi.c | 494 unsigned int cur_rx, dirty_rx; /* Producer/consumer ring indices */ member 1120 hmp->dirty_rx = hmp->dirty_tx = 0; in hamachi_tx_timeout() 1149 hmp->dirty_rx = (unsigned int)(i - RX_RING_SIZE); in hamachi_tx_timeout() 1174 hmp->dirty_rx = hmp->dirty_tx = 0; in hamachi_init_ring() 1202 hmp->dirty_rx = (unsigned int)(i - RX_RING_SIZE); in hamachi_init_ring() 1409 int boguscnt = (hmp->dirty_rx + RX_RING_SIZE) - hmp->cur_rx; in hamachi_rx() 1587 for (; hmp->cur_rx - hmp->dirty_rx > 0; hmp->dirty_rx++) { in hamachi_rx() 1590 entry = hmp->dirty_rx % RX_RING_SIZE; in hamachi_rx() 1669 dev->name, hmp->cur_tx, hmp->dirty_tx, hmp->cur_rx, hmp->dirty_rx); in hamachi_close()
|
D | yellowfin.c | 323 unsigned int cur_rx, dirty_rx; /* Producer/consumer ring indices */ member 760 yp->dirty_rx = (unsigned int)(i - RX_RING_SIZE); in yellowfin_init_ring() 1045 int boguscnt = yp->dirty_rx + RX_RING_SIZE - yp->cur_rx; in yellowfin_rx() 1155 for (; yp->cur_rx - yp->dirty_rx > 0; yp->dirty_rx++) { in yellowfin_rx() 1156 entry = yp->dirty_rx % RX_RING_SIZE; in yellowfin_rx() 1205 yp->cur_rx, yp->dirty_rx); in yellowfin_close()
|
/drivers/net/ethernet/smsc/ |
D | epic100.c | 274 unsigned int cur_rx, dirty_rx; member 800 dev->name, ep->cur_rx, ep->dirty_rx, ep->dirty_tx, ep->cur_tx); in epic_restart() 921 ep->cur_rx = ep->dirty_rx = 0; in epic_init_ring() 946 ep->dirty_rx = (unsigned int)(i - RX_RING_SIZE); in epic_init_ring() 1158 int rx_work_limit = ep->dirty_rx + RX_RING_SIZE - ep->cur_rx; in epic_rx() 1231 for (; ep->cur_rx - ep->dirty_rx > 0; ep->dirty_rx++) { in epic_rx() 1232 entry = ep->dirty_rx % RX_RING_SIZE; in epic_rx()
|
/drivers/net/ethernet/sis/ |
D | sis900.c | 176 unsigned int cur_rx, dirty_rx; /* producer/comsumer pointers for Tx/Rx ring */ member 1153 sis_priv->dirty_rx = 0; in sis900_init_rx_ring() 1181 sis_priv->dirty_rx = (unsigned int) (i - NUM_RX_DESC); in sis900_init_rx_ring() 1726 sis_priv->cur_rx, sis_priv->dirty_rx, rx_status); in sis900_rx() 1727 rx_work_limit = sis_priv->dirty_rx + NUM_RX_DESC - sis_priv->cur_rx; in sis900_rx() 1793 sis_priv->dirty_rx); in sis900_rx() 1809 sis_priv->dirty_rx++; in sis900_rx() 1824 for (; sis_priv->cur_rx != sis_priv->dirty_rx; sis_priv->dirty_rx++) { in sis900_rx() 1827 entry = sis_priv->dirty_rx % NUM_RX_DESC; in sis900_rx()
|
D | sis190.c | 273 u32 dirty_rx; member 581 rx_left = NUM_RX_DESC + tp->dirty_rx - cur_rx; in sis190_rx_interrupt() 639 delta = sis190_rx_fill(tp, dev, tp->dirty_rx, tp->cur_rx); in sis190_rx_interrupt() 642 tp->dirty_rx += delta; in sis190_rx_interrupt() 644 if ((tp->dirty_rx + NUM_RX_DESC) == tp->cur_rx) in sis190_rx_interrupt() 808 tp->dirty_tx = tp->dirty_rx = tp->cur_tx = tp->cur_rx = 0; in sis190_init_ring_indexes()
|
/drivers/net/ethernet/dlink/ |
D | sundance.c | 386 unsigned int cur_rx, dirty_rx; /* Producer/consumer ring indices */ member 979 printk(KERN_DEBUG "cur_rx=%d dirty_rx=%d\n", np->cur_rx, np->dirty_rx); in tx_timeout() 1007 np->dirty_rx = np->dirty_tx = 0; in init_ring() 1040 np->dirty_rx = (unsigned int)(i - RX_RING_SIZE); in init_ring() 1409 for (;(np->cur_rx - np->dirty_rx + RX_RING_SIZE) % RX_RING_SIZE > 0; in refill_rx() 1410 np->dirty_rx = (np->dirty_rx + 1) % RX_RING_SIZE) { in refill_rx() 1412 entry = np->dirty_rx % RX_RING_SIZE; in refill_rx() 1772 dev->name, np->cur_tx, np->dirty_tx, np->cur_rx, np->dirty_rx); in netdev_close()
|
/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac.h | 44 unsigned int dirty_rx; member
|
D | stmmac_main.c | 477 priv->dirty_rx = (unsigned int)(i - rxsize); in init_dma_desc_rings() 1214 for (; priv->cur_rx - priv->dirty_rx > 0; priv->dirty_rx++) { in stmmac_rx_refill() 1215 unsigned int entry = priv->dirty_rx % rxsize; in stmmac_rx_refill()
|
/drivers/net/ethernet/renesas/ |
D | sh_eth.c | 664 mdp->dirty_rx = mdp->dirty_tx = 0; in sh_eth_ring_format() 695 mdp->dirty_rx = (u32) (i - RX_RING_SIZE); in sh_eth_ring_format() 765 mdp->dirty_rx = 0; in sh_eth_ring_init() 913 int boguscnt = (mdp->dirty_rx + RX_RING_SIZE) - mdp->cur_rx; in sh_eth_rx() 965 for (; mdp->cur_rx - mdp->dirty_rx > 0; mdp->dirty_rx++) { in sh_eth_rx() 966 entry = mdp->dirty_rx % RX_RING_SIZE; in sh_eth_rx() 1373 data[i++] = mdp->dirty_rx; in sh_eth_get_ethtool_stats()
|
D | sh_eth.h | 775 u32 cur_rx, dirty_rx; /* Producer/consumer ring indices */ member
|
/drivers/net/ethernet/adaptec/ |
D | starfire.c | 572 unsigned int cur_rx, dirty_rx; /* Producer/consumer ring indices */ member 1176 np->dirty_rx = np->dirty_tx = np->rx_done = np->tx_done = 0; in init_ring() 1191 np->dirty_rx = (unsigned int)(i - RX_RING_SIZE); in init_ring() 1595 for (; np->cur_rx - np->dirty_rx > 0; np->dirty_rx++) { in refill_rx_ring() 1596 entry = np->dirty_rx % RX_RING_SIZE; in refill_rx_ring() 1938 np->cur_rx, np->dirty_rx); in netdev_close()
|
/drivers/net/ethernet/3com/ |
D | 3c515.c | 311 unsigned int dirty_rx, dirty_tx;/* The ring entries to be free()ed. */ member 817 vp->cur_rx = vp->dirty_rx = 0; in corkscrew_open() 1401 for (; vp->cur_rx - vp->dirty_rx > 0; vp->dirty_rx++) { in boomerang_rx() 1403 entry = vp->dirty_rx % RX_RING_SIZE; in boomerang_rx()
|
D | 3c59x.c | 605 unsigned int dirty_rx, dirty_tx; /* The ring entries to be free()ed. */ member 1691 vp->cur_rx = vp->dirty_rx = 0; in vortex_up() 2551 int rx_work_limit = vp->dirty_rx + RX_RING_SIZE - vp->cur_rx; in boomerang_rx() 2615 for (; vp->cur_rx - vp->dirty_rx > 0; vp->dirty_rx++) { in boomerang_rx() 2617 entry = vp->dirty_rx % RX_RING_SIZE; in boomerang_rx() 2626 if ((vp->cur_rx - vp->dirty_rx) == RX_RING_SIZE) in boomerang_rx() 2651 …if ((vp->cur_rx - vp->dirty_rx) == RX_RING_SIZE) /* This test is redundant, but makes me feel good… in rx_oom_timer() 2655 ((vp->cur_rx - vp->dirty_rx) != RX_RING_SIZE) ? "succeeded" : "retrying"); in rx_oom_timer()
|
/drivers/net/ethernet/natsemi/ |
D | natsemi.c | 557 unsigned int cur_rx, dirty_rx; member 1932 for (; np->cur_rx - np->dirty_rx > 0; np->dirty_rx++) { in refill_rx() 1934 int entry = np->dirty_rx % RX_RING_SIZE; in refill_rx() 1947 if (np->cur_rx - np->dirty_rx == RX_RING_SIZE) { in refill_rx() 1980 np->dirty_rx = 0; in init_ring() 2059 np->dirty_rx = 0; in reinit_rx() 2273 int boguscnt = np->dirty_rx + RX_RING_SIZE - np->cur_rx; in netdev_rx() 3147 np->cur_rx, np->dirty_rx); in netdev_close()
|
/drivers/net/ethernet/via/ |
D | via-rhine.c | 458 unsigned int cur_rx, dirty_rx; /* Producer/consumer ring indices */ member 1137 rp->dirty_rx = rp->cur_rx = 0; in alloc_rbufs() 1168 rp->dirty_rx = (unsigned int)(i - RX_RING_SIZE); in alloc_rbufs() 1941 for (; rp->cur_rx - rp->dirty_rx > 0; rp->dirty_rx++) { in rhine_rx() 1943 entry = rp->dirty_rx % RX_RING_SIZE; in rhine_rx()
|
/drivers/net/ethernet/amd/ |
D | lance.c | 249 int dirty_rx, dirty_tx; /* The ring entries to be free()ed. */ member 868 lp->dirty_rx = lp->dirty_tx = 0; in lance_init_ring()
|
D | pcnet32.c | 284 unsigned int dirty_rx, /* ring entries to be freed. */ member 2269 lp->dirty_rx = lp->dirty_tx = 0; in pcnet32_init_ring()
|
/drivers/net/hippi/ |
D | rrunner.h | 818 u32 dirty_rx, dirty_tx; member
|
D | rrunner.c | 631 rrpriv->dirty_rx = rrpriv->dirty_tx = 0; in rr_init1()
|
/drivers/net/ethernet/realtek/ |
D | r8169.c | 695 u32 dirty_rx; member 3790 tp->dirty_tx = tp->dirty_rx = tp->cur_tx = tp->cur_rx = 0; in rtl8169_init_ring_indexes() 5304 if ((tp->cp_cmd & PCIDAC) && !tp->dirty_rx && !tp->cur_rx) { in rtl8169_pcierr_interrupt() 5419 rx_left = NUM_RX_DESC + tp->dirty_rx - cur_rx; in rtl_rx() 5500 tp->dirty_rx += count; in rtl_rx()
|