/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 691 lp->dirty_tx = 0; in lance_init_ring() 749 lp->dirty_tx, lp->cur_tx, in lance_tx_timeout() 831 while( lp->cur_tx >= TX_RING_SIZE && lp->dirty_tx >= TX_RING_SIZE ) { in lance_start_xmit() 833 lp->dirty_tx -= TX_RING_SIZE; in lance_start_xmit() 884 int dirty_tx = lp->dirty_tx; in lance_interrupt() local 886 while( dirty_tx < lp->cur_tx) { in lance_interrupt() 887 int entry = dirty_tx & TX_RING_MOD_MASK; in lance_interrupt() 918 dirty_tx++; in lance_interrupt() 922 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 868 lp->dirty_rx = lp->dirty_tx = 0; in lance_init_ring() 931 lp->dirty_tx, lp->cur_tx, netif_queue_stopped(dev) ? " (full)" : "", in lance_tx_timeout() 1012 if ((lp->cur_tx - lp->dirty_tx) >= TX_RING_SIZE) in lance_start_xmit() 1049 int dirty_tx = lp->dirty_tx; in lance_interrupt() local 1051 while (dirty_tx < lp->cur_tx) { in lance_interrupt() 1052 int entry = dirty_tx & TX_RING_MOD_MASK; in lance_interrupt() 1091 dirty_tx++; in lance_interrupt() 1095 if (lp->cur_tx - dirty_tx >= TX_RING_SIZE) { in lance_interrupt() 1097 dirty_tx, lp->cur_tx, in lance_interrupt() [all …]
|
D | pcnet32.c | 285 dirty_tx; member 1248 unsigned int dirty_tx = lp->dirty_tx; in pcnet32_tx() local 1252 while (dirty_tx != lp->cur_tx) { in pcnet32_tx() 1253 int entry = dirty_tx & lp->tx_mod_mask; in pcnet32_tx() 1309 dirty_tx++; in pcnet32_tx() 1312 delta = (lp->cur_tx - dirty_tx) & (lp->tx_mod_mask + lp->tx_ring_size); in pcnet32_tx() 1315 dirty_tx, lp->cur_tx, lp->tx_full); in pcnet32_tx() 1316 dirty_tx += lp->tx_ring_size; in pcnet32_tx() 1327 lp->dirty_tx = dirty_tx; in pcnet32_tx() 2309 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 689 yp->cur_tx, yp->dirty_tx, in yellowfin_tx_timeout() 714 if (yp->cur_tx - yp->dirty_tx < TX_QUEUE_SIZE) in yellowfin_tx_timeout() 729 yp->dirty_tx = 0; in yellowfin_init_ring() 875 if (yp->cur_tx - yp->dirty_tx < TX_QUEUE_SIZE) in yellowfin_start_xmit() 919 for (; yp->cur_tx - yp->dirty_tx > 0; yp->dirty_tx++) { in yellowfin_interrupt() 920 int entry = yp->dirty_tx % TX_RING_SIZE; in yellowfin_interrupt() 935 yp->cur_tx - yp->dirty_tx < TX_QUEUE_SIZE - 4) { in yellowfin_interrupt() 942 unsigned dirty_tx = yp->dirty_tx; in yellowfin_interrupt() local 944 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 998 for (; hmp->cur_tx - hmp->dirty_tx > 0; hmp->dirty_tx++) { in hamachi_tx() 999 int entry = hmp->dirty_tx % TX_RING_SIZE; in hamachi_tx() 1113 hmp->dirty_rx = hmp->dirty_tx = 0; in hamachi_tx_timeout() 1167 hmp->dirty_rx = hmp->dirty_tx = 0; in hamachi_init_ring() 1276 if ((hmp->cur_tx - hmp->dirty_tx) < (TX_RING_SIZE - 4)) in hamachi_start_xmit() 1330 for (; hmp->cur_tx - hmp->dirty_tx > 0; hmp->dirty_tx++){ in hamachi_interrupt() 1331 int entry = hmp->dirty_tx % TX_RING_SIZE; in hamachi_interrupt() 1352 if (hmp->cur_tx - hmp->dirty_tx < TX_RING_SIZE - 4){ in hamachi_interrupt() 1662 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 832 np->tx_q_bytes = np->dirty_tx = np->cur_tx = 0; in init_rxtx_rings() 946 np->cur_tx, np->dirty_tx, np->tx_full, np->tx_q_bytes); in tx_timeout() 1044 if (np->cur_tx - np->dirty_tx > TX_QUEUE_LEN || in start_tx() 1062 for (; np->cur_tx - np->dirty_tx > 0; np->dirty_tx++) { in netdev_tx_done() 1063 int entry = np->dirty_tx % TX_RING_SIZE; in netdev_tx_done() 1100 np->cur_tx - np->dirty_tx < TX_QUEUE_LEN_RESTART && in netdev_tx_done() 1141 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() 685 if (tp->cur_tx - tp->dirty_tx < TX_RING_SIZE/2) {/* Typical path */ in tulip_start_xmit() 687 } else if (tp->cur_tx - tp->dirty_tx == TX_RING_SIZE/2) { in tulip_start_xmit() 689 } else if (tp->cur_tx - tp->dirty_tx < TX_RING_SIZE - 2) { in tulip_start_xmit() 716 unsigned int dirty_tx; in tulip_clean_tx_ring() local 718 for (dirty_tx = tp->dirty_tx ; tp->cur_tx - dirty_tx > 0; in tulip_clean_tx_ring() 719 dirty_tx++) { in tulip_clean_tx_ring() 720 int entry = dirty_tx % TX_RING_SIZE; in tulip_clean_tx_ring() 1142 if (tp->cur_tx - tp->dirty_tx > TX_RING_SIZE - 2) { in set_rx_mode() 1179 if (tp->cur_tx - tp->dirty_tx >= TX_RING_SIZE - 2) in set_rx_mode()
|
/drivers/net/ethernet/smsc/ |
D | epic100.c | 268 unsigned int cur_tx, dirty_tx; member 790 ep->cur_rx, ep->dirty_rx, ep->dirty_tx, ep->cur_tx); in epic_restart() 815 (ep->dirty_tx % TX_RING_SIZE) * sizeof(struct epic_tx_desc)); 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() 960 free_count = ep->cur_tx - ep->dirty_tx; in epic_start_xmit() 1021 unsigned int dirty_tx, cur_tx; in epic_tx() local 1028 for (dirty_tx = ep->dirty_tx; cur_tx - dirty_tx > 0; dirty_tx++) { in epic_tx() 1030 int entry = dirty_tx % TX_RING_SIZE; in epic_tx() 1052 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 1129 sis_priv->dirty_tx = sis_priv->cur_tx = 0; in sis900_init_tx_ring() 1556 sis_priv->dirty_tx = sis_priv->cur_tx = 0; in sis900_tx_timeout() 1627 index_dirty_tx = sis_priv->dirty_tx; in sis900_start_xmit() 1890 for (; sis_priv->dirty_tx != sis_priv->cur_tx; sis_priv->dirty_tx++) { in sis900_finish_xmit() 1895 entry = sis_priv->dirty_tx % NUM_TX_DESC; in sis900_finish_xmit() 1938 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 1694 vp->cur_tx = vp->dirty_tx = 0; in vortex_up() 1936 if (vp->cur_tx - vp->dirty_tx > 0 && ioread32(ioaddr + DownListPtr) == 0) in vortex_tx_timeout() 1937 iowrite32(vp->tx_ring_dma + (vp->dirty_tx % TX_RING_SIZE) * sizeof(struct boom_tx_desc), in vortex_tx_timeout() 1939 if (vp->cur_tx - vp->dirty_tx < TX_RING_SIZE) { in vortex_tx_timeout() 2153 if (vp->cur_tx - vp->dirty_tx >= TX_RING_SIZE) { in boomerang_start_xmit() 2241 if (vp->cur_tx - vp->dirty_tx > TX_RING_SIZE - 1) { in boomerang_start_xmit() 2444 unsigned int dirty_tx = vp->dirty_tx; in boomerang_interrupt() local 2447 while (vp->cur_tx - dirty_tx > 0) { in boomerang_interrupt() 2448 int entry = dirty_tx % TX_RING_SIZE; in boomerang_interrupt() [all …]
|
/drivers/net/ethernet/realtek/ |
D | 8139too.c | 593 unsigned long dirty_tx; member 1461 tp->dirty_tx = 0; in rtl8139_init_ring() 1656 tp->dirty_tx = 0; in rtl8139_tx_clear() 1675 tp->cur_tx, tp->dirty_tx); in rtl8139_tx_timeout_task() 1679 i == tp->dirty_tx % NUM_TX_DESC ? in rtl8139_tx_timeout_task() 1753 if ((tp->cur_tx - NUM_TX_DESC) == tp->dirty_tx) in rtl8139_start_xmit() 1768 unsigned long dirty_tx, tx_left; in rtl8139_tx_interrupt() local 1773 dirty_tx = tp->dirty_tx; in rtl8139_tx_interrupt() 1774 tx_left = tp->cur_tx - dirty_tx; in rtl8139_tx_interrupt() 1776 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 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() 1271 for (; np->cur_tx - np->dirty_tx > 0; np->dirty_tx++) { in intr_handler() 1272 int entry = np->dirty_tx % TX_RING_SIZE; in intr_handler() 1297 for (; np->cur_tx - np->dirty_tx > 0; np->dirty_tx++) { in intr_handler() 1298 int entry = np->dirty_tx % TX_RING_SIZE; in intr_handler() [all …]
|
/drivers/net/wireless/ |
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() 1468 priv->cur_rx = priv->cur_tx = priv->dirty_tx = 0; in adm8211_init_rings() 1631 if (priv->cur_tx - priv->dirty_tx == priv->tx_ring_size / 2) in adm8211_tx_raw() 1636 if (priv->cur_tx - priv->dirty_tx == priv->tx_ring_size - 2) in adm8211_tx_raw()
|
/drivers/net/ethernet/adaptec/ |
D | starfire.c | 560 unsigned int cur_tx, dirty_tx, reap_tx; member 1145 np->dirty_rx = np->dirty_tx = np->rx_done = np->tx_done = 0; in init_ring() 1200 if ((np->cur_tx - np->dirty_tx) + skb_num_frags(skb) * 2 > TX_RING_SIZE) { in start_tx() 1256 dev->name, np->cur_tx, np->dirty_tx, in start_tx() 1281 if ((np->cur_tx - np->dirty_tx) + 4 > TX_RING_SIZE) in start_tx() 1368 dev->name, np->dirty_tx, np->tx_done, tx_status); in intr_handler() 1380 np->dirty_tx += np->tx_info[entry].used_slots; in intr_handler() 1389 np->dirty_tx++; in intr_handler() 1402 (np->cur_tx - np->dirty_tx + 4 < TX_RING_SIZE)) { in intr_handler() 1947 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 1326 rp->dirty_tx = rp->cur_tx = 0; in alloc_tbufs() 1783 return (rp->cur_tx - rp->dirty_tx) >= TX_QUEUE_LEN; in rhine_tx_queue_full() 1935 unsigned int dirty_tx = rp->dirty_tx; in rhine_tx() local 1948 while (dirty_tx != cur_tx) { in rhine_tx() 1949 unsigned int entry = dirty_tx % TX_RING_SIZE; in rhine_tx() 2000 dirty_tx++; in rhine_tx() 2003 rp->dirty_tx = dirty_tx; in rhine_tx() 2164 int entry = rp->dirty_tx % TX_RING_SIZE; in rhine_restart_tx()
|
/drivers/net/ethernet/samsung/sxgbe/ |
D | sxgbe_main.c | 195 return queue->dirty_tx + tx_qsize - queue->cur_tx - 1; in sxgbe_tx_avail() 426 tx_ring->dirty_tx = 0; in init_tx_ring() 749 while (tqueue->dirty_tx != tqueue->cur_tx) { in sxgbe_tx_queue_clean() 750 unsigned int entry = tqueue->dirty_tx % tx_rsize; in sxgbe_tx_queue_clean() 762 __func__, tqueue->cur_tx, tqueue->dirty_tx); in sxgbe_tx_queue_clean() 779 tqueue->dirty_tx++; in sxgbe_tx_queue_clean() 842 tx_ring->dirty_tx = 0; in sxgbe_restart_tx_queue() 1417 tqueue->dirty_tx % tx_rsize, entry, in sxgbe_xmit()
|
/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac.h | 56 unsigned int dirty_tx; member
|
D | stmmac_main.c | 204 return priv->dirty_tx + priv->dma_tx_size - priv->cur_tx - 1; in stmmac_tx_avail() 230 if ((priv->dirty_tx == priv->cur_tx) && in stmmac_enable_eee_mode() 1117 priv->dirty_tx = 0; in init_dma_desc_rings() 1333 while (priv->dirty_tx != priv->cur_tx) { in stmmac_tx_clean() 1335 unsigned int entry = priv->dirty_tx % txsize; in stmmac_tx_clean() 1365 priv->cur_tx, priv->dirty_tx); in stmmac_tx_clean() 1392 priv->dirty_tx++; in stmmac_tx_clean() 1449 priv->dirty_tx = 0; in stmmac_tx_err() 2063 (priv->dirty_tx % txsize), entry, first, nfrags); in stmmac_xmit() 3141 priv->dirty_tx = 0; in stmmac_resume()
|
/drivers/net/ethernet/natsemi/ |
D | natsemi.c | 559 unsigned int cur_tx, dirty_tx; member 1970 np->dirty_tx = np->cur_tx = 0; in init_ring() 2076 np->dirty_tx = np->cur_tx = 0; in reinit_ring() 2116 if (np->cur_tx - np->dirty_tx >= TX_QUEUE_LEN - 1) { in start_tx() 2118 if (np->cur_tx - np->dirty_tx >= TX_QUEUE_LEN - 1) in start_tx() 2140 for (; np->cur_tx - np->dirty_tx > 0; np->dirty_tx++) { in netdev_tx_done() 2141 int entry = np->dirty_tx % TX_RING_SIZE; in netdev_tx_done() 2147 dev->name, np->dirty_tx, in netdev_tx_done() 2173 np->cur_tx - np->dirty_tx < TX_QUEUE_LEN - 4) { in netdev_tx_done() 3157 dev->name, np->cur_tx, np->dirty_tx, in netdev_close()
|
/drivers/net/ethernet/renesas/ |
D | ravb_main.c | 184 for (; priv->cur_tx[q] - priv->dirty_tx[q] > 0; priv->dirty_tx[q]++) { in ravb_tx_free() 187 entry = priv->dirty_tx[q] % (priv->num_tx_ring[q] * in ravb_tx_free() 287 priv->dirty_tx[q] = 0; in ravb_ring_format() 1089 data[i++] = priv->dirty_tx[q]; in ravb_get_ethtool_stats() 1352 if (priv->cur_tx[q] - priv->dirty_tx[q] > (priv->num_tx_ring[q] - 1) * in ravb_start_xmit() 1431 if (priv->cur_tx[q] - priv->dirty_tx[q] > in ravb_start_xmit()
|
/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()
|