/linux/drivers/net/ethernet/dec/tulip/ |
H A D | interrupt.c | 66 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);
|
H A D | winbond-840.c | 302 unsigned int cur_rx, dirty_rx; /* Producer/consumer ring indices */ member 812 np->cur_rx = 0; in init_rxtx_rings() 1164 int entry = np->cur_rx % RX_RING_SIZE; in netdev_rx() 1165 int work_limit = np->dirty_rx + RX_RING_SIZE - np->cur_rx; in netdev_rx() 1188 np->cur_rx, status); in netdev_rx() 1247 entry = (++np->cur_rx) % RX_RING_SIZE; in netdev_rx() 1252 for (; np->cur_rx - np->dirty_rx > 0; np->dirty_rx++) { in netdev_rx() 1477 np->cur_rx, np->dirty_rx); in netdev_close()
|
/linux/drivers/net/ethernet/ |
H A D | fealnx.c | 393 struct fealnx_desc *cur_rx; member 1148 iowrite32(np->rx_ring_dma + ((char*)np->cur_rx - (char*)np->rx_ring), in enable_rxtx() 1233 np->cur_rx = &np->rx_ring[0]; in init_ring() 1409 struct fealnx_desc *cur = np->cur_rx; in reset_rx_descriptors() 1420 iowrite32(np->rx_ring_dma + ((char*)np->cur_rx - (char*)np->rx_ring), in reset_rx_descriptors() 1614 while (!(np->cur_rx->status & RXOWN) && np->cur_rx->skbuff) { in netdev_rx() 1615 s32 rx_status = np->cur_rx->status; in netdev_rx() 1646 cur = np->cur_rx; in netdev_rx() 1667 if (!np->cur_rx->skbuff) { in netdev_rx() 1672 np->cur_rx->status = RXOWN; in netdev_rx() [all …]
|
/linux/drivers/net/can/spi/mcp251xfd/ |
H A D | mcp251xfd-ethtool.c | 43 if ((layout.cur_rx != priv->rx_obj_num || in mcp251xfd_ring_set_ringparam() 48 priv->rx_obj_num = layout.cur_rx; in mcp251xfd_ring_set_ringparam() 108 priv->rx_obj_num = layout.cur_rx; in mcp251xfd_ring_set_coalesce()
|
H A D | mcp251xfd-ram.c | 152 layout->cur_rx = num_rx; in can_ram_get_layout() 157 layout->cur_rx = layout->default_rx; in can_ram_get_layout()
|
H A D | mcp251xfd-ram.h | 49 u8 cur_rx; member
|
/linux/drivers/net/ethernet/amd/ |
H A D | ariadne.c | 92 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()
|
H A D | atarilance.c | 223 int cur_rx, cur_tx; /* The next free ring entry */ member 689 lp->cur_rx = lp->cur_tx = 0; in lance_init_ring() 750 lp->cur_rx )); in lance_tx_timeout() 965 int entry = lp->cur_rx & RX_RING_MOD_MASK; in lance_rx() 1008 lp->cur_rx++; in lance_rx() 1033 entry = (++lp->cur_rx) & RX_RING_MOD_MASK; in lance_rx() 1035 lp->cur_rx &= RX_RING_MOD_MASK; in lance_rx()
|
H A D | lance.c | 249 int cur_rx, cur_tx; /* The next free ring entry */ member 872 lp->cur_rx = lp->cur_tx = 0; in lance_init_ring() 937 lp->cur_rx); in lance_tx_timeout() 1153 int entry = lp->cur_rx & RX_RING_MOD_MASK; in lance_rx() 1202 lp->cur_rx++; in lance_rx() 1221 entry = (++lp->cur_rx) & RX_RING_MOD_MASK; in lance_rx()
|
/linux/drivers/net/ethernet/packetengines/ |
H A D | hamachi.c | 494 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() 1447 le32_to_cpu(hmp->rx_ring[(hmp->cur_rx+1) % RX_RING_SIZE].status_n_length) & 0xffff0000, in hamachi_rx() 1448 le32_to_cpu(hmp->rx_ring[(hmp->cur_rx+1) % RX_RING_SIZE].status_n_length) & 0x0000ffff, in hamachi_rx() 1449 le32_to_cpu(hmp->rx_ring[(hmp->cur_rx-1) % RX_RING_SIZE].status_n_length)); in hamachi_rx() [all …]
|
H A D | yellowfin.c | 323 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/ |
H A D | 8139too.c | 588 unsigned int cur_rx; /* RX buf index of next pkt */ member 1400 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() 1978 __func__, rx_status, rx_size, cur_rx); in rtl8139_rx() 2062 cur_rx = (cur_rx + rx_size + 4 + 3) & ~3; in rtl8139_rx() [all …]
|
/linux/drivers/net/ethernet/sis/ |
H A D | sis190.c | 271 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()
|
H A D | sis900.c | 179 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/ |
H A D | epic100.c | 269 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/drivers/net/arcnet/ |
H A D | arcnet.c | 568 lp->cur_rx = -1; in arcnet_open() 925 recbuf = lp->cur_rx; in arcnet_interrupt() 929 lp->cur_rx = get_arcbuf(dev); in arcnet_interrupt() 930 if (lp->cur_rx != -1) { in arcnet_interrupt() 932 lp->cur_rx); in arcnet_interrupt() 933 lp->hw.command(dev, RXcmd | (lp->cur_rx << 3) | RXbcasts); in arcnet_interrupt()
|
/linux/tools/testing/selftests/net/ |
H A D | veth.sh | 85 local cur_rx=`ip netns exec $BASE$target ethtool -l $dev |\ 93 if [ "$cur_rx" = "$rx" -a "$cur_tx" = "$tx" -a "$cur_combined" = "n/a" ]; then 96 echo " fail rx:$rx:$cur_rx tx:$tx:$cur_tx combined:n/a:$cur_combined"
|
/linux/drivers/net/ethernet/renesas/ |
H A D | rtsn.c | 52 u32 cur_rx; member 168 ndescriptors = priv->dirty_rx + priv->num_rx_ring - priv->cur_rx; in rtsn_rx() 171 const unsigned int entry = priv->cur_rx % priv->num_rx_ring; in rtsn_rx() 217 priv->cur_rx++; in rtsn_rx() 222 for (; priv->cur_rx - priv->dirty_rx > 0; priv->dirty_rx++) { in rtsn_rx() 399 priv->cur_rx = 0; in rtsn_chain_format()
|
H A D | ravb_main.c | 366 priv->cur_rx[q] = 0; in ravb_ring_format() 814 limit = priv->dirty_rx[q] + priv->num_rx_ring[q] - priv->cur_rx[q]; in ravb_rx_gbeth() 817 for (i = 0; i < limit; i++, priv->cur_rx[q]++) { in ravb_rx_gbeth() 818 entry = priv->cur_rx[q] % priv->num_rx_ring[q]; in ravb_rx_gbeth() 941 priv->cur_rx[q] - priv->dirty_rx[q], in ravb_rx_gbeth() 963 limit = priv->dirty_rx[q] + priv->num_rx_ring[q] - priv->cur_rx[q]; in ravb_rx_rcar() 964 for (i = 0; i < limit; i++, priv->cur_rx[q]++) { in ravb_rx_rcar() 965 entry = priv->cur_rx[q] % priv->num_rx_ring[q]; in ravb_rx_rcar() 1041 priv->cur_rx[q] - priv->dirty_rx[q], in ravb_rx_rcar() 1637 data[i++] = priv->cur_rx[q]; in ravb_get_ethtool_stats()
|
/linux/drivers/net/ethernet/natsemi/ |
H A D | natsemi.c | 558 unsigned int cur_rx, dirty_rx; member 1930 for (; np->cur_rx - np->dirty_rx > 0; np->dirty_rx++) { in refill_rx() 1951 if (np->cur_rx - np->dirty_rx == RX_RING_SIZE) { in refill_rx() 1985 np->cur_rx = RX_RING_SIZE; in init_ring() 2063 np->cur_rx = RX_RING_SIZE; in reinit_rx() 2206 prefetch(&np->rx_skbuff[np->cur_rx % RX_RING_SIZE]); in intr_handler() 2280 int entry = np->cur_rx % RX_RING_SIZE; in netdev_rx() 2281 int boguscnt = np->dirty_rx + RX_RING_SIZE - np->cur_rx; in netdev_rx() 2312 np->cur_rx, desc_status); in netdev_rx() 2381 entry = (++np->cur_rx) % RX_RING_SIZE; in netdev_rx() [all …]
|
H A D | sonic.c | 558 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/3com/ |
H A D | 3c515.c | 303 unsigned int cur_rx, cur_tx; /* The next free ring entry */ member 804 vp->cur_rx = vp->dirty_rx = 0; in corkscrew_open() 1320 int entry = vp->cur_rx % RX_RING_SIZE; in boomerang_rx() 1382 entry = (++vp->cur_rx) % RX_RING_SIZE; in boomerang_rx() 1385 for (; vp->cur_rx - vp->dirty_rx > 0; vp->dirty_rx++) { in boomerang_rx()
|
/linux/drivers/net/ethernet/dlink/ |
H A D | dl2k.c | 466 np->cur_rx = 0; in rio_reset_ring() 659 if (np->cur_rx - np->old_rx >= RX_RING_SIZE) { in rio_timer() 662 for (; np->cur_rx - np->old_rx > 0; np->old_rx++) { in rio_timer() 916 int entry = np->cur_rx % RX_RING_SIZE; in receive_packet() 984 np->cur_rx = entry; in receive_packet() 987 while (entry != np->cur_rx) { in receive_packet()
|
H A D | dl2k.h | 393 unsigned long cur_rx, old_rx; /* Producer/consumer ring indices */ member
|
/linux/drivers/net/ethernet/freescale/fs_enet/ |
H A D | fs_enet-main.c | 189 bdp = fep->cur_rx; in fs_enet_napi() 283 fep->cur_rx = bdp; in fs_enet_napi() 351 fep->cur_rx = fep->rx_bd_base; in fs_init_bds()
|