Home
last modified time | relevance | path

Searched refs:dirty_tx (Results 1 – 25 of 44) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/net/ethernet/amd/
Dariadne.c93 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 …]
Datarilance.c223 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 …]
Dlance.c249 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 …]
Dpcnet32.c281 dirty_tx; member
1299 unsigned int dirty_tx = lp->dirty_tx; in pcnet32_tx() local
1303 while (dirty_tx != lp->cur_tx) { in pcnet32_tx()
1304 int entry = dirty_tx & lp->tx_mod_mask; in pcnet32_tx()
1360 dirty_tx++; in pcnet32_tx()
1363 delta = (lp->cur_tx - dirty_tx) & (lp->tx_mod_mask + lp->tx_ring_size); in pcnet32_tx()
1366 dirty_tx, lp->cur_tx, lp->tx_full); in pcnet32_tx()
1367 dirty_tx += lp->tx_ring_size; in pcnet32_tx()
1378 lp->dirty_tx = dirty_tx; in pcnet32_tx()
2354 lp->dirty_rx = lp->dirty_tx = 0; in pcnet32_init_ring()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/packetengines/
Dyellowfin.c326 unsigned int cur_tx, dirty_tx; member
691 yp->cur_tx, yp->dirty_tx, in yellowfin_tx_timeout()
716 if (yp->cur_tx - yp->dirty_tx < TX_QUEUE_SIZE) in yellowfin_tx_timeout()
731 yp->dirty_tx = 0; in yellowfin_init_ring()
881 if (yp->cur_tx - yp->dirty_tx < TX_QUEUE_SIZE) in yellowfin_start_xmit()
925 for (; yp->cur_tx - yp->dirty_tx > 0; yp->dirty_tx++) { in yellowfin_interrupt()
926 int entry = yp->dirty_tx % TX_RING_SIZE; in yellowfin_interrupt()
942 yp->cur_tx - yp->dirty_tx < TX_QUEUE_SIZE - 4) { in yellowfin_interrupt()
949 unsigned dirty_tx = yp->dirty_tx; in yellowfin_interrupt() local
951 for (dirty_tx = yp->dirty_tx; yp->cur_tx - dirty_tx > 0; in yellowfin_interrupt()
[all …]
Dhamachi.c495 unsigned int cur_tx, dirty_tx; member
997 for (; hmp->cur_tx - hmp->dirty_tx > 0; hmp->dirty_tx++) { in hamachi_tx()
998 int entry = hmp->dirty_tx % TX_RING_SIZE; in hamachi_tx()
1113 hmp->dirty_rx = hmp->dirty_tx = 0; in hamachi_tx_timeout()
1169 hmp->dirty_rx = hmp->dirty_tx = 0; in hamachi_init_ring()
1282 if ((hmp->cur_tx - hmp->dirty_tx) < (TX_RING_SIZE - 4)) in hamachi_start_xmit()
1336 for (; hmp->cur_tx - hmp->dirty_tx > 0; hmp->dirty_tx++){ in hamachi_interrupt()
1337 int entry = hmp->dirty_tx % TX_RING_SIZE; in hamachi_interrupt()
1358 if (hmp->cur_tx - hmp->dirty_tx < TX_RING_SIZE - 4){ in hamachi_interrupt()
1670 dev->name, hmp->cur_tx, hmp->dirty_tx, hmp->cur_rx, hmp->dirty_rx); in hamachi_close()
/kernel/linux/linux-5.10/drivers/net/ethernet/dec/tulip/
Dinterrupt.c591 unsigned int dirty_tx; in tulip_interrupt() local
595 for (dirty_tx = tp->dirty_tx; tp->cur_tx - dirty_tx > 0; in tulip_interrupt()
596 dirty_tx++) { in tulip_interrupt()
597 int entry = dirty_tx % TX_RING_SIZE; 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()
656 dirty_tx += TX_RING_SIZE; in tulip_interrupt()
660 if (tp->cur_tx - dirty_tx < TX_RING_SIZE - 2) in tulip_interrupt()
663 tp->dirty_tx = dirty_tx; in tulip_interrupt()
Dwinbond-840.c304 unsigned int cur_tx, dirty_tx; member
821 np->tx_q_bytes = np->dirty_tx = np->cur_tx = 0; in init_rxtx_rings()
932 np->cur_tx, np->dirty_tx, np->tx_full, np->tx_q_bytes); in tx_timeout()
1030 if (np->cur_tx - np->dirty_tx > TX_QUEUE_LEN || in start_tx()
1048 for (; np->cur_tx - np->dirty_tx > 0; np->dirty_tx++) { in netdev_tx_done()
1049 int entry = np->dirty_tx % TX_RING_SIZE; in netdev_tx_done()
1085 np->cur_tx - np->dirty_tx < TX_QUEUE_LEN_RESTART && in netdev_tx_done()
1126 np->cur_tx != np->dirty_tx) { in intr_handler()
1476 np->cur_tx, np->dirty_tx, in netdev_close()
Dtulip_core.c324 tp->dirty_rx = tp->dirty_tx = 0; in tulip_up()
672 if (tp->cur_tx - tp->dirty_tx < TX_RING_SIZE/2) {/* Typical path */ in tulip_start_xmit()
674 } else if (tp->cur_tx - tp->dirty_tx == TX_RING_SIZE/2) { in tulip_start_xmit()
676 } else if (tp->cur_tx - tp->dirty_tx < TX_RING_SIZE - 2) { in tulip_start_xmit()
703 unsigned int dirty_tx; in tulip_clean_tx_ring() local
705 for (dirty_tx = tp->dirty_tx ; tp->cur_tx - dirty_tx > 0; in tulip_clean_tx_ring()
706 dirty_tx++) { in tulip_clean_tx_ring()
707 int entry = dirty_tx % TX_RING_SIZE; in tulip_clean_tx_ring()
1129 if (tp->cur_tx - tp->dirty_tx > TX_RING_SIZE - 2) { in set_rx_mode()
1167 if (tp->cur_tx - tp->dirty_tx >= TX_RING_SIZE - 2) in set_rx_mode()
/kernel/linux/linux-5.10/drivers/net/ethernet/smsc/
Depic100.c267 unsigned int cur_tx, dirty_tx; member
788 ep->cur_rx, ep->dirty_rx, ep->dirty_tx, ep->cur_tx); in epic_restart()
813 (ep->dirty_tx % TX_RING_SIZE) * sizeof(struct epic_tx_desc)); in epic_restart()
879 ep->dirty_tx, ep->cur_tx); in epic_tx_timeout()
903 ep->dirty_tx = ep->cur_tx = 0; in epic_init_ring()
960 free_count = ep->cur_tx - ep->dirty_tx; in epic_start_xmit()
1022 unsigned int dirty_tx, cur_tx; in epic_tx() local
1029 for (dirty_tx = ep->dirty_tx; cur_tx - dirty_tx > 0; dirty_tx++) { in epic_tx()
1031 int entry = dirty_tx % TX_RING_SIZE; in epic_tx()
1054 if (cur_tx - dirty_tx > TX_RING_SIZE) { in epic_tx()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/sis/
Dsis190.c274 u32 dirty_tx; member
690 u32 pending, dirty_tx = tp->dirty_tx; in sis190_tx_interrupt() local
698 pending = tp->cur_tx - dirty_tx; in sis190_tx_interrupt()
701 for (; pending; pending--, dirty_tx++) { in sis190_tx_interrupt()
702 unsigned int entry = dirty_tx % NUM_TX_DESC; in sis190_tx_interrupt()
723 if (tp->dirty_tx != dirty_tx) { in sis190_tx_interrupt()
724 tp->dirty_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()
1185 u32 len, entry, dirty_tx; in sis190_start_xmit() local
[all …]
Dsis900.c180 unsigned int cur_tx, dirty_tx; member
1131 sis_priv->dirty_tx = sis_priv->cur_tx = 0; in sis900_init_tx_ring()
1561 sis_priv->dirty_tx = sis_priv->cur_tx = 0; in sis900_tx_timeout()
1633 index_dirty_tx = sis_priv->dirty_tx; in sis900_start_xmit()
1898 for (; sis_priv->dirty_tx != sis_priv->cur_tx; sis_priv->dirty_tx++) { in sis900_finish_xmit()
1903 entry = sis_priv->dirty_tx % NUM_TX_DESC; in sis900_finish_xmit()
1946 sis_priv->cur_tx - sis_priv->dirty_tx < NUM_TX_DESC - 4) { in sis900_finish_xmit()
/kernel/linux/linux-5.10/drivers/net/ethernet/3com/
D3c515.c305 unsigned int dirty_rx, dirty_tx;/* The ring entries to be free()ed. */ member
828 vp->cur_tx = vp->dirty_tx = 0; in corkscrew_open()
965 vp->full_bus_master_tx, vp->tx_full, vp->dirty_tx, in corkscrew_timeout()
1037 if (vp->cur_tx - vp->dirty_tx > TX_RING_SIZE - 1) in corkscrew_start_xmit()
1159 unsigned int dirty_tx = lp->dirty_tx; in corkscrew_interrupt() local
1161 while (lp->cur_tx - dirty_tx > 0) { in corkscrew_interrupt()
1162 int entry = dirty_tx % TX_RING_SIZE; in corkscrew_interrupt()
1169 dirty_tx++; in corkscrew_interrupt()
1171 lp->dirty_tx = dirty_tx; in corkscrew_interrupt()
1173 if (lp->tx_full && (lp->cur_tx - dirty_tx <= TX_RING_SIZE - 1)) { in corkscrew_interrupt()
D3c59x.c605 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 …]
/kernel/linux/linux-5.10/drivers/net/ethernet/realtek/
D8139too.c594 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 …]
/kernel/linux/linux-5.10/drivers/net/ethernet/dlink/
Dsundance.c391 unsigned int cur_tx, dirty_tx; member
989 np->dirty_tx, np->dirty_tx % TX_RING_SIZE); in tx_timeout()
1003 if (np->cur_tx - np->dirty_tx < TX_QUEUE_LEN - 4) { in tx_timeout()
1018 np->dirty_rx = np->dirty_tx = 0; in init_ring()
1112 if (np->cur_tx - np->dirty_tx < TX_QUEUE_LEN - 1 && in start_tx()
1159 np->cur_tx = np->dirty_tx = 0; in reset_tx()
1256 for (; np->cur_tx - np->dirty_tx > 0; np->dirty_tx++) { in intr_handler()
1257 int entry = np->dirty_tx % TX_RING_SIZE; in intr_handler()
1282 for (; np->cur_tx - np->dirty_tx > 0; np->dirty_tx++) { in intr_handler()
1283 int entry = np->dirty_tx % TX_RING_SIZE; in intr_handler()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/
Dchain_mode.c148 unsigned int entry = tx_q->dirty_tx; in clean_desc3()
157 ((tx_q->dirty_tx + 1) % in clean_desc3()
Dring_mode.c124 unsigned int entry = tx_q->dirty_tx; in clean_desc3()
/kernel/linux/linux-5.10/drivers/net/wireless/admtek/
Dadm8211.c306 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()
1476 priv->cur_rx = priv->cur_tx = priv->dirty_tx = 0; in adm8211_init_rings()
1639 if (priv->cur_tx - priv->dirty_tx == priv->tx_ring_size / 2) in adm8211_tx_raw()
1644 if (priv->cur_tx - priv->dirty_tx == priv->tx_ring_size - 2) in adm8211_tx_raw()
/kernel/linux/linux-5.10/drivers/net/ethernet/adaptec/
Dstarfire.c552 unsigned int cur_tx, dirty_tx, reap_tx; member
1131 np->dirty_rx = np->dirty_tx = np->rx_done = np->tx_done = 0; in init_ring()
1188 if ((np->cur_tx - np->dirty_tx) + skb_num_frags(skb) * 2 > TX_RING_SIZE) { in start_tx()
1245 dev->name, np->cur_tx, np->dirty_tx, in start_tx()
1270 if ((np->cur_tx - np->dirty_tx) + 4 > TX_RING_SIZE) in start_tx()
1355 dev->name, np->dirty_tx, np->tx_done, tx_status); in intr_handler()
1367 np->dirty_tx += np->tx_info[entry].used_slots; in intr_handler()
1376 np->dirty_tx++; in intr_handler()
1389 (np->cur_tx - np->dirty_tx + 4 < TX_RING_SIZE)) { in intr_handler()
1937 dev->name, np->cur_tx, np->dirty_tx, in netdev_close()
/kernel/linux/linux-5.10/drivers/net/ethernet/via/
Dvia-rhine.c469 unsigned int cur_tx, dirty_tx; member
1310 rp->dirty_tx = rp->cur_tx = 0; in alloc_tbufs()
1769 return (rp->cur_tx - rp->dirty_tx) >= TX_QUEUE_LEN; in rhine_tx_queue_full()
1920 unsigned int dirty_tx = rp->dirty_tx; in rhine_tx() local
1933 while (dirty_tx != cur_tx) { in rhine_tx()
1934 unsigned int entry = dirty_tx % TX_RING_SIZE; in rhine_tx()
1985 dirty_tx++; in rhine_tx()
1988 rp->dirty_tx = dirty_tx; in rhine_tx()
2149 int entry = rp->dirty_tx % TX_RING_SIZE; in rhine_restart_tx()
/kernel/linux/linux-5.10/drivers/net/wan/
Dfsl_ucc_hdlc.h90 struct qe_bd *dirty_tx; member
/kernel/linux/linux-5.10/drivers/net/ethernet/samsung/sxgbe/
Dsxgbe_main.c194 return queue->dirty_tx + tx_qsize - queue->cur_tx - 1; in sxgbe_tx_avail()
426 tx_ring->dirty_tx = 0; in init_tx_ring()
747 while (tqueue->dirty_tx != tqueue->cur_tx) { in sxgbe_tx_queue_clean()
748 unsigned int entry = tqueue->dirty_tx % tx_rsize; in sxgbe_tx_queue_clean()
760 __func__, tqueue->cur_tx, tqueue->dirty_tx); in sxgbe_tx_queue_clean()
777 tqueue->dirty_tx++; in sxgbe_tx_queue_clean()
836 tx_ring->dirty_tx = 0; in sxgbe_restart_tx_queue()
1404 tqueue->dirty_tx % tx_rsize, entry, in sxgbe_xmit()
/kernel/linux/linux-5.10/drivers/net/ethernet/natsemi/
Dnatsemi.c559 unsigned int cur_tx, dirty_tx; member
1974 np->dirty_tx = np->cur_tx = 0; in init_ring()
2079 np->dirty_tx = np->cur_tx = 0; in reinit_ring()
2119 if (np->cur_tx - np->dirty_tx >= TX_QUEUE_LEN - 1) { in start_tx()
2121 if (np->cur_tx - np->dirty_tx >= TX_QUEUE_LEN - 1) in start_tx()
2143 for (; np->cur_tx - np->dirty_tx > 0; np->dirty_tx++) { in netdev_tx_done()
2144 int entry = np->dirty_tx % TX_RING_SIZE; in netdev_tx_done()
2150 dev->name, np->dirty_tx, in netdev_tx_done()
2175 np->cur_tx - np->dirty_tx < TX_QUEUE_LEN - 4) { in netdev_tx_done()
3170 dev->name, np->cur_tx, np->dirty_tx, in netdev_close()
/kernel/linux/linux-5.10/drivers/net/hippi/
Drrunner.c618 rrpriv->dirty_rx = rrpriv->dirty_tx = 0; in rr_init1()
1059 txcon = rrpriv->dirty_tx; in rr_interrupt()
1089 rrpriv->dirty_tx = txcon; in rr_interrupt()
1092 != rrpriv->dirty_tx)){ in rr_interrupt()
1284 cons = rrpriv->dirty_tx; in rr_dump()
1448 if (txctrl->pi == rrpriv->dirty_tx){ in rr_start_xmit()

12