/linux-6.1.9/drivers/net/ethernet/dec/tulip/ |
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);
|
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-6.1.9/drivers/net/ethernet/ |
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 …]
|
D | ethoc.c | 209 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-6.1.9/drivers/net/can/spi/mcp251xfd/ |
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() 107 priv->rx_obj_num = layout.cur_rx; in mcp251xfd_ring_set_coalesce()
|
D | mcp251xfd-ram.c | 143 layout->cur_rx = num_rx; in can_ram_get_layout() 148 layout->cur_rx = layout->default_rx; in can_ram_get_layout()
|
D | mcp251xfd-ram.h | 49 u8 cur_rx; member
|
/linux-6.1.9/drivers/net/ethernet/amd/ |
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()
|
D | atarilance.c | 222 int cur_rx, cur_tx; /* The next free ring entry */ member 688 lp->cur_rx = lp->cur_tx = 0; in lance_init_ring() 749 lp->cur_rx )); in lance_tx_timeout() 964 int entry = lp->cur_rx & RX_RING_MOD_MASK; in lance_rx() 1007 lp->cur_rx++; in lance_rx() 1032 entry = (++lp->cur_rx) & RX_RING_MOD_MASK; in lance_rx() 1034 lp->cur_rx &= RX_RING_MOD_MASK; in lance_rx()
|
D | lance.c | 248 int cur_rx, cur_tx; /* The next free ring entry */ member 870 lp->cur_rx = lp->cur_tx = 0; in lance_init_ring() 935 lp->cur_rx); in lance_tx_timeout() 1151 int entry = lp->cur_rx & RX_RING_MOD_MASK; in lance_rx() 1200 lp->cur_rx++; in lance_rx() 1219 entry = (++lp->cur_rx) & RX_RING_MOD_MASK; in lance_rx()
|
/linux-6.1.9/drivers/net/ethernet/packetengines/ |
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 …]
|
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-6.1.9/drivers/net/ethernet/sis/ |
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()
|
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-6.1.9/drivers/net/ethernet/realtek/ |
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-6.1.9/tools/testing/selftests/net/ |
D | veth.sh | 87 local cur_rx=`ip netns exec $BASE$target ethtool -l $dev |\ 95 if [ "$cur_rx" = "$rx" -a "$cur_tx" = "$tx" -a "$cur_combined" = "n/a" ]; then 98 echo " fail rx:$rx:$cur_rx tx:$tx:$cur_tx combined:n/a:$cur_combined"
|
/linux-6.1.9/drivers/net/ethernet/smsc/ |
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-6.1.9/drivers/net/arcnet/ |
D | arcnet.c | 570 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()
|
/linux-6.1.9/drivers/net/ethernet/dlink/ |
D | sundance.c | 388 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()
|
D | dl2k.c | 466 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()
|
D | dl2k.h | 393 unsigned long cur_rx, old_rx; /* Producer/consumer ring indices */ member
|
/linux-6.1.9/drivers/net/ethernet/renesas/ |
D | ravb_main.c | 402 priv->cur_rx[q] = 0; in ravb_ring_format() 774 entry = priv->cur_rx[q] % priv->num_rx_ring[q]; in ravb_rx_gbeth() 775 boguscnt = priv->dirty_rx[q] + priv->num_rx_ring[q] - priv->cur_rx[q]; in ravb_rx_gbeth() 849 entry = (++priv->cur_rx[q]) % priv->num_rx_ring[q]; in ravb_rx_gbeth() 854 for (; priv->cur_rx[q] - priv->dirty_rx[q] > 0; priv->dirty_rx[q]++) { in ravb_rx_gbeth() 892 int entry = priv->cur_rx[q] % priv->num_rx_ring[q]; in ravb_rx_rcar() 894 priv->cur_rx[q]; in ravb_rx_rcar() 965 entry = (++priv->cur_rx[q]) % priv->num_rx_ring[q]; in ravb_rx_rcar() 970 for (; priv->cur_rx[q] - priv->dirty_rx[q] > 0; priv->dirty_rx[q]++) { in ravb_rx_rcar() 1292 entry = priv->cur_rx[q] % priv->num_rx_ring[q]; in ravb_poll() [all …]
|
/linux-6.1.9/drivers/net/ethernet/natsemi/ |
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 …]
|
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-6.1.9/drivers/net/ethernet/3com/ |
D | 3c515.c | 304 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()
|