/Linux-v4.19/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() 260 entry = (++tp->cur_rx) % RX_RING_SIZE; in tulip_poll() 261 if (tp->cur_rx - tp->dirty_rx > RX_RING_SIZE/4) in tulip_poll() 339 if (tp->cur_rx - tp->dirty_rx > RX_RING_SIZE/2 || in tulip_poll() 368 int entry = tp->cur_rx % RX_RING_SIZE; in tulip_rx() 369 int rx_work_limit = tp->dirty_rx + RX_RING_SIZE - tp->cur_rx; in tulip_rx() 483 entry = (++tp->cur_rx) % RX_RING_SIZE; in tulip_rx() 785 tp->nir, tp->cur_rx, tp->ttimer, rx);
|
D | winbond-840.c | 312 unsigned int cur_rx, dirty_rx; /* Producer/consumer ring indices */ member 822 np->cur_rx = 0; in init_rxtx_rings() 1178 int entry = np->cur_rx % RX_RING_SIZE; in netdev_rx() 1179 int work_limit = np->dirty_rx + RX_RING_SIZE - np->cur_rx; in netdev_rx() 1202 np->cur_rx, status); in netdev_rx() 1258 entry = (++np->cur_rx) % RX_RING_SIZE; in netdev_rx() 1263 for (; np->cur_rx - np->dirty_rx > 0; np->dirty_rx++) { in netdev_rx() 1488 np->cur_rx, np->dirty_rx); in netdev_close()
|
/Linux-v4.19/drivers/net/ethernet/ |
D | fealnx.c | 400 struct fealnx_desc *cur_rx; member 1154 iowrite32(np->rx_ring_dma + ((char*)np->cur_rx - (char*)np->rx_ring), in enable_rxtx() 1239 np->cur_rx = &np->rx_ring[0]; in init_ring() 1410 struct fealnx_desc *cur = np->cur_rx; in reset_rx_descriptors() 1421 iowrite32(np->rx_ring_dma + ((char*)np->cur_rx - (char*)np->rx_ring), in reset_rx_descriptors() 1613 while (!(np->cur_rx->status & RXOWN) && np->cur_rx->skbuff) { in netdev_rx() 1614 s32 rx_status = np->cur_rx->status; in netdev_rx() 1645 cur = np->cur_rx; in netdev_rx() 1666 if (!np->cur_rx->skbuff) { in netdev_rx() 1671 np->cur_rx->status = RXOWN; in netdev_rx() [all …]
|
D | ethoc.c | 208 unsigned int cur_rx; member 309 dev->cur_rx = 0; in ethoc_init_ring() 428 entry = priv->num_tx + priv->cur_rx; in ethoc_rx() 472 if (++priv->cur_rx == priv->num_rx) in ethoc_rx() 473 priv->cur_rx = 0; in ethoc_rx()
|
/Linux-v4.19/drivers/net/ethernet/nuvoton/ |
D | w90p910_ether.c | 167 unsigned int cur_rx; member 482 ether->cur_rx = 0x0; in w90p910_reset_mac() 706 rxbd = ðer->rdesc->desclist[ether->cur_rx]; in netdev_rx() 712 offsetof(struct recv_pdesc, desclist[ether->cur_rx]); in netdev_rx() 721 data = ether->rdesc->recv_buf[ether->cur_rx]; in netdev_rx() 756 if (++ether->cur_rx >= RX_DESC_SIZE) in netdev_rx() 757 ether->cur_rx = 0; in netdev_rx() 759 rxbd = ðer->rdesc->desclist[ether->cur_rx]; in netdev_rx() 950 ether->cur_rx = 0x0; in w90p910_ether_setup()
|
/Linux-v4.19/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() 963 int entry = lp->cur_rx & RX_RING_MOD_MASK; in lance_rx() 1006 lp->cur_rx++; in lance_rx() 1031 entry = (++lp->cur_rx) & RX_RING_MOD_MASK; in lance_rx() 1033 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 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()
|
/Linux-v4.19/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() 636 count = cur_rx - tp->cur_rx; in sis190_rx_interrupt() 637 tp->cur_rx = cur_rx; in sis190_rx_interrupt() 639 delta = sis190_rx_fill(tp, dev, tp->dirty_rx, tp->cur_rx); in sis190_rx_interrupt() 644 if ((tp->dirty_rx + NUM_RX_DESC) == tp->cur_rx) in sis190_rx_interrupt() 808 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 1161 sis_priv->cur_rx = 0; in sis900_init_rx_ring() 1730 unsigned int entry = sis_priv->cur_rx % NUM_RX_DESC; in sis900_rx() 1737 sis_priv->cur_rx, sis_priv->dirty_rx, rx_status); in sis900_rx() 1738 rx_work_limit = sis_priv->dirty_rx + NUM_RX_DESC - sis_priv->cur_rx; in sis900_rx() 1803 net_dev->name, sis_priv->cur_rx, in sis900_rx() 1834 sis_priv->cur_rx++; in sis900_rx() 1835 entry = sis_priv->cur_rx % NUM_RX_DESC; in sis900_rx() 1841 for (; sis_priv->cur_rx != sis_priv->dirty_rx; sis_priv->dirty_rx++) { in sis900_rx()
|
/Linux-v4.19/drivers/net/ethernet/packetengines/ |
D | hamachi.c | 494 unsigned int cur_rx, dirty_rx; /* Producer/consumer ring indices */ member 1109 hmp->cur_rx = hmp->cur_tx = 0; in hamachi_tx_timeout() 1163 hmp->cur_rx = hmp->cur_tx = 0; in hamachi_init_ring() 1398 int entry = hmp->cur_rx % RX_RING_SIZE; in hamachi_rx() 1399 int boguscnt = (hmp->dirty_rx + RX_RING_SIZE) - hmp->cur_rx; in hamachi_rx() 1430 dev->name, hmp->cur_rx, data_size, desc_status); in hamachi_rx() 1432 dev->name, desc, &hmp->rx_ring[hmp->cur_rx % RX_RING_SIZE]); in hamachi_rx() 1435 le32_to_cpu(hmp->rx_ring[(hmp->cur_rx+1) % RX_RING_SIZE].status_n_length) & 0xffff0000, in hamachi_rx() 1436 le32_to_cpu(hmp->rx_ring[(hmp->cur_rx+1) % RX_RING_SIZE].status_n_length) & 0x0000ffff, in hamachi_rx() 1437 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 725 yp->cur_rx = yp->cur_tx = 0; in yellowfin_init_ring() 1036 int entry = yp->cur_rx % RX_RING_SIZE; in yellowfin_rx() 1037 int boguscnt = yp->dirty_rx + RX_RING_SIZE - yp->cur_rx; in yellowfin_rx() 1146 entry = (++yp->cur_rx) % RX_RING_SIZE; in yellowfin_rx() 1150 for (; yp->cur_rx - yp->dirty_rx > 0; yp->dirty_rx++) { in yellowfin_rx() 1200 yp->cur_rx, yp->dirty_rx); in yellowfin_close()
|
/Linux-v4.19/drivers/net/ethernet/realtek/ |
D | 8139too.c | 587 unsigned int cur_rx; /* RX buf index of next pkt */ member 1398 tp->cur_rx = 0; in rtl8139_hw_start() 1451 tp->cur_rx = 0; in rtl8139_init_ring() 1864 tp->cur_rx = 0; in rtl8139_rx_err() 1898 tp->cur_rx = 0; in rtl8139_rx_err() 1951 unsigned int cur_rx = tp->cur_rx; in rtl8139_rx() local 1955 __func__, (u16)cur_rx, in rtl8139_rx() 1960 u32 ring_offset = cur_rx % RX_BUF_LEN; in rtl8139_rx() 1976 __func__, rx_status, rx_size, cur_rx); in rtl8139_rx() 2060 cur_rx = (cur_rx + rx_size + 4 + 3) & ~3; in rtl8139_rx() [all …]
|
/Linux-v4.19/drivers/net/arcnet/ |
D | arcnet.c | 524 lp->cur_rx = -1; in arcnet_open() 871 recbuf = lp->cur_rx; in arcnet_interrupt() 875 lp->cur_rx = get_arcbuf(dev); in arcnet_interrupt() 876 if (lp->cur_rx != -1) { in arcnet_interrupt() 878 lp->cur_rx); in arcnet_interrupt() 879 lp->hw.command(dev, RXcmd | (lp->cur_rx << 3) | RXbcasts); in arcnet_interrupt()
|
D | arcdevice.h | 254 cur_rx; /* current receive buffer */ member
|
/Linux-v4.19/drivers/net/ethernet/smsc/ |
D | epic100.c | 269 unsigned int cur_rx, dirty_rx; member 783 ep->cur_rx, ep->dirty_rx, ep->dirty_tx, ep->cur_tx); in epic_restart() 806 (ep->cur_rx % RX_RING_SIZE) * sizeof(struct epic_rx_desc)); in epic_restart() 899 ep->cur_rx = ep->dirty_rx = 0; in epic_init_ring() 1133 int entry = ep->cur_rx % RX_RING_SIZE; in epic_rx() 1134 int rx_work_limit = ep->dirty_rx + RX_RING_SIZE - ep->cur_rx; in epic_rx() 1203 entry = (++ep->cur_rx) % RX_RING_SIZE; in epic_rx() 1207 for (; ep->cur_rx - ep->dirty_rx > 0; ep->dirty_rx++) { in epic_rx()
|
/Linux-v4.19/drivers/net/ethernet/dlink/ |
D | sundance.c | 395 unsigned int cur_rx, dirty_rx; /* Producer/consumer ring indices */ member 1003 printk(KERN_DEBUG "cur_rx=%d dirty_rx=%d\n", np->cur_rx, np->dirty_rx); in tx_timeout() 1030 np->cur_rx = np->cur_tx = 0; in init_ring() 1335 int entry = np->cur_rx % RX_RING_SIZE; in rx_poll() 1409 np->cur_rx = entry; in rx_poll() 1416 np->cur_rx = entry; in rx_poll() 1433 for (;(np->cur_rx - np->dirty_rx + RX_RING_SIZE) % RX_RING_SIZE > 0; in refill_rx() 1854 dev->name, np->cur_tx, np->dirty_tx, np->cur_rx, np->dirty_rx); in netdev_close()
|
D | dl2k.c | 473 np->cur_rx = 0; in rio_reset_ring() 668 if (np->cur_rx - np->old_rx >= RX_RING_SIZE) { in rio_timer() 671 for (; np->cur_rx - np->old_rx > 0; np->old_rx++) { in rio_timer() 929 int entry = np->cur_rx % RX_RING_SIZE; in receive_packet() 997 np->cur_rx = entry; in receive_packet() 1000 while (entry != np->cur_rx) { in receive_packet()
|
D | dl2k.h | 396 unsigned long cur_rx, old_rx; /* Producer/consumer ring indices */ member
|
/Linux-v4.19/drivers/net/ethernet/natsemi/ |
D | sonic.c | 419 int entry = lp->cur_rx; in sonic_rx() 501 lp->cur_rx = entry = (entry + 1) & SONIC_RDS_MASK; in sonic_rx() 665 lp->cur_rx = 0; in sonic_init()
|
D | natsemi.c | 558 unsigned int cur_rx, dirty_rx; member 1933 for (; np->cur_rx - np->dirty_rx > 0; np->dirty_rx++) { in refill_rx() 1954 if (np->cur_rx - np->dirty_rx == RX_RING_SIZE) { in refill_rx() 1988 np->cur_rx = RX_RING_SIZE; in init_ring() 2067 np->cur_rx = RX_RING_SIZE; in reinit_rx() 2211 prefetch(&np->rx_skbuff[np->cur_rx % RX_RING_SIZE]); in intr_handler() 2285 int entry = np->cur_rx % RX_RING_SIZE; in netdev_rx() 2286 int boguscnt = np->dirty_rx + RX_RING_SIZE - np->cur_rx; in netdev_rx() 2317 np->cur_rx, desc_status); in netdev_rx() 2385 entry = (++np->cur_rx) % RX_RING_SIZE; in netdev_rx() [all …]
|
/Linux-v4.19/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac.h | 73 unsigned int cur_rx; member
|
/Linux-v4.19/drivers/net/ethernet/3com/ |
D | 3c515.c | 310 unsigned int cur_rx, cur_tx; /* The next free ring entry */ member 817 vp->cur_rx = vp->dirty_rx = 0; in corkscrew_open() 1333 int entry = vp->cur_rx % RX_RING_SIZE; in boomerang_rx() 1395 entry = (++vp->cur_rx) % RX_RING_SIZE; in boomerang_rx() 1398 for (; vp->cur_rx - vp->dirty_rx > 0; vp->dirty_rx++) { in boomerang_rx()
|
/Linux-v4.19/drivers/net/ethernet/freescale/fs_enet/ |
D | fs_enet.h | 139 cbd_t __iomem *cur_rx; member
|
D | fs_enet-main.c | 197 bdp = fep->cur_rx; in fs_enet_napi() 300 fep->cur_rx = bdp; in fs_enet_napi() 372 fep->cur_rx = fep->rx_bd_base; in fs_init_bds()
|