Home
last modified time | relevance | path

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

12

/linux/drivers/net/ethernet/amd/
A Dariadne.c126 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()
347 dirty_tx, priv->cur_tx, in ariadne_interrupt()
349 dirty_tx += TX_RING_SIZE; in ariadne_interrupt()
360 priv->dirty_tx = dirty_tx; in ariadne_interrupt()
598 (priv->dirty_tx >= TX_RING_SIZE)) { in ariadne_start_xmit()
601 priv->cur_tx, priv->dirty_tx); in ariadne_start_xmit()
[all …]
A Datarilance.c223 int dirty_tx; /* Ring entries to be freed. */ member
686 lp->dirty_tx = 0; in lance_init_ring()
744 lp->dirty_tx, lp->cur_tx, in lance_tx_timeout()
828 lp->dirty_tx -= TX_RING_SIZE; in lance_start_xmit()
879 int dirty_tx = lp->dirty_tx; in lance_interrupt() local
881 while( dirty_tx < lp->cur_tx) { in lance_interrupt()
882 int entry = dirty_tx & TX_RING_MOD_MASK; in lance_interrupt()
913 dirty_tx++; in lance_interrupt()
920 dirty_tx, lp->cur_tx, lp->tx_full )); in lance_interrupt()
921 dirty_tx += TX_RING_SIZE; in lance_interrupt()
[all …]
A Dlance.c869 lp->dirty_rx = lp->dirty_tx = 0; in lance_init_ring()
1013 if ((lp->cur_tx - lp->dirty_tx) >= TX_RING_SIZE) in lance_start_xmit()
1050 int dirty_tx = lp->dirty_tx; in lance_interrupt() local
1052 while (dirty_tx < lp->cur_tx) { in lance_interrupt()
1053 int entry = dirty_tx & TX_RING_MOD_MASK; in lance_interrupt()
1092 dirty_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()
1100 dirty_tx += TX_RING_SIZE; in lance_interrupt()
1106 dirty_tx > lp->cur_tx - TX_RING_SIZE + 2) in lance_interrupt()
[all …]
A 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()
2359 lp->dirty_rx = lp->dirty_tx = 0; in pcnet32_init_ring()
[all …]
/linux/drivers/net/ethernet/packetengines/
A Dyellowfin.c326 unsigned int cur_tx, dirty_tx; member
693 yp->cur_tx, yp->dirty_tx, in yellowfin_tx_timeout()
733 yp->dirty_tx = 0; in yellowfin_init_ring()
927 for (; yp->cur_tx - yp->dirty_tx > 0; yp->dirty_tx++) { in yellowfin_interrupt()
951 unsigned dirty_tx = yp->dirty_tx; in yellowfin_interrupt() local
953 for (dirty_tx = yp->dirty_tx; yp->cur_tx - dirty_tx > 0; in yellowfin_interrupt()
954 dirty_tx++) { in yellowfin_interrupt()
956 int entry = dirty_tx % TX_RING_SIZE; in yellowfin_interrupt()
1008 dirty_tx += TX_RING_SIZE; in yellowfin_interrupt()
1019 yp->dirty_tx = dirty_tx; in yellowfin_interrupt()
[all …]
A Dhamachi.c495 unsigned int cur_tx, dirty_tx; member
1001 for (; hmp->cur_tx - hmp->dirty_tx > 0; hmp->dirty_tx++) { in hamachi_tx()
1002 int entry = hmp->dirty_tx % TX_RING_SIZE; in hamachi_tx()
1117 hmp->dirty_rx = hmp->dirty_tx = 0; in hamachi_tx_timeout()
1173 hmp->dirty_rx = hmp->dirty_tx = 0; in hamachi_init_ring()
1286 if ((hmp->cur_tx - hmp->dirty_tx) < (TX_RING_SIZE - 4)) in hamachi_start_xmit()
1340 for (; hmp->cur_tx - hmp->dirty_tx > 0; hmp->dirty_tx++){ in hamachi_interrupt()
1341 int entry = hmp->dirty_tx % TX_RING_SIZE; in hamachi_interrupt()
1362 if (hmp->cur_tx - hmp->dirty_tx < TX_RING_SIZE - 4){ in hamachi_interrupt()
1674 dev->name, hmp->cur_tx, hmp->dirty_tx, hmp->cur_rx, hmp->dirty_rx); in hamachi_close()
/linux/drivers/net/ethernet/dec/tulip/
A 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()
A Dwinbond-840.c304 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()
1032 if (np->cur_tx - np->dirty_tx > TX_QUEUE_LEN || in start_tx()
1050 for (; np->cur_tx - np->dirty_tx > 0; np->dirty_tx++) { in netdev_tx_done()
1051 int entry = np->dirty_tx % TX_RING_SIZE; 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()
1478 np->cur_tx, np->dirty_tx, in netdev_close()
A 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()
/linux/drivers/net/ethernet/smsc/
A Depic100.c267 unsigned int cur_tx, dirty_tx; member
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()
1024 unsigned int dirty_tx, cur_tx; in epic_tx() local
1031 for (dirty_tx = ep->dirty_tx; cur_tx - dirty_tx > 0; dirty_tx++) { in epic_tx()
1033 int entry = dirty_tx % TX_RING_SIZE; in epic_tx()
1056 if (cur_tx - dirty_tx > TX_RING_SIZE) { in epic_tx()
1058 dirty_tx, cur_tx, ep->tx_full); in epic_tx()
1059 dirty_tx += TX_RING_SIZE; in epic_tx()
[all …]
/linux/drivers/net/ethernet/sis/
A 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()
1127 tp->cur_tx = tp->dirty_tx = 0; in sis190_tx_clear()
1185 u32 len, entry, dirty_tx; in sis190_start_xmit() local
1242 dirty_tx = tp->dirty_tx; in sis190_start_xmit()
[all …]
A Dsis900.c180 unsigned int cur_tx, dirty_tx; member
1138 sis_priv->dirty_tx = sis_priv->cur_tx = 0; in sis900_init_tx_ring()
1568 sis_priv->dirty_tx = sis_priv->cur_tx = 0; in sis900_tx_timeout()
1640 index_dirty_tx = sis_priv->dirty_tx; in sis900_start_xmit()
1905 for (; sis_priv->dirty_tx != sis_priv->cur_tx; sis_priv->dirty_tx++) { in sis900_finish_xmit()
1910 entry = sis_priv->dirty_tx % NUM_TX_DESC; in sis900_finish_xmit()
1953 sis_priv->cur_tx - sis_priv->dirty_tx < NUM_TX_DESC - 4) { in sis900_finish_xmit()
/linux/drivers/net/ethernet/3com/
A D3c515.c305 unsigned int dirty_rx, dirty_tx;/* The ring entries to be free()ed. */ member
830 vp->cur_tx = vp->dirty_tx = 0; in corkscrew_open()
967 vp->full_bus_master_tx, vp->tx_full, vp->dirty_tx, in corkscrew_timeout()
1039 if (vp->cur_tx - vp->dirty_tx > TX_RING_SIZE - 1) in corkscrew_start_xmit()
1161 unsigned int dirty_tx = lp->dirty_tx; in corkscrew_interrupt() local
1163 while (lp->cur_tx - dirty_tx > 0) { in corkscrew_interrupt()
1164 int entry = dirty_tx % TX_RING_SIZE; in corkscrew_interrupt()
1171 dirty_tx++; in corkscrew_interrupt()
1173 lp->dirty_tx = dirty_tx; in corkscrew_interrupt()
1175 if (lp->tx_full && (lp->cur_tx - dirty_tx <= TX_RING_SIZE - 1)) { in corkscrew_interrupt()
A D3c59x.c1679 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()
2137 if (vp->cur_tx - vp->dirty_tx >= TX_RING_SIZE) { in boomerang_start_xmit()
2418 unsigned int dirty_tx = vp->dirty_tx; in _boomerang_interrupt() local
2421 while (vp->cur_tx - dirty_tx > 0) { in _boomerang_interrupt()
2422 int entry = dirty_tx % TX_RING_SIZE; in _boomerang_interrupt()
2458 dirty_tx++; in _boomerang_interrupt()
2460 vp->dirty_tx = dirty_tx; in _boomerang_interrupt()
2461 if (vp->cur_tx - dirty_tx <= TX_RING_SIZE - 1) { in _boomerang_interrupt()
2800 vp->dirty_tx, vp->dirty_tx % TX_RING_SIZE, in dump_tx_ring()
[all …]
/linux/drivers/net/ethernet/realtek/
A D8139too.c594 unsigned long dirty_tx; member
1455 tp->dirty_tx = 0; in rtl8139_init_ring()
1650 tp->dirty_tx = 0; in rtl8139_tx_clear()
1673 tp->cur_tx, tp->dirty_tx); in rtl8139_tx_timeout_task()
1766 unsigned long dirty_tx, tx_left; in rtl8139_tx_interrupt() local
1771 dirty_tx = tp->dirty_tx; in rtl8139_tx_interrupt()
1812 dirty_tx++; in rtl8139_tx_interrupt()
1819 dirty_tx, tp->cur_tx); in rtl8139_tx_interrupt()
1820 dirty_tx += NUM_TX_DESC; in rtl8139_tx_interrupt()
1825 if (tp->dirty_tx != dirty_tx) { in rtl8139_tx_interrupt()
[all …]
A Dr8169_main.c609 u32 dirty_tx; member
2267 tp->dirty_tx = tp->cur_tx = tp->cur_rx = 0; in rtl8169_init_ring_indexes()
3930 rtl8169_tx_clear_range(tp, tp->dirty_tx, NUM_TX_DESC); in rtl8169_tx_clear()
4402 unsigned int dirty_tx, bytes_compl = 0, pkts_compl = 0; in rtl_tx() local
4405 dirty_tx = tp->dirty_tx; in rtl_tx()
4407 while (READ_ONCE(tp->cur_tx) != dirty_tx) { in rtl_tx()
4408 unsigned int entry = dirty_tx % NUM_TX_DESC; in rtl_tx()
4423 dirty_tx++; in rtl_tx()
4426 if (tp->dirty_tx != dirty_tx) { in rtl_tx()
4437 smp_store_mb(tp->dirty_tx, dirty_tx); in rtl_tx()
[all …]
/linux/drivers/net/ethernet/dlink/
A Dsundance.c391 unsigned int cur_tx, dirty_tx; member
991 np->dirty_tx, np->dirty_tx % TX_RING_SIZE); in tx_timeout()
1005 if (np->cur_tx - np->dirty_tx < TX_QUEUE_LEN - 4) { in tx_timeout()
1020 np->dirty_rx = np->dirty_tx = 0; in init_ring()
1161 np->cur_tx = np->dirty_tx = 0; in reset_tx()
1258 for (; np->cur_tx - np->dirty_tx > 0; np->dirty_tx++) { in intr_handler()
1259 int entry = np->dirty_tx % TX_RING_SIZE; in intr_handler()
1284 for (; np->cur_tx - np->dirty_tx > 0; np->dirty_tx++) { in intr_handler()
1285 int entry = np->dirty_tx % TX_RING_SIZE; in intr_handler()
1304 np->cur_tx - np->dirty_tx < TX_QUEUE_LEN - 4) { in intr_handler()
[all …]
/linux/drivers/net/wireless/admtek/
A Dadm8211.c305 unsigned int dirty_tx; in adm8211_interrupt_tci() local
309 for (dirty_tx = priv->dirty_tx; priv->cur_tx - dirty_tx; dirty_tx++) { in adm8211_interrupt_tci()
310 unsigned int entry = dirty_tx % priv->tx_ring_size; in adm8211_interrupt_tci()
342 if (priv->cur_tx - dirty_tx < priv->tx_ring_size - 2) in adm8211_interrupt_tci()
345 priv->dirty_tx = dirty_tx; in adm8211_interrupt_tci()
1475 priv->cur_rx = priv->cur_tx = priv->dirty_tx = 0; in adm8211_init_rings()
1638 if (priv->cur_tx - priv->dirty_tx == priv->tx_ring_size / 2) in adm8211_tx_raw()
1643 if (priv->cur_tx - priv->dirty_tx == priv->tx_ring_size - 2) in adm8211_tx_raw()
/linux/drivers/net/ethernet/stmicro/stmmac/
A Dchain_mode.c148 unsigned int entry = tx_q->dirty_tx; in clean_desc3()
157 ((tx_q->dirty_tx + 1) % in clean_desc3()
/linux/drivers/net/ethernet/adaptec/
A Dstarfire.c552 unsigned int cur_tx, dirty_tx, reap_tx; member
1133 np->dirty_rx = np->dirty_tx = np->rx_done = np->tx_done = 0; in init_ring()
1190 if ((np->cur_tx - np->dirty_tx) + skb_num_frags(skb) * 2 > TX_RING_SIZE) { in start_tx()
1247 dev->name, np->cur_tx, np->dirty_tx, in start_tx()
1272 if ((np->cur_tx - np->dirty_tx) + 4 > TX_RING_SIZE) in start_tx()
1357 dev->name, np->dirty_tx, np->tx_done, tx_status); in intr_handler()
1369 np->dirty_tx += np->tx_info[entry].used_slots; in intr_handler()
1378 np->dirty_tx++; in intr_handler()
1391 (np->cur_tx - np->dirty_tx + 4 < TX_RING_SIZE)) { in intr_handler()
1939 dev->name, np->cur_tx, np->dirty_tx, in netdev_close()
/linux/drivers/net/ethernet/via/
A Dvia-rhine.c469 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()
1917 unsigned int dirty_tx = rp->dirty_tx; in rhine_tx() local
1930 while (dirty_tx != cur_tx) { in rhine_tx()
1931 unsigned int entry = dirty_tx % TX_RING_SIZE; in rhine_tx()
1982 dirty_tx++; in rhine_tx()
1985 rp->dirty_tx = dirty_tx; in rhine_tx()
2146 int entry = rp->dirty_tx % TX_RING_SIZE; in rhine_restart_tx()
/linux/drivers/net/ethernet/samsung/sxgbe/
A 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()
1407 tqueue->dirty_tx % tx_rsize, entry, in sxgbe_xmit()
/linux/drivers/net/wan/
A Dfsl_ucc_hdlc.h90 struct qe_bd *dirty_tx; member
/linux/drivers/net/ethernet/natsemi/
A Dnatsemi.c559 unsigned int cur_tx, dirty_tx; member
1976 np->dirty_tx = np->cur_tx = 0; in init_ring()
2081 np->dirty_tx = np->cur_tx = 0; in reinit_ring()
2121 if (np->cur_tx - np->dirty_tx >= TX_QUEUE_LEN - 1) { in start_tx()
2123 if (np->cur_tx - np->dirty_tx >= TX_QUEUE_LEN - 1) in start_tx()
2145 for (; np->cur_tx - np->dirty_tx > 0; np->dirty_tx++) { in netdev_tx_done()
2146 int entry = np->dirty_tx % TX_RING_SIZE; in netdev_tx_done()
2152 dev->name, np->dirty_tx, in netdev_tx_done()
2177 np->cur_tx - np->dirty_tx < TX_QUEUE_LEN - 4) { in netdev_tx_done()
3172 dev->name, np->cur_tx, np->dirty_tx, in netdev_close()
/linux/drivers/net/hippi/
A Drrunner.c620 rrpriv->dirty_rx = rrpriv->dirty_tx = 0; in rr_init1()
1061 txcon = rrpriv->dirty_tx; in rr_interrupt()
1091 rrpriv->dirty_tx = txcon; in rr_interrupt()
1094 != rrpriv->dirty_tx)){ in rr_interrupt()
1286 cons = rrpriv->dirty_tx; in rr_dump()
1450 if (txctrl->pi == rrpriv->dirty_tx){ in rr_start_xmit()

Completed in 307 milliseconds

12