/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 826 np->cur_rx = 0; in init_rxtx_rings() 1182 int entry = np->cur_rx % RX_RING_SIZE; in netdev_rx() 1183 int work_limit = np->dirty_rx + RX_RING_SIZE - np->cur_rx; in netdev_rx() 1206 np->cur_rx, status); in netdev_rx() 1262 entry = (++np->cur_rx) % RX_RING_SIZE; in netdev_rx() 1267 for (; np->cur_rx - np->dirty_rx > 0; np->dirty_rx++) { in netdev_rx() 1491 np->cur_rx, np->dirty_rx); in netdev_close()
|
/drivers/net/ethernet/ |
D | fealnx.c | 400 struct fealnx_desc *cur_rx; member 1160 iowrite32(np->rx_ring_dma + ((char*)np->cur_rx - (char*)np->rx_ring), in enable_rxtx() 1245 np->cur_rx = &np->rx_ring[0]; in init_ring() 1416 struct fealnx_desc *cur = np->cur_rx; in reset_rx_descriptors() 1427 iowrite32(np->rx_ring_dma + ((char*)np->cur_rx - (char*)np->rx_ring), in reset_rx_descriptors() 1619 while (!(np->cur_rx->status & RXOWN) && np->cur_rx->skbuff) { in netdev_rx() 1620 s32 rx_status = np->cur_rx->status; in netdev_rx() 1651 cur = np->cur_rx; in netdev_rx() 1672 if (!np->cur_rx->skbuff) { in netdev_rx() 1677 np->cur_rx->status = RXOWN; in netdev_rx() [all …]
|
D | ethoc.c | 207 unsigned int cur_rx; member 299 dev->cur_rx = 0; in ethoc_init_ring() 418 entry = priv->num_tx + priv->cur_rx; in ethoc_rx() 462 if (++priv->cur_rx == priv->num_rx) in ethoc_rx() 463 priv->cur_rx = 0; in ethoc_rx()
|
/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() 735 unsigned int cur_rx = c2dev->cur_rx; in c2_reset() local 738 C2_SET_CUR_RX(c2dev, cur_rx | C2_PCI_HRX_QUI); in c2_reset() 746 cur_rx = C2_GET_CUR_RX(c2dev); in c2_reset() 748 if (cur_rx & C2_PCI_HRX_QUI) in c2_reset() 751 cur_rx &= ~C2_PCI_HRX_QUI; in c2_reset() 753 c2dev->cur_rx = cur_rx; in c2_reset() 755 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)
|
/drivers/net/ethernet/amd/ |
D | ariadne.c | 91 int cur_tx, cur_rx; /* The next free ring entry */ member 124 priv->cur_rx = priv->cur_tx = 0; in ariadne_init_ring() 163 int entry = priv->cur_rx % RX_RING_SIZE; in ariadne_rx() 203 priv->cur_rx++; in ariadne_rx() 226 entry = (++priv->cur_rx) % RX_RING_SIZE; in ariadne_rx() 229 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()
|
/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() 957 ether->cur_rx = 0x0; in w90p910_ether_setup()
|
/drivers/net/ethernet/packetengines/ |
D | hamachi.c | 494 unsigned int cur_rx, dirty_rx; /* Producer/consumer ring indices */ member 1114 hmp->cur_rx = hmp->cur_tx = 0; in hamachi_tx_timeout() 1168 hmp->cur_rx = hmp->cur_tx = 0; in hamachi_init_ring() 1403 int entry = hmp->cur_rx % RX_RING_SIZE; in hamachi_rx() 1404 int boguscnt = (hmp->dirty_rx + RX_RING_SIZE) - hmp->cur_rx; in hamachi_rx() 1435 dev->name, hmp->cur_rx, data_size, desc_status); in hamachi_rx() 1437 dev->name, desc, &hmp->rx_ring[hmp->cur_rx % RX_RING_SIZE]); in hamachi_rx() 1440 le32_to_cpu(hmp->rx_ring[(hmp->cur_rx+1) % RX_RING_SIZE].status_n_length) & 0xffff0000, in hamachi_rx() 1441 le32_to_cpu(hmp->rx_ring[(hmp->cur_rx+1) % RX_RING_SIZE].status_n_length) & 0x0000ffff, in hamachi_rx() 1442 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 729 yp->cur_rx = yp->cur_tx = 0; in yellowfin_init_ring() 1040 int entry = yp->cur_rx % RX_RING_SIZE; in yellowfin_rx() 1041 int boguscnt = yp->dirty_rx + RX_RING_SIZE - yp->cur_rx; in yellowfin_rx() 1147 entry = (++yp->cur_rx) % RX_RING_SIZE; in yellowfin_rx() 1151 for (; yp->cur_rx - yp->dirty_rx > 0; yp->dirty_rx++) { in yellowfin_rx() 1201 yp->cur_rx, yp->dirty_rx); in yellowfin_close()
|
/drivers/net/ethernet/realtek/ |
D | 8139too.c | 583 unsigned int cur_rx; /* RX buf index of next pkt */ member 1390 tp->cur_rx = 0; in rtl8139_hw_start() 1443 tp->cur_rx = 0; in rtl8139_init_ring() 1852 tp->cur_rx = 0; in rtl8139_rx_err() 1886 tp->cur_rx = 0; in rtl8139_rx_err() 1939 unsigned int cur_rx = tp->cur_rx; in rtl8139_rx() local 1943 __func__, (u16)cur_rx, in rtl8139_rx() 1948 u32 ring_offset = cur_rx % RX_BUF_LEN; in rtl8139_rx() 1964 __func__, rx_status, rx_size, cur_rx); in rtl8139_rx() 2048 cur_rx = (cur_rx + rx_size + 4 + 3) & ~3; in rtl8139_rx() [all …]
|
/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 | 178 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() 1747 unsigned int entry = sis_priv->cur_rx % NUM_RX_DESC; in sis900_rx() 1754 sis_priv->cur_rx, sis_priv->dirty_rx, rx_status); in sis900_rx() 1755 rx_work_limit = sis_priv->dirty_rx + NUM_RX_DESC - sis_priv->cur_rx; in sis900_rx() 1820 net_dev->name, sis_priv->cur_rx, in sis900_rx() 1851 sis_priv->cur_rx++; in sis900_rx() 1852 entry = sis_priv->cur_rx % NUM_RX_DESC; in sis900_rx() 1858 for (; sis_priv->cur_rx != sis_priv->dirty_rx; sis_priv->dirty_rx++) { in sis900_rx()
|
/drivers/net/arcnet/ |
D | arcnet.c | 420 lp->cur_rx = -1; in arcnet_open() 819 recbuf = lp->cur_rx; in arcnet_interrupt() 823 lp->cur_rx = get_arcbuf(dev); in arcnet_interrupt() 824 if (lp->cur_rx != -1) { in arcnet_interrupt() 826 lp->cur_rx); in arcnet_interrupt() 827 ACOMMAND(RXcmd | (lp->cur_rx << 3) | RXbcasts); in arcnet_interrupt()
|
/drivers/net/ethernet/smsc/ |
D | epic100.c | 270 unsigned int cur_rx, dirty_rx; member 794 dev->name, ep->cur_rx, ep->dirty_rx, ep->dirty_tx, ep->cur_tx); in epic_restart() 817 (ep->cur_rx % RX_RING_SIZE) * sizeof(struct epic_rx_desc)); in epic_restart() 912 ep->cur_rx = ep->dirty_rx = 0; in epic_init_ring() 1149 int entry = ep->cur_rx % RX_RING_SIZE; in epic_rx() 1150 int rx_work_limit = ep->dirty_rx + RX_RING_SIZE - ep->cur_rx; in epic_rx() 1219 entry = (++ep->cur_rx) % RX_RING_SIZE; in epic_rx() 1223 for (; ep->cur_rx - ep->dirty_rx > 0; ep->dirty_rx++) { in epic_rx()
|
/drivers/net/ethernet/freescale/fs_enet/ |
D | fs_enet-main.c | 99 bdp = fep->cur_rx; in fs_enet_rx_napi() 206 fep->cur_rx = bdp; in fs_enet_rx_napi() 230 bdp = fep->cur_rx; in fs_enet_rx_non_napi() 333 fep->cur_rx = bdp; in fs_enet_rx_non_napi() 497 fep->cur_rx = fep->rx_bd_base; in fs_init_bds()
|
/drivers/net/ethernet/dlink/ |
D | sundance.c | 395 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() 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() 1839 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()
|
/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac.h | 58 unsigned int cur_rx; member
|
/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 1930 for (; np->cur_rx - np->dirty_rx > 0; np->dirty_rx++) { in refill_rx() 1945 if (np->cur_rx - np->dirty_rx == RX_RING_SIZE) { in refill_rx() 1979 np->cur_rx = RX_RING_SIZE; in init_ring() 2058 np->cur_rx = RX_RING_SIZE; in reinit_rx() 2196 prefetch(&np->rx_skbuff[np->cur_rx % RX_RING_SIZE]); in intr_handler() 2270 int entry = np->cur_rx % RX_RING_SIZE; in netdev_rx() 2271 int boguscnt = np->dirty_rx + RX_RING_SIZE - np->cur_rx; in netdev_rx() 2302 np->cur_rx, desc_status); in netdev_rx() 2370 entry = (++np->cur_rx) % RX_RING_SIZE; in netdev_rx() [all …]
|
/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() 1398 entry = (++vp->cur_rx) % RX_RING_SIZE; in boomerang_rx() 1401 for (; vp->cur_rx - vp->dirty_rx > 0; vp->dirty_rx++) { in boomerang_rx()
|
/drivers/net/ethernet/freescale/ |
D | fec.h | 236 struct bufdesc *cur_rx, *cur_tx; member
|