Home
last modified time | relevance | path

Searched refs:cur_rx (Results 1 – 25 of 48) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/net/ethernet/dec/tulip/
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);
Dwinbond-840.c302 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()
/kernel/linux/linux-5.10/drivers/net/ethernet/
Dfealnx.c393 struct fealnx_desc *cur_rx; member
1146 iowrite32(np->rx_ring_dma + ((char*)np->cur_rx - (char*)np->rx_ring), in enable_rxtx()
1231 np->cur_rx = &np->rx_ring[0]; in init_ring()
1407 struct fealnx_desc *cur = np->cur_rx; in reset_rx_descriptors()
1418 iowrite32(np->rx_ring_dma + ((char*)np->cur_rx - (char*)np->rx_ring), in reset_rx_descriptors()
1612 while (!(np->cur_rx->status & RXOWN) && np->cur_rx->skbuff) { in netdev_rx()
1613 s32 rx_status = np->cur_rx->status; in netdev_rx()
1644 cur = np->cur_rx; in netdev_rx()
1665 if (!np->cur_rx->skbuff) { in netdev_rx()
1670 np->cur_rx->status = RXOWN; in netdev_rx()
[all …]
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()
/kernel/linux/linux-5.10/drivers/net/ethernet/amd/
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()
Datarilance.c222 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()
Dlance.c248 int cur_rx, cur_tx; /* The next free ring entry */ member
866 lp->cur_rx = lp->cur_tx = 0; in lance_init_ring()
931 lp->cur_rx); in lance_tx_timeout()
1147 int entry = lp->cur_rx & RX_RING_MOD_MASK; in lance_rx()
1196 lp->cur_rx++; in lance_rx()
1215 entry = (++lp->cur_rx) & RX_RING_MOD_MASK; in lance_rx()
/kernel/linux/linux-5.10/drivers/net/ethernet/packetengines/
Dhamachi.c494 unsigned int cur_rx, dirty_rx; /* Producer/consumer ring indices */ member
1112 hmp->cur_rx = hmp->cur_tx = 0; in hamachi_tx_timeout()
1168 hmp->cur_rx = hmp->cur_tx = 0; in hamachi_init_ring()
1407 int entry = hmp->cur_rx % RX_RING_SIZE; in hamachi_rx()
1408 int boguscnt = (hmp->dirty_rx + RX_RING_SIZE) - hmp->cur_rx; in hamachi_rx()
1438 dev->name, hmp->cur_rx, data_size, desc_status); in hamachi_rx()
1440 dev->name, desc, &hmp->rx_ring[hmp->cur_rx % RX_RING_SIZE]); in hamachi_rx()
1443 le32_to_cpu(hmp->rx_ring[(hmp->cur_rx+1) % RX_RING_SIZE].status_n_length) & 0xffff0000, in hamachi_rx()
1444 le32_to_cpu(hmp->rx_ring[(hmp->cur_rx+1) % RX_RING_SIZE].status_n_length) & 0x0000ffff, in hamachi_rx()
1445 le32_to_cpu(hmp->rx_ring[(hmp->cur_rx-1) % RX_RING_SIZE].status_n_length)); in hamachi_rx()
[all …]
Dyellowfin.c323 unsigned int cur_rx, dirty_rx; /* Producer/consumer ring indices */ member
730 yp->cur_rx = yp->cur_tx = 0; in yellowfin_init_ring()
1046 int entry = yp->cur_rx % RX_RING_SIZE; in yellowfin_rx()
1047 int boguscnt = yp->dirty_rx + RX_RING_SIZE - yp->cur_rx; in yellowfin_rx()
1157 entry = (++yp->cur_rx) % RX_RING_SIZE; in yellowfin_rx()
1161 for (; yp->cur_rx - yp->dirty_rx > 0; yp->dirty_rx++) { in yellowfin_rx()
1213 yp->cur_rx, yp->dirty_rx); in yellowfin_close()
/kernel/linux/linux-5.10/drivers/net/ethernet/sis/
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()
Dsis900.c179 unsigned int cur_rx, dirty_rx; /* producer/consumer pointers for Tx/Rx ring */ member
1164 sis_priv->cur_rx = 0; in sis900_init_rx_ring()
1737 unsigned int entry = sis_priv->cur_rx % NUM_RX_DESC; in sis900_rx()
1744 sis_priv->cur_rx, sis_priv->dirty_rx, rx_status); in sis900_rx()
1745 rx_work_limit = sis_priv->dirty_rx + NUM_RX_DESC - sis_priv->cur_rx; in sis900_rx()
1810 net_dev->name, sis_priv->cur_rx, in sis900_rx()
1842 sis_priv->cur_rx++; in sis900_rx()
1843 entry = sis_priv->cur_rx % NUM_RX_DESC; in sis900_rx()
1849 for (; sis_priv->cur_rx != sis_priv->dirty_rx; sis_priv->dirty_rx++) { in sis900_rx()
/kernel/linux/linux-5.10/drivers/net/ethernet/realtek/
D8139too.c588 unsigned int cur_rx; /* RX buf index of next pkt */ member
1399 tp->cur_rx = 0; in rtl8139_hw_start()
1452 tp->cur_rx = 0; in rtl8139_init_ring()
1865 tp->cur_rx = 0; in rtl8139_rx_err()
1899 tp->cur_rx = 0; in rtl8139_rx_err()
1952 unsigned int cur_rx = tp->cur_rx; in rtl8139_rx() local
1956 __func__, (u16)cur_rx, in rtl8139_rx()
1961 u32 ring_offset = cur_rx % RX_BUF_LEN; in rtl8139_rx()
1977 __func__, rx_status, rx_size, cur_rx); in rtl8139_rx()
2061 cur_rx = (cur_rx + rx_size + 4 + 3) & ~3; in rtl8139_rx()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/smsc/
Depic100.c269 unsigned int cur_rx, dirty_rx; member
788 ep->cur_rx, ep->dirty_rx, ep->dirty_tx, ep->cur_tx); in epic_restart()
811 (ep->cur_rx % RX_RING_SIZE) * sizeof(struct epic_rx_desc)); in epic_restart()
904 ep->cur_rx = ep->dirty_rx = 0; in epic_init_ring()
1142 int entry = ep->cur_rx % RX_RING_SIZE; in epic_rx()
1143 int rx_work_limit = ep->dirty_rx + RX_RING_SIZE - ep->cur_rx; in epic_rx()
1213 entry = (++ep->cur_rx) % RX_RING_SIZE; in epic_rx()
1217 for (; ep->cur_rx - ep->dirty_rx > 0; ep->dirty_rx++) { in epic_rx()
/kernel/linux/linux-5.10/drivers/net/arcnet/
Darcnet.c571 lp->cur_rx = -1; in arcnet_open()
928 recbuf = lp->cur_rx; in arcnet_interrupt()
932 lp->cur_rx = get_arcbuf(dev); in arcnet_interrupt()
933 if (lp->cur_rx != -1) { in arcnet_interrupt()
935 lp->cur_rx); in arcnet_interrupt()
936 lp->hw.command(dev, RXcmd | (lp->cur_rx << 3) | RXbcasts); in arcnet_interrupt()
Darcdevice.h249 cur_rx; /* current receive buffer */ member
/kernel/linux/linux-5.10/drivers/net/ethernet/dlink/
Dsundance.c388 unsigned int cur_rx, dirty_rx; /* Producer/consumer ring indices */ member
990 printk(KERN_DEBUG "cur_rx=%d dirty_rx=%d\n", np->cur_rx, np->dirty_rx); in tx_timeout()
1017 np->cur_rx = np->cur_tx = 0; in init_ring()
1320 int entry = np->cur_rx % RX_RING_SIZE; in rx_poll()
1394 np->cur_rx = entry; in rx_poll()
1401 np->cur_rx = entry; in rx_poll()
1418 for (;(np->cur_rx - np->dirty_rx + RX_RING_SIZE) % RX_RING_SIZE > 0; in refill_rx()
1838 dev->name, np->cur_tx, np->dirty_tx, np->cur_rx, np->dirty_rx); in netdev_close()
Ddl2k.c467 np->cur_rx = 0; in rio_reset_ring()
661 if (np->cur_rx - np->old_rx >= RX_RING_SIZE) { in rio_timer()
664 for (; np->cur_rx - np->old_rx > 0; np->old_rx++) { in rio_timer()
920 int entry = np->cur_rx % RX_RING_SIZE; in receive_packet()
988 np->cur_rx = entry; in receive_packet()
991 while (entry != np->cur_rx) { in receive_packet()
Ddl2k.h393 unsigned long cur_rx, old_rx; /* Producer/consumer ring indices */ member
/kernel/linux/linux-5.10/drivers/net/ethernet/natsemi/
Dnatsemi.c558 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 …]
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()
/kernel/linux/linux-5.10/drivers/net/ethernet/3com/
D3c515.c304 unsigned int cur_rx, cur_tx; /* The next free ring entry */ member
803 vp->cur_rx = vp->dirty_rx = 0; in corkscrew_open()
1319 int entry = vp->cur_rx % RX_RING_SIZE; in boomerang_rx()
1381 entry = (++vp->cur_rx) % RX_RING_SIZE; in boomerang_rx()
1384 for (; vp->cur_rx - vp->dirty_rx > 0; vp->dirty_rx++) { in boomerang_rx()
/kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/
Dstmmac.h79 unsigned int cur_rx; member
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/fs_enet/
Dfs_enet.h139 cbd_t __iomem *cur_rx; member
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()
/kernel/linux/linux-5.10/drivers/net/ethernet/adaptec/
Dstarfire.c551 unsigned int cur_rx, dirty_rx; /* Producer/consumer ring indices */ member
1130 np->cur_rx = np->cur_tx = np->reap_tx = 0; in init_ring()
1531 np->cur_rx++; in __netdev_rx()
1588 for (; np->cur_rx - np->dirty_rx > 0; np->dirty_rx++) { in refill_rx_ring()
1938 np->cur_rx, np->dirty_rx); in netdev_close()

12