/Linux-v5.4/drivers/net/ethernet/amd/ |
D | ariadne.c | 93 int dirty_tx; /* The ring entries to be free()ed */ member 126 priv->dirty_tx = 0; in ariadne_init_ring() 305 int dirty_tx = priv->dirty_tx; in ariadne_interrupt() local 308 while (dirty_tx < priv->cur_tx) { in ariadne_interrupt() 309 int entry = dirty_tx % TX_RING_SIZE; in ariadne_interrupt() 341 dirty_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() 349 dirty_tx += TX_RING_SIZE; in ariadne_interrupt() 354 dirty_tx > priv->cur_tx - TX_RING_SIZE + 2) { in ariadne_interrupt() [all …]
|
D | atarilance.c | 223 int dirty_tx; /* Ring entries to be freed. */ member 690 lp->dirty_tx = 0; in lance_init_ring() 748 lp->dirty_tx, lp->cur_tx, in lance_tx_timeout() 830 while( lp->cur_tx >= TX_RING_SIZE && lp->dirty_tx >= TX_RING_SIZE ) { in lance_start_xmit() 832 lp->dirty_tx -= TX_RING_SIZE; in lance_start_xmit() 883 int dirty_tx = lp->dirty_tx; in lance_interrupt() local 885 while( dirty_tx < lp->cur_tx) { in lance_interrupt() 886 int entry = dirty_tx & TX_RING_MOD_MASK; in lance_interrupt() 917 dirty_tx++; in lance_interrupt() 921 if (lp->cur_tx - dirty_tx >= TX_RING_SIZE) { in lance_interrupt() [all …]
|
D | lance.c | 249 int dirty_rx, dirty_tx; /* The ring entries to be free()ed. */ member 867 lp->dirty_rx = lp->dirty_tx = 0; in lance_init_ring() 930 lp->dirty_tx, lp->cur_tx, netif_queue_stopped(dev) ? " (full)" : "", in lance_tx_timeout() 1011 if ((lp->cur_tx - lp->dirty_tx) >= TX_RING_SIZE) in lance_start_xmit() 1048 int dirty_tx = lp->dirty_tx; in lance_interrupt() local 1050 while (dirty_tx < lp->cur_tx) { in lance_interrupt() 1051 int entry = dirty_tx & TX_RING_MOD_MASK; in lance_interrupt() 1090 dirty_tx++; in lance_interrupt() 1094 if (lp->cur_tx - dirty_tx >= TX_RING_SIZE) { in lance_interrupt() 1096 dirty_tx, lp->cur_tx, in lance_interrupt() [all …]
|
D | pcnet32.c | 285 dirty_tx; member 1313 unsigned int dirty_tx = lp->dirty_tx; in pcnet32_tx() local 1317 while (dirty_tx != lp->cur_tx) { in pcnet32_tx() 1318 int entry = dirty_tx & lp->tx_mod_mask; in pcnet32_tx() 1374 dirty_tx++; in pcnet32_tx() 1377 delta = (lp->cur_tx - dirty_tx) & (lp->tx_mod_mask + lp->tx_ring_size); in pcnet32_tx() 1380 dirty_tx, lp->cur_tx, lp->tx_full); in pcnet32_tx() 1381 dirty_tx += lp->tx_ring_size; in pcnet32_tx() 1392 lp->dirty_tx = dirty_tx; in pcnet32_tx() 2371 lp->dirty_rx = lp->dirty_tx = 0; in pcnet32_init_ring() [all …]
|
/Linux-v5.4/drivers/net/ethernet/packetengines/ |
D | yellowfin.c | 326 unsigned int cur_tx, dirty_tx; member 686 yp->cur_tx, yp->dirty_tx, in yellowfin_tx_timeout() 711 if (yp->cur_tx - yp->dirty_tx < TX_QUEUE_SIZE) in yellowfin_tx_timeout() 726 yp->dirty_tx = 0; in yellowfin_init_ring() 872 if (yp->cur_tx - yp->dirty_tx < TX_QUEUE_SIZE) in yellowfin_start_xmit() 916 for (; yp->cur_tx - yp->dirty_tx > 0; yp->dirty_tx++) { in yellowfin_interrupt() 917 int entry = yp->dirty_tx % TX_RING_SIZE; in yellowfin_interrupt() 932 yp->cur_tx - yp->dirty_tx < TX_QUEUE_SIZE - 4) { in yellowfin_interrupt() 939 unsigned dirty_tx = yp->dirty_tx; in yellowfin_interrupt() local 941 for (dirty_tx = yp->dirty_tx; yp->cur_tx - dirty_tx > 0; in yellowfin_interrupt() [all …]
|
D | hamachi.c | 495 unsigned int cur_tx, dirty_tx; member 995 for (; hmp->cur_tx - hmp->dirty_tx > 0; hmp->dirty_tx++) { in hamachi_tx() 996 int entry = hmp->dirty_tx % TX_RING_SIZE; in hamachi_tx() 1110 hmp->dirty_rx = hmp->dirty_tx = 0; in hamachi_tx_timeout() 1164 hmp->dirty_rx = hmp->dirty_tx = 0; in hamachi_init_ring() 1273 if ((hmp->cur_tx - hmp->dirty_tx) < (TX_RING_SIZE - 4)) in hamachi_start_xmit() 1327 for (; hmp->cur_tx - hmp->dirty_tx > 0; hmp->dirty_tx++){ in hamachi_interrupt() 1328 int entry = hmp->dirty_tx % TX_RING_SIZE; in hamachi_interrupt() 1349 if (hmp->cur_tx - hmp->dirty_tx < TX_RING_SIZE - 4){ in hamachi_interrupt() 1659 dev->name, hmp->cur_tx, hmp->dirty_tx, hmp->cur_rx, hmp->dirty_rx); in hamachi_close()
|
/Linux-v5.4/drivers/net/ethernet/dec/tulip/ |
D | interrupt.c | 584 unsigned int dirty_tx; in tulip_interrupt() local 588 for (dirty_tx = tp->dirty_tx; tp->cur_tx - dirty_tx > 0; in tulip_interrupt() 589 dirty_tx++) { in tulip_interrupt() 590 int entry = dirty_tx % TX_RING_SIZE; in tulip_interrupt() 644 if (tp->cur_tx - dirty_tx > TX_RING_SIZE) { in tulip_interrupt() 647 dirty_tx, tp->cur_tx); in tulip_interrupt() 648 dirty_tx += TX_RING_SIZE; in tulip_interrupt() 652 if (tp->cur_tx - dirty_tx < TX_RING_SIZE - 2) in tulip_interrupt() 655 tp->dirty_tx = dirty_tx; in tulip_interrupt()
|
D | winbond-840.c | 314 unsigned int cur_tx, dirty_tx; member 831 np->tx_q_bytes = np->dirty_tx = np->cur_tx = 0; in init_rxtx_rings() 945 np->cur_tx, np->dirty_tx, np->tx_full, np->tx_q_bytes); in tx_timeout() 1043 if (np->cur_tx - np->dirty_tx > TX_QUEUE_LEN || in start_tx() 1061 for (; np->cur_tx - np->dirty_tx > 0; np->dirty_tx++) { in netdev_tx_done() 1062 int entry = np->dirty_tx % TX_RING_SIZE; in netdev_tx_done() 1099 np->cur_tx - np->dirty_tx < TX_QUEUE_LEN_RESTART && in netdev_tx_done() 1140 np->cur_tx != np->dirty_tx) { in intr_handler() 1487 np->cur_tx, np->dirty_tx, in netdev_close()
|
D | tulip_core.c | 335 tp->dirty_rx = tp->dirty_tx = 0; in tulip_up() 683 if (tp->cur_tx - tp->dirty_tx < TX_RING_SIZE/2) {/* Typical path */ in tulip_start_xmit() 685 } else if (tp->cur_tx - tp->dirty_tx == TX_RING_SIZE/2) { in tulip_start_xmit() 687 } else if (tp->cur_tx - tp->dirty_tx < TX_RING_SIZE - 2) { in tulip_start_xmit() 714 unsigned int dirty_tx; in tulip_clean_tx_ring() local 716 for (dirty_tx = tp->dirty_tx ; tp->cur_tx - dirty_tx > 0; in tulip_clean_tx_ring() 717 dirty_tx++) { in tulip_clean_tx_ring() 718 int entry = dirty_tx % TX_RING_SIZE; in tulip_clean_tx_ring() 1139 if (tp->cur_tx - tp->dirty_tx > TX_RING_SIZE - 2) { in set_rx_mode() 1176 if (tp->cur_tx - tp->dirty_tx >= TX_RING_SIZE - 2) in set_rx_mode()
|
/Linux-v5.4/drivers/net/ethernet/smsc/ |
D | epic100.c | 267 unsigned int cur_tx, dirty_tx; member 783 ep->cur_rx, ep->dirty_rx, ep->dirty_tx, ep->cur_tx); in epic_restart() 808 (ep->dirty_tx % TX_RING_SIZE) * sizeof(struct epic_tx_desc)); in epic_restart() 874 ep->dirty_tx, ep->cur_tx); in epic_tx_timeout() 898 ep->dirty_tx = ep->cur_tx = 0; in epic_init_ring() 953 free_count = ep->cur_tx - ep->dirty_tx; in epic_start_xmit() 1014 unsigned int dirty_tx, cur_tx; in epic_tx() local 1021 for (dirty_tx = ep->dirty_tx; cur_tx - dirty_tx > 0; dirty_tx++) { in epic_tx() 1023 int entry = dirty_tx % TX_RING_SIZE; in epic_tx() 1045 if (cur_tx - dirty_tx > TX_RING_SIZE) { in epic_tx() [all …]
|
/Linux-v5.4/drivers/net/ethernet/sis/ |
D | sis190.c | 274 u32 dirty_tx; member 687 u32 pending, dirty_tx = tp->dirty_tx; in sis190_tx_interrupt() local 695 pending = tp->cur_tx - dirty_tx; in sis190_tx_interrupt() 698 for (; pending; pending--, dirty_tx++) { in sis190_tx_interrupt() 699 unsigned int entry = dirty_tx % NUM_TX_DESC; in sis190_tx_interrupt() 720 if (tp->dirty_tx != dirty_tx) { in sis190_tx_interrupt() 721 tp->dirty_tx = dirty_tx; in sis190_tx_interrupt() 808 tp->dirty_tx = tp->dirty_rx = tp->cur_tx = tp->cur_rx = 0; in sis190_init_ring_indexes() 1120 tp->cur_tx = tp->dirty_tx = 0; in sis190_tx_clear() 1176 u32 len, entry, dirty_tx; in sis190_start_xmit() local [all …]
|
D | sis900.c | 180 unsigned int cur_tx, dirty_tx; member 1132 sis_priv->dirty_tx = sis_priv->cur_tx = 0; in sis900_init_tx_ring() 1559 sis_priv->dirty_tx = sis_priv->cur_tx = 0; in sis900_tx_timeout() 1630 index_dirty_tx = sis_priv->dirty_tx; in sis900_start_xmit() 1893 for (; sis_priv->dirty_tx != sis_priv->cur_tx; sis_priv->dirty_tx++) { in sis900_finish_xmit() 1898 entry = sis_priv->dirty_tx % NUM_TX_DESC; in sis900_finish_xmit() 1941 sis_priv->cur_tx - sis_priv->dirty_tx < NUM_TX_DESC - 4) { in sis900_finish_xmit()
|
/Linux-v5.4/drivers/net/ethernet/3com/ |
D | 3c515.c | 311 unsigned int dirty_rx, dirty_tx;/* The ring entries to be free()ed. */ member 842 vp->cur_tx = vp->dirty_tx = 0; in corkscrew_open() 979 vp->full_bus_master_tx, vp->tx_full, vp->dirty_tx, in corkscrew_timeout() 1051 if (vp->cur_tx - vp->dirty_tx > TX_RING_SIZE - 1) in corkscrew_start_xmit() 1173 unsigned int dirty_tx = lp->dirty_tx; in corkscrew_interrupt() local 1175 while (lp->cur_tx - dirty_tx > 0) { in corkscrew_interrupt() 1176 int entry = dirty_tx % TX_RING_SIZE; in corkscrew_interrupt() 1183 dirty_tx++; in corkscrew_interrupt() 1185 lp->dirty_tx = dirty_tx; in corkscrew_interrupt() 1187 if (lp->tx_full && (lp->cur_tx - dirty_tx <= TX_RING_SIZE - 1)) { in corkscrew_interrupt()
|
D | 3c59x.c | 605 unsigned int dirty_tx; /* The ring entries to be free()ed. */ member 1677 vp->cur_tx = vp->dirty_tx = 0; in vortex_up() 1912 if (vp->cur_tx - vp->dirty_tx > 0 && ioread32(ioaddr + DownListPtr) == 0) in vortex_tx_timeout() 1913 iowrite32(vp->tx_ring_dma + (vp->dirty_tx % TX_RING_SIZE) * sizeof(struct boom_tx_desc), in vortex_tx_timeout() 1915 if (vp->cur_tx - vp->dirty_tx < TX_RING_SIZE) { in vortex_tx_timeout() 2135 if (vp->cur_tx - vp->dirty_tx >= TX_RING_SIZE) { in boomerang_start_xmit() 2223 if (vp->cur_tx - vp->dirty_tx > TX_RING_SIZE - 1) { in boomerang_start_xmit() 2416 unsigned int dirty_tx = vp->dirty_tx; in _boomerang_interrupt() local 2419 while (vp->cur_tx - dirty_tx > 0) { in _boomerang_interrupt() 2420 int entry = dirty_tx % TX_RING_SIZE; in _boomerang_interrupt() [all …]
|
/Linux-v5.4/drivers/net/ethernet/realtek/ |
D | 8139too.c | 594 unsigned long dirty_tx; member 1454 tp->dirty_tx = 0; in rtl8139_init_ring() 1649 tp->dirty_tx = 0; in rtl8139_tx_clear() 1672 tp->cur_tx, tp->dirty_tx); in rtl8139_tx_timeout_task() 1676 i == tp->dirty_tx % NUM_TX_DESC ? in rtl8139_tx_timeout_task() 1750 if ((tp->cur_tx - NUM_TX_DESC) == tp->dirty_tx) in rtl8139_start_xmit() 1765 unsigned long dirty_tx, tx_left; in rtl8139_tx_interrupt() local 1770 dirty_tx = tp->dirty_tx; in rtl8139_tx_interrupt() 1771 tx_left = tp->cur_tx - dirty_tx; in rtl8139_tx_interrupt() 1773 int entry = dirty_tx % NUM_TX_DESC; in rtl8139_tx_interrupt() [all …]
|
/Linux-v5.4/drivers/net/ethernet/dlink/ |
D | sundance.c | 398 unsigned int cur_tx, dirty_tx; member 1002 np->dirty_tx, np->dirty_tx % TX_RING_SIZE); in tx_timeout() 1016 if (np->cur_tx - np->dirty_tx < TX_QUEUE_LEN - 4) { in tx_timeout() 1031 np->dirty_rx = np->dirty_tx = 0; in init_ring() 1126 if (np->cur_tx - np->dirty_tx < TX_QUEUE_LEN - 1 && in start_tx() 1173 np->cur_tx = np->dirty_tx = 0; in reset_tx() 1270 for (; np->cur_tx - np->dirty_tx > 0; np->dirty_tx++) { in intr_handler() 1271 int entry = np->dirty_tx % TX_RING_SIZE; in intr_handler() 1296 for (; np->cur_tx - np->dirty_tx > 0; np->dirty_tx++) { in intr_handler() 1297 int entry = np->dirty_tx % TX_RING_SIZE; in intr_handler() [all …]
|
/Linux-v5.4/drivers/net/ethernet/stmicro/stmmac/ |
D | chain_mode.c | 148 unsigned int entry = tx_q->dirty_tx; in clean_desc3() 157 ((tx_q->dirty_tx + 1) % DMA_TX_SIZE)) in clean_desc3()
|
D | ring_mode.c | 124 unsigned int entry = tx_q->dirty_tx; in clean_desc3()
|
/Linux-v5.4/drivers/net/wireless/admtek/ |
D | adm8211.c | 306 unsigned int dirty_tx; in adm8211_interrupt_tci() local 310 for (dirty_tx = priv->dirty_tx; priv->cur_tx - dirty_tx; dirty_tx++) { in adm8211_interrupt_tci() 311 unsigned int entry = dirty_tx % priv->tx_ring_size; in adm8211_interrupt_tci() 343 if (priv->cur_tx - dirty_tx < priv->tx_ring_size - 2) in adm8211_interrupt_tci() 346 priv->dirty_tx = dirty_tx; in adm8211_interrupt_tci() 1477 priv->cur_rx = priv->cur_tx = priv->dirty_tx = 0; in adm8211_init_rings() 1642 if (priv->cur_tx - priv->dirty_tx == priv->tx_ring_size / 2) in adm8211_tx_raw() 1647 if (priv->cur_tx - priv->dirty_tx == priv->tx_ring_size - 2) in adm8211_tx_raw()
|
/Linux-v5.4/drivers/net/ethernet/adaptec/ |
D | starfire.c | 560 unsigned int cur_tx, dirty_tx, reap_tx; member 1144 np->dirty_rx = np->dirty_tx = np->rx_done = np->tx_done = 0; in init_ring() 1199 if ((np->cur_tx - np->dirty_tx) + skb_num_frags(skb) * 2 > TX_RING_SIZE) { in start_tx() 1255 dev->name, np->cur_tx, np->dirty_tx, in start_tx() 1280 if ((np->cur_tx - np->dirty_tx) + 4 > TX_RING_SIZE) in start_tx() 1367 dev->name, np->dirty_tx, np->tx_done, tx_status); in intr_handler() 1379 np->dirty_tx += np->tx_info[entry].used_slots; in intr_handler() 1388 np->dirty_tx++; in intr_handler() 1401 (np->cur_tx - np->dirty_tx + 4 < TX_RING_SIZE)) { in intr_handler() 1948 dev->name, np->cur_tx, np->dirty_tx, in netdev_close()
|
/Linux-v5.4/drivers/net/ethernet/via/ |
D | via-rhine.c | 475 unsigned int cur_tx, dirty_tx; member 1321 rp->dirty_tx = rp->cur_tx = 0; in alloc_tbufs() 1778 return (rp->cur_tx - rp->dirty_tx) >= TX_QUEUE_LEN; in rhine_tx_queue_full() 1929 unsigned int dirty_tx = rp->dirty_tx; in rhine_tx() local 1942 while (dirty_tx != cur_tx) { in rhine_tx() 1943 unsigned int entry = dirty_tx % TX_RING_SIZE; in rhine_tx() 1994 dirty_tx++; in rhine_tx() 1997 rp->dirty_tx = dirty_tx; in rhine_tx() 2158 int entry = rp->dirty_tx % TX_RING_SIZE; in rhine_restart_tx()
|
/Linux-v5.4/drivers/net/wan/ |
D | fsl_ucc_hdlc.h | 90 struct qe_bd *dirty_tx; member
|
/Linux-v5.4/drivers/net/ethernet/samsung/sxgbe/ |
D | sxgbe_main.c | 194 return queue->dirty_tx + tx_qsize - queue->cur_tx - 1; in sxgbe_tx_avail() 422 tx_ring->dirty_tx = 0; in init_tx_ring() 742 while (tqueue->dirty_tx != tqueue->cur_tx) { in sxgbe_tx_queue_clean() 743 unsigned int entry = tqueue->dirty_tx % tx_rsize; in sxgbe_tx_queue_clean() 755 __func__, tqueue->cur_tx, tqueue->dirty_tx); in sxgbe_tx_queue_clean() 772 tqueue->dirty_tx++; in sxgbe_tx_queue_clean() 830 tx_ring->dirty_tx = 0; in sxgbe_restart_tx_queue() 1398 tqueue->dirty_tx % tx_rsize, entry, in sxgbe_xmit()
|
/Linux-v5.4/drivers/net/ethernet/natsemi/ |
D | natsemi.c | 559 unsigned int cur_tx, dirty_tx; member 1977 np->dirty_tx = np->cur_tx = 0; in init_ring() 2083 np->dirty_tx = np->cur_tx = 0; in reinit_ring() 2123 if (np->cur_tx - np->dirty_tx >= TX_QUEUE_LEN - 1) { in start_tx() 2125 if (np->cur_tx - np->dirty_tx >= TX_QUEUE_LEN - 1) in start_tx() 2147 for (; np->cur_tx - np->dirty_tx > 0; np->dirty_tx++) { in netdev_tx_done() 2148 int entry = np->dirty_tx % TX_RING_SIZE; in netdev_tx_done() 2154 dev->name, np->dirty_tx, in netdev_tx_done() 2180 np->cur_tx - np->dirty_tx < TX_QUEUE_LEN - 4) { in netdev_tx_done() 3174 dev->name, np->cur_tx, np->dirty_tx, in netdev_close()
|
/Linux-v5.4/drivers/net/hippi/ |
D | rrunner.c | 615 rrpriv->dirty_rx = rrpriv->dirty_tx = 0; in rr_init1() 1055 txcon = rrpriv->dirty_tx; in rr_interrupt() 1085 rrpriv->dirty_tx = txcon; in rr_interrupt() 1088 != rrpriv->dirty_tx)){ in rr_interrupt() 1277 cons = rrpriv->dirty_tx; in rr_dump() 1441 if (txctrl->pi == rrpriv->dirty_tx){ in rr_start_xmit()
|