/linux-4.1.27/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 825 np->cur_rx = 0; in init_rxtx_rings() 1181 int entry = np->cur_rx % RX_RING_SIZE; in netdev_rx() 1182 int work_limit = np->dirty_rx + RX_RING_SIZE - np->cur_rx; in netdev_rx() 1205 np->cur_rx, status); in netdev_rx() 1261 entry = (++np->cur_rx) % RX_RING_SIZE; in netdev_rx() 1266 for (; np->cur_rx - np->dirty_rx > 0; np->dirty_rx++) { in netdev_rx() 1490 np->cur_rx, np->dirty_rx); in netdev_close()
|
D | tulip.h | 422 unsigned int cur_rx, cur_tx; /* The next free ring entry */ member
|
D | tulip_core.c | 335 tp->cur_rx = tp->cur_tx = 0; in tulip_up()
|
/linux-4.1.27/drivers/net/ethernet/ |
D | fealnx.c | 400 struct fealnx_desc *cur_rx; member 1159 iowrite32(np->rx_ring_dma + ((char*)np->cur_rx - (char*)np->rx_ring), in enable_rxtx() 1244 np->cur_rx = &np->rx_ring[0]; in init_ring() 1415 struct fealnx_desc *cur = np->cur_rx; in reset_rx_descriptors() 1426 iowrite32(np->rx_ring_dma + ((char*)np->cur_rx - (char*)np->rx_ring), in reset_rx_descriptors() 1618 while (!(np->cur_rx->status & RXOWN) && np->cur_rx->skbuff) { in netdev_rx() 1619 s32 rx_status = np->cur_rx->status; in netdev_rx() 1650 cur = np->cur_rx; in netdev_rx() 1671 if (!np->cur_rx->skbuff) { in netdev_rx() 1676 np->cur_rx->status = RXOWN; in netdev_rx() [all …]
|
D | ethoc.c | 211 unsigned int cur_rx; member 304 dev->cur_rx = 0; in ethoc_init_ring() 423 entry = priv->num_tx + priv->cur_rx; in ethoc_rx() 467 if (++priv->cur_rx == priv->num_rx) in ethoc_rx() 468 priv->cur_rx = 0; in ethoc_rx()
|
/linux-4.1.27/drivers/infiniband/hw/amso1100/ |
D | c2.c | 477 rx_ring->to_clean = rx_ring->start + c2dev->cur_rx; in c2_rx_interrupt() 538 c2dev->cur_rx = elem - rx_ring->start; in c2_rx_interrupt() 539 C2_SET_CUR_RX(c2dev, c2dev->cur_rx); in c2_rx_interrupt() 733 unsigned int cur_rx = c2dev->cur_rx; in c2_reset() local 736 C2_SET_CUR_RX(c2dev, cur_rx | C2_PCI_HRX_QUI); in c2_reset() 744 cur_rx = C2_GET_CUR_RX(c2dev); in c2_reset() 746 if (cur_rx & C2_PCI_HRX_QUI) in c2_reset() 749 cur_rx &= ~C2_PCI_HRX_QUI; in c2_reset() 751 c2dev->cur_rx = cur_rx; in c2_reset() 753 pr_debug("Current RX: %u\n", c2dev->cur_rx); in c2_reset() [all …]
|
D | c2.h | 296 unsigned int cur_rx; member 423 #define C2_SET_CUR_RX(c2dev, cur_rx) \ argument 424 __raw_writel((__force u32) cpu_to_be32(cur_rx), c2dev->mmio_txp_ring + 4092)
|
/linux-4.1.27/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 689 lp->cur_rx = lp->cur_tx = 0; in lance_init_ring() 750 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() 1036 entry = (++lp->cur_rx) & RX_RING_MOD_MASK; in lance_rx() 1038 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 867 lp->cur_rx = lp->cur_tx = 0; in lance_init_ring() 932 lp->cur_rx); in lance_tx_timeout() 1148 int entry = lp->cur_rx & RX_RING_MOD_MASK; in lance_rx() 1197 lp->cur_rx++; in lance_rx() 1216 entry = (++lp->cur_rx) & RX_RING_MOD_MASK; in lance_rx()
|
D | pcnet32.c | 275 unsigned int cur_rx, cur_tx; /* The next free ring entry */ member 1223 int entry = lp->cur_rx & lp->rx_mod_mask; in pcnet32_rx() 1238 entry = (++lp->cur_rx) & lp->rx_mod_mask; in pcnet32_rx() 2306 lp->cur_rx = lp->cur_tx = 0; in pcnet32_init_ring() 2411 lp->cur_rx); in pcnet32_tx_timeout()
|
/linux-4.1.27/drivers/net/ethernet/nuvoton/ |
D | w90p910_ether.c | 167 unsigned int cur_rx; member 482 ether->cur_rx = 0x0; in w90p910_reset_mac() 715 rxbd = ðer->rdesc->desclist[ether->cur_rx]; in netdev_rx() 721 offsetof(struct recv_pdesc, desclist[ether->cur_rx]); in netdev_rx() 730 data = ether->rdesc->recv_buf[ether->cur_rx]; in netdev_rx() 765 if (++ether->cur_rx >= RX_DESC_SIZE) in netdev_rx() 766 ether->cur_rx = 0; in netdev_rx() 768 rxbd = ðer->rdesc->desclist[ether->cur_rx]; in netdev_rx() 956 ether->cur_rx = 0x0; in w90p910_ether_setup()
|
/linux-4.1.27/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/comsumer pointers for Tx/Rx ring */ member 1164 sis_priv->cur_rx = 0; in sis900_init_rx_ring() 1733 unsigned int entry = sis_priv->cur_rx % NUM_RX_DESC; in sis900_rx() 1740 sis_priv->cur_rx, sis_priv->dirty_rx, rx_status); in sis900_rx() 1741 rx_work_limit = sis_priv->dirty_rx + NUM_RX_DESC - sis_priv->cur_rx; in sis900_rx() 1806 net_dev->name, sis_priv->cur_rx, in sis900_rx() 1837 sis_priv->cur_rx++; in sis900_rx() 1838 entry = sis_priv->cur_rx % NUM_RX_DESC; in sis900_rx() 1844 for (; sis_priv->cur_rx != sis_priv->dirty_rx; sis_priv->dirty_rx++) { in sis900_rx()
|
/linux-4.1.27/drivers/net/ethernet/packetengines/ |
D | hamachi.c | 494 unsigned int cur_rx, dirty_rx; /* Producer/consumer ring indices */ member 1112 hmp->cur_rx = hmp->cur_tx = 0; in hamachi_tx_timeout() 1166 hmp->cur_rx = hmp->cur_tx = 0; in hamachi_init_ring() 1401 int entry = hmp->cur_rx % RX_RING_SIZE; in hamachi_rx() 1402 int boguscnt = (hmp->dirty_rx + RX_RING_SIZE) - hmp->cur_rx; in hamachi_rx() 1433 dev->name, hmp->cur_rx, data_size, desc_status); in hamachi_rx() 1435 dev->name, desc, &hmp->rx_ring[hmp->cur_rx % RX_RING_SIZE]); in hamachi_rx() 1438 le32_to_cpu(hmp->rx_ring[(hmp->cur_rx+1) % RX_RING_SIZE].status_n_length) & 0xffff0000, in hamachi_rx() 1439 le32_to_cpu(hmp->rx_ring[(hmp->cur_rx+1) % RX_RING_SIZE].status_n_length) & 0x0000ffff, in hamachi_rx() 1440 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 728 yp->cur_rx = yp->cur_tx = 0; in yellowfin_init_ring() 1039 int entry = yp->cur_rx % RX_RING_SIZE; in yellowfin_rx() 1040 int boguscnt = yp->dirty_rx + RX_RING_SIZE - yp->cur_rx; in yellowfin_rx() 1149 entry = (++yp->cur_rx) % RX_RING_SIZE; in yellowfin_rx() 1153 for (; yp->cur_rx - yp->dirty_rx > 0; yp->dirty_rx++) { in yellowfin_rx() 1203 yp->cur_rx, yp->dirty_rx); in yellowfin_close()
|
/linux-4.1.27/drivers/net/ethernet/realtek/ |
D | 8139too.c | 587 unsigned int cur_rx; /* RX buf index of next pkt */ member 1406 tp->cur_rx = 0; in rtl8139_hw_start() 1459 tp->cur_rx = 0; in rtl8139_init_ring() 1868 tp->cur_rx = 0; in rtl8139_rx_err() 1902 tp->cur_rx = 0; in rtl8139_rx_err() 1955 unsigned int cur_rx = tp->cur_rx; in rtl8139_rx() local 1959 __func__, (u16)cur_rx, in rtl8139_rx() 1964 u32 ring_offset = cur_rx % RX_BUF_LEN; in rtl8139_rx() 1980 __func__, rx_status, rx_size, cur_rx); in rtl8139_rx() 2064 cur_rx = (cur_rx + rx_size + 4 + 3) & ~3; in rtl8139_rx() [all …]
|
D | r8169.c | 772 u32 cur_rx; /* Index into the Rx descriptor buffer of next Rx pkt. */ member 4891 tp->dirty_tx = tp->cur_tx = tp->cur_rx = 0; in rtl8169_init_ring_indexes() 7174 if ((tp->cp_cmd & PCIDAC) && !tp->cur_rx) { in rtl8169_pcierr_interrupt() 7290 unsigned int cur_rx, rx_left; in rtl_rx() local 7293 cur_rx = tp->cur_rx; in rtl_rx() 7295 for (rx_left = min(budget, NUM_RX_DESC); rx_left > 0; rx_left--, cur_rx++) { in rtl_rx() 7296 unsigned int entry = cur_rx % NUM_RX_DESC; in rtl_rx() 7374 count = cur_rx - tp->cur_rx; in rtl_rx() 7375 tp->cur_rx = cur_rx; in rtl_rx()
|
/linux-4.1.27/drivers/net/arcnet/ |
D | arcnet.c | 419 lp->cur_rx = -1; in arcnet_open() 765 recbuf = lp->cur_rx; in arcnet_interrupt() 769 lp->cur_rx = get_arcbuf(dev); in arcnet_interrupt() 770 if (lp->cur_rx != -1) { in arcnet_interrupt() 772 lp->cur_rx); in arcnet_interrupt() 773 ACOMMAND(RXcmd | (lp->cur_rx << 3) | RXbcasts); in arcnet_interrupt()
|
/linux-4.1.27/drivers/net/ethernet/smsc/ |
D | epic100.c | 270 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() 1141 int entry = ep->cur_rx % RX_RING_SIZE; in epic_rx() 1142 int rx_work_limit = ep->dirty_rx + RX_RING_SIZE - ep->cur_rx; in epic_rx() 1211 entry = (++ep->cur_rx) % RX_RING_SIZE; in epic_rx() 1215 for (; ep->cur_rx - ep->dirty_rx > 0; ep->dirty_rx++) { in epic_rx()
|
/linux-4.1.27/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac.h | 64 unsigned int cur_rx; member
|
D | stmmac_main.c | 1069 priv->cur_rx = 0; in init_dma_desc_rings() 2117 for (; priv->cur_rx - priv->dirty_rx > 0; priv->dirty_rx++) { in stmmac_rx_refill() 2167 unsigned int entry = priv->cur_rx % rxsize; in stmmac_rx() 2193 next_entry = (++priv->cur_rx) % rxsize; in stmmac_rx()
|
/linux-4.1.27/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() 1852 dev->name, np->cur_tx, np->dirty_tx, np->cur_rx, np->dirty_rx); in netdev_close()
|
D | dl2k.c | 499 if (np->cur_rx - np->old_rx >= RX_RING_SIZE) { in rio_timer() 502 for (; np->cur_rx - np->old_rx > 0; np->old_rx++) { in rio_timer() 553 np->cur_rx = np->cur_tx = 0; in alloc_list() 822 int entry = np->cur_rx % RX_RING_SIZE; in receive_packet() 890 np->cur_rx = entry; in receive_packet() 893 while (entry != np->cur_rx) { in receive_packet()
|
D | dl2k.h | 390 unsigned long cur_rx, old_rx; /* Producer/consumer ring indices */ member
|
/linux-4.1.27/drivers/net/ethernet/natsemi/ |
D | sonic.c | 412 int entry = lp->cur_rx; in sonic_rx() 494 lp->cur_rx = entry = (entry + 1) & SONIC_RDS_MASK; in sonic_rx() 660 lp->cur_rx = 0; in sonic_init()
|
D | natsemi.c | 558 unsigned int cur_rx, dirty_rx; member 1929 for (; np->cur_rx - np->dirty_rx > 0; np->dirty_rx++) { in refill_rx() 1944 if (np->cur_rx - np->dirty_rx == RX_RING_SIZE) { in refill_rx() 1978 np->cur_rx = RX_RING_SIZE; in init_ring() 2057 np->cur_rx = RX_RING_SIZE; in reinit_rx() 2195 prefetch(&np->rx_skbuff[np->cur_rx % RX_RING_SIZE]); in intr_handler() 2269 int entry = np->cur_rx % RX_RING_SIZE; in netdev_rx() 2270 int boguscnt = np->dirty_rx + RX_RING_SIZE - np->cur_rx; in netdev_rx() 2301 np->cur_rx, desc_status); in netdev_rx() 2369 entry = (++np->cur_rx) % RX_RING_SIZE; in netdev_rx() [all …]
|
D | sonic.h | 316 unsigned int cur_rx; member
|
/linux-4.1.27/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()
|
D | 3c59x.c | 604 unsigned int cur_rx, cur_tx; /* The next free ring entry */ member 1687 vp->cur_rx = vp->dirty_rx = 0; in vortex_up() 2579 int entry = vp->cur_rx % RX_RING_SIZE; in boomerang_rx() 2582 int rx_work_limit = vp->dirty_rx + RX_RING_SIZE - vp->cur_rx; in boomerang_rx() 2643 entry = (++vp->cur_rx) % RX_RING_SIZE; in boomerang_rx() 2646 for (; vp->cur_rx - vp->dirty_rx > 0; vp->dirty_rx++) { in boomerang_rx() 2658 if ((vp->cur_rx - vp->dirty_rx) == RX_RING_SIZE) in boomerang_rx() 2683 …if ((vp->cur_rx - vp->dirty_rx) == RX_RING_SIZE) /* This test is redundant, but makes me feel good… in rx_oom_timer() 2687 ((vp->cur_rx - vp->dirty_rx) != RX_RING_SIZE) ? "succeeded" : "retrying"); in rx_oom_timer()
|
/linux-4.1.27/include/linux/ |
D | arcdevice.h | 246 cur_rx; /* current receive buffer */ member
|
/linux-4.1.27/drivers/net/ethernet/freescale/fs_enet/ |
D | fs_enet.h | 141 cbd_t __iomem *cur_rx; member
|
D | fs_enet-main.c | 101 bdp = fep->cur_rx; in fs_enet_rx_napi() 208 fep->cur_rx = bdp; in fs_enet_rx_napi() 403 fep->cur_rx = fep->rx_bd_base; in fs_init_bds()
|
/linux-4.1.27/drivers/net/ethernet/renesas/ |
D | sh_eth.c | 1133 mdp->cur_rx = 0; in sh_eth_ring_format() 1447 int entry = mdp->cur_rx % mdp->num_rx_ring; in sh_eth_rx() 1448 int boguscnt = (mdp->dirty_rx + mdp->num_rx_ring) - mdp->cur_rx; in sh_eth_rx() 1519 entry = (++mdp->cur_rx) % mdp->num_rx_ring; in sh_eth_rx() 1524 for (; mdp->cur_rx - mdp->dirty_rx > 0; mdp->dirty_rx++) { in sh_eth_rx() 1565 mdp->cur_rx = count; in sh_eth_rx() 2185 data[i++] = mdp->cur_rx; in sh_eth_get_ethtool_stats()
|
D | sh_eth.h | 514 u32 cur_rx, dirty_rx; /* Producer/consumer ring indices */ member
|
/linux-4.1.27/drivers/net/ethernet/adaptec/ |
D | starfire.c | 559 unsigned int cur_rx, dirty_rx; /* Producer/consumer ring indices */ member 1144 np->cur_rx = np->cur_tx = np->reap_tx = 0; in init_ring() 1507 np->cur_rx++; in __netdev_rx() 1564 for (; np->cur_rx - np->dirty_rx > 0; np->dirty_rx++) { in refill_rx_ring() 1907 np->cur_rx, np->dirty_rx); in netdev_close()
|
/linux-4.1.27/drivers/net/ethernet/samsung/sxgbe/ |
D | sxgbe_common.h | 402 unsigned int cur_rx; member
|
D | sxgbe_main.c | 519 rx_ring->cur_rx = 0; in init_rx_ring() 1457 for (; priv->rxq[qnum]->cur_rx - priv->rxq[qnum]->dirty_rx > 0; in sxgbe_rx_refill() 1501 unsigned int entry = priv->rxq[qnum]->cur_rx; in sxgbe_rx() 1519 next_entry = (++priv->rxq[qnum]->cur_rx) % rxsize; in sxgbe_rx()
|
/linux-4.1.27/drivers/net/ethernet/freescale/ |
D | fec.h | 458 struct bufdesc *cur_rx; member
|
D | gianfar.c | 210 rx_queue->cur_rx = rx_queue->rx_bd_base; in gfar_init_bds() 2904 bdp = rx_queue->cur_rx; in gfar_clean_rx_ring() 2979 rx_queue->cur_rx = bdp; in gfar_clean_rx_ring() 3564 bdp = rx_queue->cur_rx; in gfar_update_link_state()
|
D | gianfar.h | 1032 struct rxbd8 *cur_rx; member
|
D | fec_main.c | 831 rxq->cur_rx = rxq->rx_bd_base; in fec_enet_bd_init() 1385 bdp = rxq->cur_rx; in fec_enet_rx_queue() 1537 rxq->cur_rx = bdp; in fec_enet_rx_queue()
|
/linux-4.1.27/drivers/net/ethernet/via/ |
D | via-rhine.c | 476 unsigned int cur_rx, dirty_rx; /* Producer/consumer ring indices */ member 1223 rp->dirty_rx = rp->cur_rx = 0; in alloc_rbufs() 1953 int entry = rp->cur_rx % RX_RING_SIZE; in rhine_rx() 2054 entry = (++rp->cur_rx) % RX_RING_SIZE; in rhine_rx() 2059 for (; rp->cur_rx - rp->dirty_rx > 0; rp->dirty_rx++) { in rhine_rx()
|
/linux-4.1.27/drivers/net/wireless/ |
D | adm8211.h | 547 unsigned int cur_tx, dirty_tx, cur_rx; member
|
D | adm8211.c | 358 unsigned int entry = priv->cur_rx % priv->rx_ring_size; in adm8211_interrupt_rci() 449 entry = (++priv->cur_rx) % priv->rx_ring_size; in adm8211_interrupt_rci() 1469 priv->cur_rx = priv->cur_tx = priv->dirty_tx = 0; in adm8211_init_rings()
|
/linux-4.1.27/drivers/net/hippi/ |
D | rrunner.c | 618 rrpriv->cur_rx = 0; in rr_init1() 1016 rrpriv->cur_rx = index; in rx_int() 1055 rxindex = rrpriv->cur_rx; in rr_interrupt()
|
D | rrunner.h | 817 u32 cur_rx, cur_cmd, cur_evt; member
|
/linux-4.1.27/drivers/net/ethernet/alteon/ |
D | acenic.h | 661 u32 cur_rx; member
|
D | acenic.c | 1428 ap->cur_rx = 0; in ace_init() 2029 ap->cur_rx = idx; in ace_rx_int() 2139 rxretcsm = ap->cur_rx; in ace_interrupt()
|