Home
last modified time | relevance | path

Searched refs:dirty_rx (Results 1 – 25 of 26) sorted by relevance

12

/linux/drivers/net/ethernet/dec/tulip/
A Dinterrupt.c66 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()
148 if (tp->dirty_rx + RX_RING_SIZE == tp->cur_rx) in tulip_poll()
265 if (tp->cur_rx - tp->dirty_rx > RX_RING_SIZE/4) in tulip_poll()
321 if (tp->rx_buffers[tp->dirty_rx % RX_RING_SIZE].skb == NULL) in tulip_poll()
343 if (tp->cur_rx - tp->dirty_rx > RX_RING_SIZE/2 || in tulip_poll()
344 tp->rx_buffers[tp->dirty_rx % RX_RING_SIZE].skb == NULL) in tulip_poll()
347 if (tp->rx_buffers[tp->dirty_rx % RX_RING_SIZE].skb == NULL) in tulip_poll()
373 int rx_work_limit = tp->dirty_rx + RX_RING_SIZE - tp->cur_rx; in tulip_rx()
788 entry = tp->dirty_rx % RX_RING_SIZE;
A Dwinbond-840.c302 unsigned int cur_rx, dirty_rx; /* Producer/consumer ring indices */ member
815 np->dirty_rx = (unsigned int)(i - RX_RING_SIZE); in init_rxtx_rings()
1167 int work_limit = np->dirty_rx + RX_RING_SIZE - np->cur_rx; in netdev_rx()
1254 for (; np->cur_rx - np->dirty_rx > 0; np->dirty_rx++) { in netdev_rx()
1256 entry = np->dirty_rx % RX_RING_SIZE; in netdev_rx()
1479 np->cur_rx, np->dirty_rx); in netdev_close()
A Dtulip.h423 unsigned int dirty_rx, dirty_tx; /* The ring entries to be free()ed. */ member
A Dtulip_core.c324 tp->dirty_rx = tp->dirty_tx = 0; in tulip_up()
639 tp->dirty_rx = (unsigned int)(i - RX_RING_SIZE); in tulip_init_ring()
/linux/drivers/net/ethernet/packetengines/
A Dhamachi.c494 unsigned int cur_rx, dirty_rx; /* Producer/consumer ring indices */ member
1117 hmp->dirty_rx = hmp->dirty_tx = 0; in hamachi_tx_timeout()
1148 hmp->dirty_rx = (unsigned int)(i - RX_RING_SIZE); in hamachi_tx_timeout()
1173 hmp->dirty_rx = hmp->dirty_tx = 0; in hamachi_init_ring()
1203 hmp->dirty_rx = (unsigned int)(i - RX_RING_SIZE); in hamachi_init_ring()
1412 int boguscnt = (hmp->dirty_rx + RX_RING_SIZE) - hmp->cur_rx; in hamachi_rx()
1590 for (; hmp->cur_rx - hmp->dirty_rx > 0; hmp->dirty_rx++) { in hamachi_rx()
1593 entry = hmp->dirty_rx % RX_RING_SIZE; in hamachi_rx()
1674 dev->name, hmp->cur_tx, hmp->dirty_tx, hmp->cur_rx, hmp->dirty_rx); in hamachi_close()
A Dyellowfin.c323 unsigned int cur_rx, dirty_rx; /* Producer/consumer ring indices */ member
761 yp->dirty_rx = (unsigned int)(i - RX_RING_SIZE); in yellowfin_init_ring()
1049 int boguscnt = yp->dirty_rx + RX_RING_SIZE - yp->cur_rx; in yellowfin_rx()
1163 for (; yp->cur_rx - yp->dirty_rx > 0; yp->dirty_rx++) { in yellowfin_rx()
1164 entry = yp->dirty_rx % RX_RING_SIZE; in yellowfin_rx()
1215 yp->cur_rx, yp->dirty_rx); in yellowfin_close()
/linux/drivers/net/ethernet/smsc/
A Depic100.c269 unsigned int cur_rx, dirty_rx; member
790 ep->cur_rx, ep->dirty_rx, ep->dirty_tx, ep->cur_tx); in epic_restart()
906 ep->cur_rx = ep->dirty_rx = 0; in epic_init_ring()
933 ep->dirty_rx = (unsigned int)(i - RX_RING_SIZE); in epic_init_ring()
1145 int rx_work_limit = ep->dirty_rx + RX_RING_SIZE - ep->cur_rx; in epic_rx()
1219 for (; ep->cur_rx - ep->dirty_rx > 0; ep->dirty_rx++) { in epic_rx()
1220 entry = ep->dirty_rx % RX_RING_SIZE; in epic_rx()
/linux/drivers/net/ethernet/sis/
A Dsis900.c179 unsigned int cur_rx, dirty_rx; /* producer/consumer pointers for Tx/Rx ring */ member
1172 sis_priv->dirty_rx = 0; in sis900_init_rx_ring()
1208 sis_priv->dirty_rx = (unsigned int) (i - NUM_RX_DESC); in sis900_init_rx_ring()
1751 sis_priv->cur_rx, sis_priv->dirty_rx, rx_status); in sis900_rx()
1752 rx_work_limit = sis_priv->dirty_rx + NUM_RX_DESC - sis_priv->cur_rx; in sis900_rx()
1818 sis_priv->dirty_rx); in sis900_rx()
1834 sis_priv->dirty_rx++; in sis900_rx()
1856 for (; sis_priv->cur_rx != sis_priv->dirty_rx; sis_priv->dirty_rx++) { in sis900_rx()
1859 entry = sis_priv->dirty_rx % NUM_RX_DESC; in sis900_rx()
A Dsis190.c273 u32 dirty_rx; member
581 rx_left = NUM_RX_DESC + tp->dirty_rx - cur_rx; in sis190_rx_interrupt()
641 delta = sis190_rx_fill(tp, dev, tp->dirty_rx, tp->cur_rx); in sis190_rx_interrupt()
644 tp->dirty_rx += delta; in sis190_rx_interrupt()
646 if ((tp->dirty_rx + NUM_RX_DESC) == tp->cur_rx) in sis190_rx_interrupt()
811 tp->dirty_tx = tp->dirty_rx = tp->cur_tx = tp->cur_rx = 0; in sis190_init_ring_indexes()
/linux/drivers/net/ethernet/dlink/
A Dsundance.c388 unsigned int cur_rx, dirty_rx; /* Producer/consumer ring indices */ member
992 printk(KERN_DEBUG "cur_rx=%d dirty_rx=%d\n", np->cur_rx, np->dirty_rx); in tx_timeout()
1020 np->dirty_rx = np->dirty_tx = 0; in init_ring()
1053 np->dirty_rx = (unsigned int)(i - RX_RING_SIZE); in init_ring()
1420 for (;(np->cur_rx - np->dirty_rx + RX_RING_SIZE) % RX_RING_SIZE > 0; in refill_rx()
1421 np->dirty_rx = (np->dirty_rx + 1) % RX_RING_SIZE) { in refill_rx()
1423 entry = np->dirty_rx % RX_RING_SIZE; in refill_rx()
1840 dev->name, np->cur_tx, np->dirty_tx, np->cur_rx, np->dirty_rx); in netdev_close()
/linux/drivers/net/ethernet/renesas/
A Dravb_main.c405 priv->dirty_rx[q] = 0; in ravb_ring_format()
498 priv->dirty_rx[q] = 0; in ravb_ring_init()
770 boguscnt = priv->dirty_rx[q] + priv->num_rx_ring[q] - priv->cur_rx[q]; in ravb_rx_gbeth()
849 for (; priv->cur_rx[q] - priv->dirty_rx[q] > 0; priv->dirty_rx[q]++) { in ravb_rx_gbeth()
850 entry = priv->dirty_rx[q] % priv->num_rx_ring[q]; in ravb_rx_gbeth()
888 int boguscnt = (priv->dirty_rx[q] + priv->num_rx_ring[q]) - in ravb_rx_rcar()
965 for (; priv->cur_rx[q] - priv->dirty_rx[q] > 0; priv->dirty_rx[q]++) { in ravb_rx_rcar()
966 entry = priv->dirty_rx[q] % priv->num_rx_ring[q]; in ravb_rx_rcar()
1579 data[i++] = priv->dirty_rx[q]; in ravb_get_ethtool_stats()
A Dsh_eth.c1335 mdp->dirty_rx = 0; in sh_eth_ring_format()
1373 mdp->dirty_rx = (u32) (i - mdp->num_rx_ring); in sh_eth_ring_format()
1432 mdp->dirty_rx = 0; in sh_eth_ring_init()
1592 int boguscnt = (mdp->dirty_rx + mdp->num_rx_ring) - mdp->cur_rx; in sh_eth_rx()
1672 for (; mdp->cur_rx - mdp->dirty_rx > 0; mdp->dirty_rx++) { in sh_eth_rx()
1673 entry = mdp->dirty_rx % mdp->num_rx_ring; in sh_eth_rx()
1712 mdp->dirty_rx = count; in sh_eth_rx()
2284 data[i++] = mdp->dirty_rx; in sh_eth_get_ethtool_stats()
A Dsh_eth.h545 u32 cur_rx, dirty_rx; /* Producer/consumer ring indices */ member
A Dravb.h1068 u32 dirty_rx[NUM_RX_QUEUE]; /* Producer ring indices */ member
/linux/drivers/net/ethernet/adaptec/
A Dstarfire.c551 unsigned int cur_rx, dirty_rx; /* Producer/consumer ring indices */ member
1133 np->dirty_rx = np->dirty_tx = np->rx_done = np->tx_done = 0; in init_ring()
1156 np->dirty_rx = (unsigned int)(i - RX_RING_SIZE); in init_ring()
1590 for (; np->cur_rx - np->dirty_rx > 0; np->dirty_rx++) { in refill_rx_ring()
1591 entry = np->dirty_rx % RX_RING_SIZE; in refill_rx_ring()
1940 np->cur_rx, np->dirty_rx); in netdev_close()
/linux/drivers/net/ethernet/3com/
A D3c515.c305 unsigned int dirty_rx, dirty_tx;/* The ring entries to be free()ed. */ member
805 vp->cur_rx = vp->dirty_rx = 0; in corkscrew_open()
1386 for (; vp->cur_rx - vp->dirty_rx > 0; vp->dirty_rx++) { in boomerang_rx()
1388 entry = vp->dirty_rx % RX_RING_SIZE; in boomerang_rx()
/linux/drivers/net/ethernet/stmicro/stmmac/
A Dchain_mode.c139 (((rx_q->dirty_rx) + 1) % in refill_desc3()
A Dstmmac.h106 unsigned int dirty_rx; member
A Dstmmac_main.c379 if (rx_q->dirty_rx <= rx_q->cur_rx) in stmmac_rx_dirty()
380 dirty = rx_q->cur_rx - rx_q->dirty_rx; in stmmac_rx_dirty()
382 dirty = priv->dma_rx_size - rx_q->dirty_rx + rx_q->cur_rx; in stmmac_rx_dirty()
1711 rx_q->dirty_rx = 0; in __init_dma_rx_desc_rings()
4488 unsigned int entry = rx_q->dirty_rx; in stmmac_rx_refill()
4542 rx_q->dirty_rx = entry; in stmmac_rx_refill()
4544 (rx_q->dirty_rx * sizeof(struct dma_desc)); in stmmac_rx_refill()
4838 unsigned int entry = rx_q->dirty_rx; in stmmac_rx_refill_zc()
4884 rx_q->dirty_rx = entry; in stmmac_rx_refill_zc()
4886 (rx_q->dirty_rx * sizeof(struct dma_desc)); in stmmac_rx_refill_zc()
[all …]
/linux/drivers/net/ethernet/natsemi/
A Dnatsemi.c558 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()
1953 if (np->cur_rx - np->dirty_rx == RX_RING_SIZE) { in refill_rx()
1986 np->dirty_rx = 0; in init_ring()
2064 np->dirty_rx = 0; in reinit_rx()
2283 int boguscnt = np->dirty_rx + RX_RING_SIZE - np->cur_rx; in netdev_rx()
3173 np->cur_rx, np->dirty_rx); in netdev_close()
/linux/drivers/net/ethernet/samsung/sxgbe/
A Dsxgbe_common.h399 unsigned int dirty_rx; member
A Dsxgbe_main.c518 rx_ring->dirty_rx = (unsigned int)(desc_index - rx_rsize); in init_rx_ring()
1444 for (; priv->rxq[qnum]->cur_rx - priv->rxq[qnum]->dirty_rx > 0; in sxgbe_rx_refill()
1445 priv->rxq[qnum]->dirty_rx++) { in sxgbe_rx_refill()
1446 unsigned int entry = priv->rxq[qnum]->dirty_rx % rxsize; in sxgbe_rx_refill()
/linux/drivers/net/ethernet/amd/
A Dlance.c249 int dirty_rx, dirty_tx; /* The ring entries to be free()ed. */ member
869 lp->dirty_rx = lp->dirty_tx = 0; in lance_init_ring()
A Dpcnet32.c280 unsigned int dirty_rx, /* ring entries to be freed. */ member
2359 lp->dirty_rx = lp->dirty_tx = 0; in pcnet32_init_ring()
/linux/drivers/net/hippi/
A Drrunner.h819 u32 dirty_rx, dirty_tx; member

Completed in 3442 milliseconds

12