/linux/drivers/net/ethernet/amd/ |
A 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() 308 while (dirty_tx < priv->cur_tx) { in ariadne_interrupt() 345 if (priv->cur_tx - dirty_tx >= TX_RING_SIZE) { in ariadne_interrupt() 347 dirty_tx, priv->cur_tx, in ariadne_interrupt() 354 dirty_tx > priv->cur_tx - TX_RING_SIZE + 2) { in ariadne_interrupt() 576 entry = priv->cur_tx % TX_RING_SIZE; in ariadne_start_xmit() 596 priv->cur_tx++; in ariadne_start_xmit() 597 if ((priv->cur_tx >= TX_RING_SIZE) && in ariadne_start_xmit() 601 priv->cur_tx, priv->dirty_tx); in ariadne_start_xmit() [all …]
|
A D | atarilance.c | 222 int cur_rx, cur_tx; /* The next free ring entry */ member 685 lp->cur_rx = lp->cur_tx = 0; in lance_init_ring() 744 lp->dirty_tx, lp->cur_tx, in lance_tx_timeout() 811 entry = lp->cur_tx & TX_RING_MOD_MASK; in lance_start_xmit() 825 lp->cur_tx++; in lance_start_xmit() 826 while( lp->cur_tx >= TX_RING_SIZE && lp->dirty_tx >= TX_RING_SIZE ) { in lance_start_xmit() 827 lp->cur_tx -= TX_RING_SIZE; in lance_start_xmit() 881 while( dirty_tx < lp->cur_tx) { in lance_interrupt() 917 if (lp->cur_tx - dirty_tx >= TX_RING_SIZE) { in lance_interrupt() 920 dirty_tx, lp->cur_tx, lp->tx_full )); in lance_interrupt() [all …]
|
A D | lance.c | 248 int cur_rx, cur_tx; /* The next free ring entry */ member 868 lp->cur_rx = lp->cur_tx = 0; in lance_init_ring() 932 lp->dirty_tx, lp->cur_tx, netif_queue_stopped(dev) ? " (full)" : "", in lance_tx_timeout() 972 entry = lp->cur_tx & TX_RING_MOD_MASK; in lance_start_xmit() 1007 lp->cur_tx++; in lance_start_xmit() 1013 if ((lp->cur_tx - lp->dirty_tx) >= TX_RING_SIZE) in lance_start_xmit() 1052 while (dirty_tx < lp->cur_tx) { in lance_interrupt() 1096 if (lp->cur_tx - dirty_tx >= TX_RING_SIZE) { in lance_interrupt() 1098 dirty_tx, lp->cur_tx, in lance_interrupt() 1106 dirty_tx > lp->cur_tx - TX_RING_SIZE + 2) in lance_interrupt()
|
/linux/drivers/net/ethernet/packetengines/ |
A D | yellowfin.c | 326 unsigned int cur_tx, dirty_tx; member 693 yp->cur_tx, yp->dirty_tx, in yellowfin_tx_timeout() 718 if (yp->cur_tx - yp->dirty_tx < TX_QUEUE_SIZE) in yellowfin_tx_timeout() 732 yp->cur_rx = yp->cur_tx = 0; in yellowfin_init_ring() 826 entry = yp->cur_tx % TX_RING_SIZE; in yellowfin_start_xmit() 857 yp->cur_tx++; in yellowfin_start_xmit() 866 yp->cur_tx++; in yellowfin_start_xmit() 890 yp->cur_tx, entry); in yellowfin_start_xmit() 1005 if (yp->cur_tx - dirty_tx > TX_RING_SIZE) { in yellowfin_interrupt() 1007 dirty_tx, yp->cur_tx, yp->tx_full); in yellowfin_interrupt() [all …]
|
A D | hamachi.c | 495 unsigned int cur_tx, dirty_tx; member 1001 for (; hmp->cur_tx - hmp->dirty_tx > 0; hmp->dirty_tx++) { in hamachi_tx() 1116 hmp->cur_rx = hmp->cur_tx = 0; in hamachi_tx_timeout() 1172 hmp->cur_rx = hmp->cur_tx = 0; in hamachi_init_ring() 1243 entry = hmp->cur_tx % TX_RING_SIZE; in hamachi_start_xmit() 1267 hmp->cur_tx++; in hamachi_start_xmit() 1286 if ((hmp->cur_tx - hmp->dirty_tx) < (TX_RING_SIZE - 4)) in hamachi_start_xmit() 1295 dev->name, hmp->cur_tx, entry); in hamachi_start_xmit() 1340 for (; hmp->cur_tx - hmp->dirty_tx > 0; hmp->dirty_tx++){ in hamachi_interrupt() 1362 if (hmp->cur_tx - hmp->dirty_tx < TX_RING_SIZE - 4){ in hamachi_interrupt() [all …]
|
/linux/drivers/net/arcnet/ |
A D | arcnet.c | 569 lp->cur_tx = lp->next_tx = -1; in arcnet_open() 794 if (lp->cur_tx != -1 || lp->next_tx == -1) in go_tx() 800 lp->cur_tx = lp->next_tx; in go_tx() 804 lp->hw.command(dev, TXcmd | (lp->cur_tx << 3)); in go_tx() 830 lp->hw.command(dev, NOTXcmd | (lp->cur_tx << 3)); in arcnet_timeout() 847 if (lp->cur_tx == -1) in arcnet_timeout() 967 if (lp->cur_tx != -1 && !lp->timed_out) { in arcnet_interrupt() 992 if (lp->cur_tx != -1) in arcnet_interrupt() 993 release_arcbuf(dev, lp->cur_tx); in arcnet_interrupt() 995 lp->cur_tx = -1; in arcnet_interrupt() [all …]
|
/linux/drivers/net/ethernet/ |
A D | fealnx.c | 396 struct fealnx_desc *cur_tx; member 1271 np->cur_tx = &np->tx_ring[0]; in init_ring() 1379 np->cur_tx = &np->tx_ring[0]; in reset_tx_descriptors() 1488 long tx_status = np->cur_tx->status; in intr_handler() 1532 np->cur_tx->buffer, in intr_handler() 1533 np->cur_tx->skbuff->len, in intr_handler() 1536 np->cur_tx->skbuff = NULL; in intr_handler() 1538 if (np->cur_tx->control & TXLD) { in intr_handler() 1539 np->cur_tx = np->cur_tx->next_desc_logical; in intr_handler() 1542 np->cur_tx = np->cur_tx->next_desc_logical; in intr_handler() [all …]
|
A D | ethoc.c | 205 unsigned int cur_tx; member 308 dev->cur_tx = 0; in ethoc_init_ring() 525 if (bd.stat & TX_BD_READY || (priv->dty_tx == priv->cur_tx)) { in ethoc_tx() 536 (priv->dty_tx == priv->cur_tx)) in ethoc_tx() 544 if ((priv->cur_tx - priv->dty_tx) <= (priv->num_tx / 2)) in ethoc_tx() 897 entry = priv->cur_tx % priv->num_tx; in ethoc_start_xmit() 899 priv->cur_tx++; in ethoc_start_xmit() 917 if (priv->cur_tx == (priv->dty_tx + priv->num_tx)) { in ethoc_start_xmit()
|
/linux/drivers/net/ethernet/smsc/ |
A D | epic100.c | 267 unsigned int cur_tx, dirty_tx; member 790 ep->cur_rx, ep->dirty_rx, ep->dirty_tx, ep->cur_tx); in epic_restart() 881 ep->dirty_tx, ep->cur_tx); in epic_tx_timeout() 905 ep->dirty_tx = ep->cur_tx = 0; in epic_init_ring() 962 free_count = ep->cur_tx - ep->dirty_tx; in epic_start_xmit() 963 entry = ep->cur_tx % TX_RING_SIZE; in epic_start_xmit() 985 ep->cur_tx++; in epic_start_xmit() 1024 unsigned int dirty_tx, cur_tx; in epic_tx() local 1030 cur_tx = ep->cur_tx; in epic_tx() 1056 if (cur_tx - dirty_tx > TX_RING_SIZE) { in epic_tx() [all …]
|
/linux/drivers/net/ethernet/dec/tulip/ |
A D | tulip_core.c | 323 tp->cur_rx = tp->cur_tx = 0; in tulip_up() 356 tp->tx_buffers[tp->cur_tx].skb = NULL; in tulip_up() 357 tp->tx_buffers[tp->cur_tx].mapping = mapping; in tulip_up() 361 tp->tx_ring[tp->cur_tx].buffer1 = cpu_to_le32(mapping); in tulip_up() 364 tp->cur_tx++; in tulip_up() 664 entry = tp->cur_tx % TX_RING_SIZE; in tulip_start_xmit() 691 tp->cur_tx++; in tulip_start_xmit() 1129 if (tp->cur_tx - tp->dirty_tx > TX_RING_SIZE - 2) { in set_rx_mode() 1137 entry = tp->cur_tx++ % TX_RING_SIZE; in set_rx_mode() 1148 entry = tp->cur_tx++ % TX_RING_SIZE; in set_rx_mode() [all …]
|
A D | winbond-840.c | 304 unsigned int cur_tx, dirty_tx; member 823 np->tx_q_bytes = np->dirty_tx = np->cur_tx = 0; in init_rxtx_rings() 934 np->cur_tx, np->dirty_tx, np->tx_full, np->tx_q_bytes); in tx_timeout() 994 entry = np->cur_tx % TX_RING_SIZE; in start_tx() 1023 np->cur_tx++; in start_tx() 1032 if (np->cur_tx - np->dirty_tx > TX_QUEUE_LEN || in start_tx() 1042 np->cur_tx, entry); in start_tx() 1050 for (; np->cur_tx - np->dirty_tx > 0; np->dirty_tx++) { in netdev_tx_done() 1087 np->cur_tx - np->dirty_tx < TX_QUEUE_LEN_RESTART && in netdev_tx_done() 1128 np->cur_tx != np->dirty_tx) { in intr_handler() [all …]
|
A D | interrupt.c | 595 for (dirty_tx = tp->dirty_tx; tp->cur_tx - dirty_tx > 0; in tulip_interrupt() 652 if (tp->cur_tx - dirty_tx > TX_RING_SIZE) { in tulip_interrupt() 655 dirty_tx, tp->cur_tx); in tulip_interrupt() 660 if (tp->cur_tx - dirty_tx < TX_RING_SIZE - 2) in tulip_interrupt()
|
/linux/drivers/net/ethernet/dlink/ |
A D | sundance.c | 391 unsigned int cur_tx, dirty_tx; member 990 np->cur_tx, np->cur_tx % TX_RING_SIZE, in tx_timeout() 1005 if (np->cur_tx - np->dirty_tx < TX_QUEUE_LEN - 4) { in tx_timeout() 1019 np->cur_rx = np->cur_tx = 0; in init_ring() 1066 &np->tx_ring[(np->cur_tx - 1) % TX_RING_SIZE]; in tx_poll() 1094 entry = np->cur_tx % TX_RING_SIZE; in start_tx() 1108 np->cur_tx++; in start_tx() 1123 dev->name, np->cur_tx, entry); in start_tx() 1161 np->cur_tx = np->dirty_tx = 0; in reset_tx() 1304 np->cur_tx - np->dirty_tx < TX_QUEUE_LEN - 4) { in intr_handler() [all …]
|
A D | dl2k.c | 467 np->cur_tx = 0; in rio_reset_ring() 718 entry = np->cur_tx % TX_RING_SIZE; in start_xmit() 754 np->cur_tx = (np->cur_tx + 1) % TX_RING_SIZE; in start_xmit() 755 if ((np->cur_tx - np->old_tx + TX_RING_SIZE) % TX_RING_SIZE in start_xmit() 807 if (np->cur_tx != np->old_tx) in rio_interrupt() 826 while (entry != np->cur_tx) { in rio_free_tx() 854 ((np->cur_tx - np->old_tx + TX_RING_SIZE) % TX_RING_SIZE in rio_free_tx()
|
/linux/drivers/net/ethernet/3com/ |
A D | 3c515.c | 304 unsigned int cur_rx, cur_tx; /* The next free ring entry */ member 830 vp->cur_tx = vp->dirty_tx = 0; in corkscrew_open() 968 vp->cur_tx); in corkscrew_timeout() 1001 int entry = vp->cur_tx % TX_RING_SIZE; in corkscrew_start_xmit() 1008 if (vp->cur_tx != 0) in corkscrew_start_xmit() 1009 prev_entry = &vp->tx_ring[(vp->cur_tx - 1) % TX_RING_SIZE]; in corkscrew_start_xmit() 1014 dev->name, vp->cur_tx); in corkscrew_start_xmit() 1038 vp->cur_tx++; in corkscrew_start_xmit() 1039 if (vp->cur_tx - vp->dirty_tx > TX_RING_SIZE - 1) in corkscrew_start_xmit() 1163 while (lp->cur_tx - dirty_tx > 0) { in corkscrew_interrupt() [all …]
|
A D | 3c59x.c | 604 unsigned int cur_rx, cur_tx; /* The next free ring entry */ member 1679 vp->cur_tx = vp->dirty_tx = 0; in vortex_up() 1917 if (vp->cur_tx - vp->dirty_tx < TX_RING_SIZE) { in vortex_tx_timeout() 2116 int entry = vp->cur_tx % TX_RING_SIZE; in boomerang_start_xmit() 2125 dev->name, vp->cur_tx); in boomerang_start_xmit() 2137 if (vp->cur_tx - vp->dirty_tx >= TX_RING_SIZE) { in boomerang_start_xmit() 2222 vp->cur_tx++; in boomerang_start_xmit() 2225 if (vp->cur_tx - vp->dirty_tx > TX_RING_SIZE - 1) { in boomerang_start_xmit() 2421 while (vp->cur_tx - dirty_tx > 0) { in _boomerang_interrupt() 2461 if (vp->cur_tx - dirty_tx <= TX_RING_SIZE - 1) { in _boomerang_interrupt() [all …]
|
/linux/drivers/net/ethernet/stmicro/stmmac/ |
A D | stmmac_main.c | 1819 tx_q->cur_tx = 0; in __init_dma_tx_desc_rings() 2464 tx_q->cur_tx = STMMAC_GET_ENTRY(tx_q->cur_tx, priv->dma_tx_size); in stmmac_xdp_xmit_zc() 2676 tx_q->cur_tx = 0; in stmmac_tx_err() 3878 tx_q->cur_tx = STMMAC_GET_ENTRY(tx_q->cur_tx, priv->dma_tx_size); in stmmac_vlan_insert() 3906 tx_q->cur_tx = STMMAC_GET_ENTRY(tx_q->cur_tx, in stmmac_tso_allocator() 4036 tx_q->cur_tx = STMMAC_GET_ENTRY(tx_q->cur_tx, in stmmac_tso_xmit() 4149 tx_q->cur_tx = STMMAC_GET_ENTRY(tx_q->cur_tx, priv->dma_tx_size); in stmmac_tso_xmit() 4266 entry = tx_q->cur_tx; in stmmac_xmit() 4372 tx_q->cur_tx = entry; in stmmac_xmit() 4664 tx_q->cur_tx = entry; in stmmac_xdp_xmit_xdpf() [all …]
|
A D | chain_mode.c | 22 unsigned int entry = tx_q->cur_tx; in jumbo_frm() 81 tx_q->cur_tx = entry; in jumbo_frm()
|
A D | ring_mode.c | 22 unsigned int entry = tx_q->cur_tx; in jumbo_frm() 89 tx_q->cur_tx = entry; in jumbo_frm()
|
/linux/drivers/net/ethernet/adaptec/ |
A D | starfire.c | 552 unsigned int cur_tx, dirty_tx, reap_tx; member 1132 np->cur_rx = np->cur_tx = np->reap_tx = 0; in init_ring() 1202 prev_tx = np->cur_tx; in start_tx() 1203 entry = np->cur_tx % TX_RING_SIZE; in start_tx() 1247 dev->name, np->cur_tx, np->dirty_tx, in start_tx() 1251 np->cur_tx += np->tx_info[entry].used_slots; in start_tx() 1255 np->cur_tx += np->tx_info[entry].used_slots; in start_tx() 1259 if (np->cur_tx % (TX_RING_SIZE / 2) == 0) in start_tx() 1272 if ((np->cur_tx - np->dirty_tx) + 4 > TX_RING_SIZE) in start_tx() 1295 np->cur_tx = prev_tx; in start_tx() [all …]
|
/linux/tools/testing/selftests/net/ |
A D | veth.sh | 88 local cur_tx=`ip netns exec $BASE$target ethtool -l $dev |\ 94 if [ "$cur_rx" = "$rx" -a "$cur_tx" = "$tx" -a "$cur_combined" = "n/a" ]; then 97 echo " fail rx:$rx:$cur_rx tx:$tx:$cur_tx combined:n/a:$cur_combined"
|
/linux/drivers/net/ethernet/samsung/sxgbe/ |
A D | sxgbe_main.c | 194 return queue->dirty_tx + tx_qsize - queue->cur_tx - 1; in sxgbe_tx_avail() 427 tx_ring->cur_tx = 0; in init_tx_ring() 747 while (tqueue->dirty_tx != tqueue->cur_tx) { in sxgbe_tx_queue_clean() 760 __func__, tqueue->cur_tx, tqueue->dirty_tx); in sxgbe_tx_queue_clean() 835 tx_ring->cur_tx = 0; in sxgbe_restart_tx_queue() 1315 entry = tqueue->cur_tx % tx_rsize; in sxgbe_xmit() 1340 entry = (++tqueue->cur_tx) % tx_rsize; in sxgbe_xmit() 1362 entry = (++tqueue->cur_tx) % tx_rsize; in sxgbe_xmit() 1402 tqueue->cur_tx++; in sxgbe_xmit() 1406 __func__, tqueue->cur_tx % tx_rsize, in sxgbe_xmit()
|
/linux/drivers/net/ethernet/via/ |
A D | via-rhine.c | 469 unsigned int cur_tx, dirty_tx; member 1307 rp->dirty_tx = rp->cur_tx = 0; in alloc_tbufs() 1766 return (rp->cur_tx - rp->dirty_tx) >= TX_QUEUE_LEN; in rhine_tx_queue_full() 1781 entry = rp->cur_tx % TX_RING_SIZE; in rhine_start_tx() 1843 rp->cur_tx++; in rhine_start_tx() 1872 rp->cur_tx - 1, entry); in rhine_start_tx() 1918 unsigned int cur_tx; in rhine_tx() local 1928 cur_tx = rp->cur_tx; in rhine_tx() 1930 while (dirty_tx != cur_tx) { in rhine_tx()
|
/linux/drivers/net/ethernet/realtek/ |
A D | 8139too.c | 593 unsigned long cur_tx; member 1454 tp->cur_tx = 0; in rtl8139_init_ring() 1649 tp->cur_tx = 0; in rtl8139_tx_clear() 1673 tp->cur_tx, tp->dirty_tx); in rtl8139_tx_timeout_task() 1725 entry = tp->cur_tx % NUM_TX_DESC; in rtl8139_start_xmit() 1749 tp->cur_tx++; in rtl8139_start_xmit() 1751 if ((tp->cur_tx - NUM_TX_DESC) == tp->dirty_tx) in rtl8139_start_xmit() 1772 tx_left = tp->cur_tx - dirty_tx; in rtl8139_tx_interrupt() 1817 if (tp->cur_tx - dirty_tx > NUM_TX_DESC) { in rtl8139_tx_interrupt() 1819 dirty_tx, tp->cur_tx); in rtl8139_tx_interrupt()
|
/linux/drivers/net/ethernet/sis/ |
A D | sis190.c | 272 u32 cur_tx; member 698 pending = tp->cur_tx - dirty_tx; in sis190_tx_interrupt() 811 tp->dirty_tx = tp->dirty_rx = tp->cur_tx = tp->cur_rx = 0; in sis190_init_ring_indexes() 1127 tp->cur_tx = tp->dirty_tx = 0; in sis190_tx_clear() 1199 entry = tp->cur_tx % NUM_TX_DESC; in sis190_start_xmit() 1236 tp->cur_tx++; in sis190_start_xmit() 1243 if ((tp->cur_tx - NUM_TX_DESC) == dirty_tx) { in sis190_start_xmit()
|