Home
last modified time | relevance | path

Searched refs:cur_rx (Results 1 – 25 of 49) 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()
116 int entry = tp->cur_rx % RX_RING_SIZE; in tulip_poll()
148 if (tp->dirty_rx + RX_RING_SIZE == tp->cur_rx) in tulip_poll()
264 entry = (++tp->cur_rx) % RX_RING_SIZE; in tulip_poll()
265 if (tp->cur_rx - tp->dirty_rx > RX_RING_SIZE/4) in tulip_poll()
343 if (tp->cur_rx - tp->dirty_rx > RX_RING_SIZE/2 || in tulip_poll()
372 int entry = tp->cur_rx % RX_RING_SIZE; in tulip_rx()
373 int rx_work_limit = tp->dirty_rx + RX_RING_SIZE - tp->cur_rx; in tulip_rx()
490 entry = (++tp->cur_rx) % RX_RING_SIZE; in tulip_rx()
793 tp->nir, tp->cur_rx, tp->ttimer, rx);
A Dwinbond-840.c302 unsigned int cur_rx, dirty_rx; /* Producer/consumer ring indices */ member
814 np->cur_rx = 0; in init_rxtx_rings()
1166 int entry = np->cur_rx % RX_RING_SIZE; in netdev_rx()
1167 int work_limit = np->dirty_rx + RX_RING_SIZE - np->cur_rx; in netdev_rx()
1190 np->cur_rx, status); in netdev_rx()
1249 entry = (++np->cur_rx) % RX_RING_SIZE; in netdev_rx()
1254 for (; np->cur_rx - np->dirty_rx > 0; np->dirty_rx++) { in netdev_rx()
1479 np->cur_rx, np->dirty_rx); in netdev_close()
/linux/drivers/net/ethernet/
A Dfealnx.c393 struct fealnx_desc *cur_rx; member
1233 np->cur_rx = &np->rx_ring[0]; in init_ring()
1614 while (!(np->cur_rx->status & RXOWN) && np->cur_rx->skbuff) { in netdev_rx()
1646 cur = np->cur_rx; in netdev_rx()
1667 if (!np->cur_rx->skbuff) { in netdev_rx()
1673 np->cur_rx = np->cur_rx->next_desc_logical; in netdev_rx()
1701 np->cur_rx->buffer, in netdev_rx()
1715 np->cur_rx->buffer, in netdev_rx()
1720 np->cur_rx->buffer, in netdev_rx()
1724 np->cur_rx->skbuff = NULL; in netdev_rx()
[all …]
A Dethoc.c209 unsigned int cur_rx; member
310 dev->cur_rx = 0; in ethoc_init_ring()
429 entry = priv->num_tx + priv->cur_rx; in ethoc_rx()
473 if (++priv->cur_rx == priv->num_rx) in ethoc_rx()
474 priv->cur_rx = 0; in ethoc_rx()
/linux/drivers/net/ethernet/amd/
A Dariadne.c92 int cur_tx, cur_rx; /* The next free ring entry */ member
125 priv->cur_rx = priv->cur_tx = 0; in ariadne_init_ring()
164 int entry = priv->cur_rx % RX_RING_SIZE; in ariadne_rx()
204 priv->cur_rx++; in ariadne_rx()
227 entry = (++priv->cur_rx) % RX_RING_SIZE; in ariadne_rx()
230 priv->cur_rx = priv->cur_rx % RX_RING_SIZE; in ariadne_rx()
A Datarilance.c222 int cur_rx, cur_tx; /* The next free ring entry */ member
685 lp->cur_rx = lp->cur_tx = 0; in lance_init_ring()
746 lp->cur_rx )); in lance_tx_timeout()
961 int entry = lp->cur_rx & RX_RING_MOD_MASK; in lance_rx()
1004 lp->cur_rx++; in lance_rx()
1029 entry = (++lp->cur_rx) & RX_RING_MOD_MASK; in lance_rx()
1031 lp->cur_rx &= RX_RING_MOD_MASK; in lance_rx()
A Dlance.c248 int cur_rx, cur_tx; /* The next free ring entry */ member
868 lp->cur_rx = lp->cur_tx = 0; in lance_init_ring()
933 lp->cur_rx); in lance_tx_timeout()
1149 int entry = lp->cur_rx & RX_RING_MOD_MASK; in lance_rx()
1198 lp->cur_rx++; in lance_rx()
1217 entry = (++lp->cur_rx) & RX_RING_MOD_MASK; in lance_rx()
/linux/drivers/net/ethernet/packetengines/
A Dhamachi.c494 unsigned int cur_rx, dirty_rx; /* Producer/consumer ring indices */ member
1116 hmp->cur_rx = hmp->cur_tx = 0; in hamachi_tx_timeout()
1172 hmp->cur_rx = hmp->cur_tx = 0; in hamachi_init_ring()
1411 int entry = hmp->cur_rx % RX_RING_SIZE; in hamachi_rx()
1412 int boguscnt = (hmp->dirty_rx + RX_RING_SIZE) - hmp->cur_rx; in hamachi_rx()
1442 dev->name, hmp->cur_rx, data_size, desc_status); in hamachi_rx()
1444 dev->name, desc, &hmp->rx_ring[hmp->cur_rx % RX_RING_SIZE]); in hamachi_rx()
1449 le32_to_cpu(hmp->rx_ring[(hmp->cur_rx-1) % RX_RING_SIZE].status_n_length)); in hamachi_rx()
1586 entry = (++hmp->cur_rx) % RX_RING_SIZE; in hamachi_rx()
1590 for (; hmp->cur_rx - hmp->dirty_rx > 0; hmp->dirty_rx++) { in hamachi_rx()
[all …]
A Dyellowfin.c323 unsigned int cur_rx, dirty_rx; /* Producer/consumer ring indices */ member
732 yp->cur_rx = yp->cur_tx = 0; in yellowfin_init_ring()
1048 int entry = yp->cur_rx % RX_RING_SIZE; in yellowfin_rx()
1049 int boguscnt = yp->dirty_rx + RX_RING_SIZE - yp->cur_rx; in yellowfin_rx()
1159 entry = (++yp->cur_rx) % RX_RING_SIZE; in yellowfin_rx()
1163 for (; yp->cur_rx - yp->dirty_rx > 0; yp->dirty_rx++) { in yellowfin_rx()
1215 yp->cur_rx, yp->dirty_rx); in yellowfin_close()
/linux/drivers/net/ethernet/realtek/
A D8139too.c1400 tp->cur_rx = 0; in rtl8139_hw_start()
1453 tp->cur_rx = 0; in rtl8139_init_ring()
1866 tp->cur_rx = 0; in rtl8139_rx_err()
1900 tp->cur_rx = 0; in rtl8139_rx_err()
1953 unsigned int cur_rx = tp->cur_rx; in rtl8139_rx() local
1957 __func__, (u16)cur_rx, in rtl8139_rx()
1962 u32 ring_offset = cur_rx % RX_BUF_LEN; in rtl8139_rx()
2062 cur_rx = (cur_rx + rx_size + 4 + 3) & ~3; in rtl8139_rx()
2063 RTL_W16 (RxBufPtr, (u16) (cur_rx - 16)); in rtl8139_rx()
2072 __func__, cur_rx, in rtl8139_rx()
[all …]
/linux/drivers/net/ethernet/sis/
A Dsis190.c271 u32 cur_rx; member
578 u32 rx_left, cur_rx = tp->cur_rx; in sis190_rx_interrupt() local
581 rx_left = NUM_RX_DESC + tp->dirty_rx - cur_rx; in sis190_rx_interrupt()
584 for (; rx_left > 0; rx_left--, cur_rx++) { in sis190_rx_interrupt()
585 unsigned int entry = cur_rx % NUM_RX_DESC; in sis190_rx_interrupt()
638 count = cur_rx - tp->cur_rx; in sis190_rx_interrupt()
639 tp->cur_rx = cur_rx; in sis190_rx_interrupt()
641 delta = sis190_rx_fill(tp, dev, tp->dirty_rx, tp->cur_rx); 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()
A Dsis900.c179 unsigned int cur_rx, dirty_rx; /* producer/consumer pointers for Tx/Rx ring */ member
1171 sis_priv->cur_rx = 0; in sis900_init_rx_ring()
1744 unsigned int entry = sis_priv->cur_rx % NUM_RX_DESC; in sis900_rx()
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()
1817 net_dev->name, sis_priv->cur_rx, in sis900_rx()
1849 sis_priv->cur_rx++; in sis900_rx()
1850 entry = sis_priv->cur_rx % NUM_RX_DESC; in sis900_rx()
1856 for (; sis_priv->cur_rx != sis_priv->dirty_rx; sis_priv->dirty_rx++) { in sis900_rx()
/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()
813 (ep->cur_rx % RX_RING_SIZE) * sizeof(struct epic_rx_desc)); in epic_restart()
906 ep->cur_rx = ep->dirty_rx = 0; in epic_init_ring()
1144 int entry = ep->cur_rx % RX_RING_SIZE; in epic_rx()
1145 int rx_work_limit = ep->dirty_rx + RX_RING_SIZE - ep->cur_rx; in epic_rx()
1215 entry = (++ep->cur_rx) % RX_RING_SIZE; in epic_rx()
1219 for (; ep->cur_rx - ep->dirty_rx > 0; ep->dirty_rx++) { in epic_rx()
/linux/tools/testing/selftests/net/
A Dveth.sh86 local cur_rx=`ip netns exec $BASE$target ethtool -l $dev |\
94 if [ "$cur_rx" = "$rx" -a "$cur_tx" = "$tx" -a "$cur_combined" = "n/a" ]; then
97 echo " fail rx:$rx:$cur_rx tx:$tx:$cur_tx combined:n/a:$cur_combined"
/linux/drivers/net/arcnet/
A Darcnet.c570 lp->cur_rx = -1; in arcnet_open()
927 recbuf = lp->cur_rx; in arcnet_interrupt()
931 lp->cur_rx = get_arcbuf(dev); in arcnet_interrupt()
932 if (lp->cur_rx != -1) { in arcnet_interrupt()
934 lp->cur_rx); in arcnet_interrupt()
935 lp->hw.command(dev, RXcmd | (lp->cur_rx << 3) | RXbcasts); in arcnet_interrupt()
A Darcdevice.h249 cur_rx; /* current receive buffer */ member
/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()
1019 np->cur_rx = np->cur_tx = 0; in init_ring()
1322 int entry = np->cur_rx % RX_RING_SIZE; in rx_poll()
1396 np->cur_rx = entry; in rx_poll()
1403 np->cur_rx = entry; in rx_poll()
1420 for (;(np->cur_rx - np->dirty_rx + RX_RING_SIZE) % RX_RING_SIZE > 0; in refill_rx()
1840 dev->name, np->cur_tx, np->dirty_tx, np->cur_rx, np->dirty_rx); in netdev_close()
A Ddl2k.c466 np->cur_rx = 0; in rio_reset_ring()
660 if (np->cur_rx - np->old_rx >= RX_RING_SIZE) { in rio_timer()
663 for (; np->cur_rx - np->old_rx > 0; np->old_rx++) { in rio_timer()
919 int entry = np->cur_rx % RX_RING_SIZE; in receive_packet()
987 np->cur_rx = entry; in receive_packet()
990 while (entry != np->cur_rx) { in receive_packet()
A Ddl2k.h393 unsigned long cur_rx, old_rx; /* Producer/consumer ring indices */ member
/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()
1953 if (np->cur_rx - np->dirty_rx == RX_RING_SIZE) { in refill_rx()
1987 np->cur_rx = RX_RING_SIZE; in init_ring()
2065 np->cur_rx = RX_RING_SIZE; in reinit_rx()
2208 prefetch(&np->rx_skbuff[np->cur_rx % RX_RING_SIZE]); in intr_handler()
2282 int entry = np->cur_rx % RX_RING_SIZE; in netdev_rx()
2283 int boguscnt = np->dirty_rx + RX_RING_SIZE - np->cur_rx; in netdev_rx()
2314 np->cur_rx, desc_status); in netdev_rx()
2383 entry = (++np->cur_rx) % RX_RING_SIZE; in netdev_rx()
[all …]
A Dsonic.c558 int entry = lp->cur_rx; in sonic_rx()
619 lp->cur_rx = entry; in sonic_rx()
787 lp->cur_rx = 0; in sonic_init()
/linux/drivers/net/ethernet/renesas/
A Dravb_main.c403 priv->cur_rx[q] = 0; in ravb_ring_format()
769 entry = priv->cur_rx[q] % priv->num_rx_ring[q]; in ravb_rx_gbeth()
770 boguscnt = priv->dirty_rx[q] + priv->num_rx_ring[q] - priv->cur_rx[q]; in ravb_rx_gbeth()
844 entry = (++priv->cur_rx[q]) % priv->num_rx_ring[q]; in ravb_rx_gbeth()
849 for (; priv->cur_rx[q] - priv->dirty_rx[q] > 0; priv->dirty_rx[q]++) { in ravb_rx_gbeth()
887 int entry = priv->cur_rx[q] % priv->num_rx_ring[q]; in ravb_rx_rcar()
889 priv->cur_rx[q]; in ravb_rx_rcar()
960 entry = (++priv->cur_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()
1287 entry = priv->cur_rx[q] % priv->num_rx_ring[q]; in ravb_poll()
[all …]
/linux/drivers/net/ethernet/3com/
A D3c515.c304 unsigned int cur_rx, cur_tx; /* The next free ring entry */ member
805 vp->cur_rx = vp->dirty_rx = 0; in corkscrew_open()
1321 int entry = vp->cur_rx % RX_RING_SIZE; in boomerang_rx()
1383 entry = (++vp->cur_rx) % RX_RING_SIZE; in boomerang_rx()
1386 for (; vp->cur_rx - vp->dirty_rx > 0; vp->dirty_rx++) { in boomerang_rx()
/linux/drivers/net/ethernet/freescale/fs_enet/
A Dfs_enet-main.c196 bdp = fep->cur_rx; in fs_enet_napi()
299 fep->cur_rx = bdp; in fs_enet_napi()
371 fep->cur_rx = fep->rx_bd_base; in fs_init_bds()
A Dfs_enet.h139 cbd_t __iomem *cur_rx; member

Completed in 101 milliseconds

12