/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() 2369 lp->dirty_rx = lp->dirty_tx = 0; in pcnet32_init_ring() [all …]
|
/drivers/net/ethernet/packetengines/ |
D | yellowfin.c | 326 unsigned int cur_tx, dirty_tx; member 688 yp->cur_tx, yp->dirty_tx, in yellowfin_tx_timeout() 713 if (yp->cur_tx - yp->dirty_tx < TX_QUEUE_SIZE) in yellowfin_tx_timeout() 728 yp->dirty_tx = 0; in yellowfin_init_ring() 874 if (yp->cur_tx - yp->dirty_tx < TX_QUEUE_SIZE) in yellowfin_start_xmit() 918 for (; yp->cur_tx - yp->dirty_tx > 0; yp->dirty_tx++) { in yellowfin_interrupt() 919 int entry = yp->dirty_tx % TX_RING_SIZE; in yellowfin_interrupt() 934 yp->cur_tx - yp->dirty_tx < TX_QUEUE_SIZE - 4) { in yellowfin_interrupt() 941 unsigned dirty_tx = yp->dirty_tx; in yellowfin_interrupt() local 943 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 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() 1112 hmp->dirty_rx = hmp->dirty_tx = 0; in hamachi_tx_timeout() 1166 hmp->dirty_rx = hmp->dirty_tx = 0; in hamachi_init_ring() 1275 if ((hmp->cur_tx - hmp->dirty_tx) < (TX_RING_SIZE - 4)) in hamachi_start_xmit() 1329 for (; hmp->cur_tx - hmp->dirty_tx > 0; hmp->dirty_tx++){ in hamachi_interrupt() 1330 int entry = hmp->dirty_tx % TX_RING_SIZE; in hamachi_interrupt() 1351 if (hmp->cur_tx - hmp->dirty_tx < TX_RING_SIZE - 4){ in hamachi_interrupt() 1661 dev->name, hmp->cur_tx, hmp->dirty_tx, hmp->cur_rx, hmp->dirty_rx); in hamachi_close()
|
/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 833 np->tx_q_bytes = np->dirty_tx = np->cur_tx = 0; in init_rxtx_rings() 947 np->cur_tx, np->dirty_tx, np->tx_full, np->tx_q_bytes); in tx_timeout() 1045 if (np->cur_tx - np->dirty_tx > TX_QUEUE_LEN || in start_tx() 1063 for (; np->cur_tx - np->dirty_tx > 0; np->dirty_tx++) { in netdev_tx_done() 1064 int entry = np->dirty_tx % TX_RING_SIZE; in netdev_tx_done() 1101 np->cur_tx - np->dirty_tx < TX_QUEUE_LEN_RESTART && in netdev_tx_done() 1142 np->cur_tx != np->dirty_tx) { in intr_handler() 1489 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()
|
/drivers/net/ethernet/smsc/ |
D | epic100.c | 267 unsigned int cur_tx, dirty_tx; member 787 ep->cur_rx, ep->dirty_rx, ep->dirty_tx, ep->cur_tx); in epic_restart() 812 (ep->dirty_tx % TX_RING_SIZE) * sizeof(struct epic_tx_desc)); in epic_restart() 878 ep->dirty_tx, ep->cur_tx); in epic_tx_timeout() 902 ep->dirty_tx = ep->cur_tx = 0; in epic_init_ring() 957 free_count = ep->cur_tx - ep->dirty_tx; in epic_start_xmit() 1018 unsigned int dirty_tx, cur_tx; in epic_tx() local 1025 for (dirty_tx = ep->dirty_tx; cur_tx - dirty_tx > 0; dirty_tx++) { in epic_tx() 1027 int entry = dirty_tx % TX_RING_SIZE; in epic_tx() 1049 if (cur_tx - dirty_tx > TX_RING_SIZE) { in epic_tx() [all …]
|
/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() 1122 tp->cur_tx = tp->dirty_tx = 0; in sis190_tx_clear() 1178 u32 len, entry, dirty_tx; in sis190_start_xmit() local [all …]
|
D | sis900.c | 180 unsigned int cur_tx, dirty_tx; member 1130 sis_priv->dirty_tx = sis_priv->cur_tx = 0; in sis900_init_tx_ring() 1557 sis_priv->dirty_tx = sis_priv->cur_tx = 0; in sis900_tx_timeout() 1628 index_dirty_tx = sis_priv->dirty_tx; in sis900_start_xmit() 1891 for (; sis_priv->dirty_tx != sis_priv->cur_tx; sis_priv->dirty_tx++) { in sis900_finish_xmit() 1896 entry = sis_priv->dirty_tx % NUM_TX_DESC; in sis900_finish_xmit() 1939 sis_priv->cur_tx - sis_priv->dirty_tx < NUM_TX_DESC - 4) { in sis900_finish_xmit()
|
/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_rx, dirty_tx; /* The ring entries to be free()ed. */ member 1686 vp->cur_tx = vp->dirty_tx = 0; in vortex_up() 1928 if (vp->cur_tx - vp->dirty_tx > 0 && ioread32(ioaddr + DownListPtr) == 0) in vortex_tx_timeout() 1929 iowrite32(vp->tx_ring_dma + (vp->dirty_tx % TX_RING_SIZE) * sizeof(struct boom_tx_desc), in vortex_tx_timeout() 1931 if (vp->cur_tx - vp->dirty_tx < TX_RING_SIZE) { in vortex_tx_timeout() 2145 if (vp->cur_tx - vp->dirty_tx >= TX_RING_SIZE) { in boomerang_start_xmit() 2233 if (vp->cur_tx - vp->dirty_tx > TX_RING_SIZE - 1) { in boomerang_start_xmit() 2436 unsigned int dirty_tx = vp->dirty_tx; in boomerang_interrupt() local 2439 while (vp->cur_tx - dirty_tx > 0) { in boomerang_interrupt() 2440 int entry = dirty_tx % TX_RING_SIZE; in boomerang_interrupt() [all …]
|
/drivers/net/ethernet/realtek/ |
D | 8139too.c | 593 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() 1677 i == tp->dirty_tx % NUM_TX_DESC ? in rtl8139_tx_timeout_task() 1751 if ((tp->cur_tx - NUM_TX_DESC) == tp->dirty_tx) in rtl8139_start_xmit() 1766 unsigned long dirty_tx, tx_left; in rtl8139_tx_interrupt() local 1771 dirty_tx = tp->dirty_tx; in rtl8139_tx_interrupt() 1772 tx_left = tp->cur_tx - dirty_tx; in rtl8139_tx_interrupt() 1774 int entry = dirty_tx % NUM_TX_DESC; in rtl8139_tx_interrupt() [all …]
|
/drivers/net/ethernet/dlink/ |
D | sundance.c | 398 unsigned int cur_tx, dirty_tx; member 1004 np->dirty_tx, np->dirty_tx % TX_RING_SIZE); in tx_timeout() 1018 if (np->cur_tx - np->dirty_tx < TX_QUEUE_LEN - 4) { in tx_timeout() 1033 np->dirty_rx = np->dirty_tx = 0; in init_ring() 1128 if (np->cur_tx - np->dirty_tx < TX_QUEUE_LEN - 1 && in start_tx() 1175 np->cur_tx = np->dirty_tx = 0; in reset_tx() 1273 for (; np->cur_tx - np->dirty_tx > 0; np->dirty_tx++) { in intr_handler() 1274 int entry = np->dirty_tx % TX_RING_SIZE; in intr_handler() 1299 for (; np->cur_tx - np->dirty_tx > 0; np->dirty_tx++) { in intr_handler() 1300 int entry = np->dirty_tx % TX_RING_SIZE; in intr_handler() [all …]
|
/drivers/net/wireless/admtek/ |
D | adm8211.c | 310 unsigned int dirty_tx; in adm8211_interrupt_tci() local 314 for (dirty_tx = priv->dirty_tx; priv->cur_tx - dirty_tx; dirty_tx++) { in adm8211_interrupt_tci() 315 unsigned int entry = dirty_tx % priv->tx_ring_size; in adm8211_interrupt_tci() 347 if (priv->cur_tx - dirty_tx < priv->tx_ring_size - 2) in adm8211_interrupt_tci() 350 priv->dirty_tx = dirty_tx; in adm8211_interrupt_tci() 1481 priv->cur_rx = priv->cur_tx = priv->dirty_tx = 0; in adm8211_init_rings() 1646 if (priv->cur_tx - priv->dirty_tx == priv->tx_ring_size / 2) in adm8211_tx_raw() 1651 if (priv->cur_tx - priv->dirty_tx == priv->tx_ring_size - 2) in adm8211_tx_raw()
|
/drivers/net/ethernet/stmicro/stmmac/ |
D | chain_mode.c | 160 unsigned int entry = tx_q->dirty_tx; in stmmac_clean_desc3() 169 ((tx_q->dirty_tx + 1) % DMA_TX_SIZE)) in stmmac_clean_desc3()
|
D | stmmac.h | 58 unsigned int dirty_tx; member
|
/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()
|
/drivers/net/ethernet/via/ |
D | via-rhine.c | 475 unsigned int cur_tx, dirty_tx; member 1325 rp->dirty_tx = rp->cur_tx = 0; in alloc_tbufs() 1782 return (rp->cur_tx - rp->dirty_tx) >= TX_QUEUE_LEN; in rhine_tx_queue_full() 1934 unsigned int dirty_tx = rp->dirty_tx; in rhine_tx() local 1947 while (dirty_tx != cur_tx) { in rhine_tx() 1948 unsigned int entry = dirty_tx % TX_RING_SIZE; in rhine_tx() 1999 dirty_tx++; in rhine_tx() 2002 rp->dirty_tx = dirty_tx; in rhine_tx() 2163 int entry = rp->dirty_tx % TX_RING_SIZE; in rhine_restart_tx()
|
/drivers/net/ethernet/samsung/sxgbe/ |
D | sxgbe_main.c | 198 return queue->dirty_tx + tx_qsize - queue->cur_tx - 1; in sxgbe_tx_avail() 426 tx_ring->dirty_tx = 0; in init_tx_ring() 746 while (tqueue->dirty_tx != tqueue->cur_tx) { in sxgbe_tx_queue_clean() 747 unsigned int entry = tqueue->dirty_tx % tx_rsize; in sxgbe_tx_queue_clean() 759 __func__, tqueue->cur_tx, tqueue->dirty_tx); in sxgbe_tx_queue_clean() 776 tqueue->dirty_tx++; in sxgbe_tx_queue_clean() 834 tx_ring->dirty_tx = 0; in sxgbe_restart_tx_queue() 1403 tqueue->dirty_tx % tx_rsize, entry, in sxgbe_xmit()
|
/drivers/net/wan/ |
D | fsl_ucc_hdlc.h | 94 struct qe_bd *dirty_tx; member
|
/drivers/net/ethernet/natsemi/ |
D | natsemi.c | 559 unsigned int cur_tx, dirty_tx; member 1979 np->dirty_tx = np->cur_tx = 0; in init_ring() 2085 np->dirty_tx = np->cur_tx = 0; in reinit_ring() 2125 if (np->cur_tx - np->dirty_tx >= TX_QUEUE_LEN - 1) { in start_tx() 2127 if (np->cur_tx - np->dirty_tx >= TX_QUEUE_LEN - 1) in start_tx() 2149 for (; np->cur_tx - np->dirty_tx > 0; np->dirty_tx++) { in netdev_tx_done() 2150 int entry = np->dirty_tx % TX_RING_SIZE; in netdev_tx_done() 2156 dev->name, np->dirty_tx, in netdev_tx_done() 2182 np->cur_tx - np->dirty_tx < TX_QUEUE_LEN - 4) { in netdev_tx_done() 3176 dev->name, np->cur_tx, np->dirty_tx, in netdev_close()
|
/drivers/net/hippi/ |
D | rrunner.c | 619 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() 1285 cons = rrpriv->dirty_tx; in rr_dump() 1449 if (txctrl->pi == rrpriv->dirty_tx){ in rr_start_xmit()
|