/linux-master/drivers/net/can/spi/mcp251xfd/ |
H A D | mcp251xfd-ram.h | 50 u8 cur_tx; member in struct:can_ram_layout
|
H A D | mcp251xfd-ethtool.c | 44 layout.cur_tx != priv->tx->obj_num) && 50 priv->tx->obj_num = layout.cur_tx; 112 priv->tx->obj_num = layout.cur_tx;
|
H A D | mcp251xfd-ram.c | 144 layout->cur_tx = num_tx; 149 layout->cur_tx = layout->default_tx;
|
/linux-master/drivers/net/ethernet/stmicro/stmmac/ |
H A D | chain_mode.c | 22 unsigned int entry = tx_q->cur_tx; 81 tx_q->cur_tx = entry;
|
H A D | ring_mode.c | 22 unsigned int entry = tx_q->cur_tx; 89 tx_q->cur_tx = entry;
|
H A D | stmmac_main.c | 367 if (tx_q->dirty_tx > tx_q->cur_tx) 368 avail = tx_q->dirty_tx - tx_q->cur_tx - 1; 370 avail = priv->dma_conf.dma_tx_size - tx_q->cur_tx + tx_q->dirty_tx - 1; 418 if (tx_q->dirty_tx != tx_q->cur_tx) 2472 unsigned int entry = tx_q->cur_tx; 2564 tx_q->cur_tx = STMMAC_GET_ENTRY(tx_q->cur_tx, priv->dma_conf.dma_tx_size); 2565 entry = tx_q->cur_tx; 2625 while ((entry != tx_q->cur_tx) && count < priv->dma_conf.dma_tx_size) { 2780 if (tx_q->dirty_tx != tx_q->cur_tx) [all...] |
/linux-master/drivers/net/ethernet/amd/ |
H A D | ariadne.c | 92 int cur_tx, cur_rx; /* The next free ring entry */ member in struct:ariadne_private 125 priv->cur_rx = priv->cur_tx = 0; 308 while (dirty_tx < priv->cur_tx) { 345 if (priv->cur_tx - dirty_tx >= TX_RING_SIZE) { 347 dirty_tx, priv->cur_tx, 354 dirty_tx > priv->cur_tx - TX_RING_SIZE + 2) { 576 entry = priv->cur_tx % TX_RING_SIZE; 596 priv->cur_tx++; 597 if ((priv->cur_tx >= TX_RING_SIZE) && 600 netdev_dbg(dev, "*** Subtracting TX_RING_SIZE from cur_tx ( [all...] |
H A D | atarilance.c | 222 int cur_rx, cur_tx; /* The next free ring entry */ member in struct:lance_private 688 lp->cur_rx = lp->cur_tx = 0; 746 DPRINTK( 2, ( "Ring data: dirty_tx %d cur_tx %d%s cur_rx %d\n", 747 lp->dirty_tx, lp->cur_tx, 814 entry = lp->cur_tx & TX_RING_MOD_MASK; 828 lp->cur_tx++; 829 while( lp->cur_tx >= TX_RING_SIZE && lp->dirty_tx >= TX_RING_SIZE ) { 830 lp->cur_tx -= TX_RING_SIZE; 884 while( dirty_tx < lp->cur_tx) { 920 if (lp->cur_tx [all...] |
H A D | lance.c | 249 int cur_rx, cur_tx; /* The next free ring entry */ member in struct:lance_private 871 lp->cur_rx = lp->cur_tx = 0; 934 printk (" Ring data dump: dirty_tx %d cur_tx %d%s cur_rx %d.", 935 lp->dirty_tx, lp->cur_tx, netif_queue_stopped(dev) ? " (full)" : "", 975 entry = lp->cur_tx & TX_RING_MOD_MASK; 1010 lp->cur_tx++; 1016 if ((lp->cur_tx - lp->dirty_tx) >= TX_RING_SIZE) 1055 while (dirty_tx < lp->cur_tx) { 1099 if (lp->cur_tx - dirty_tx >= TX_RING_SIZE) { 1101 dirty_tx, lp->cur_tx, [all...] |
/linux-master/drivers/net/ethernet/ |
H A D | fealnx.c | 396 struct fealnx_desc *cur_tx; member in struct:netdev_private 1146 iowrite32(np->tx_ring_dma + ((char*)np->cur_tx - (char*)np->tx_ring), 1271 np->cur_tx = &np->tx_ring[0]; 1379 np->cur_tx = &np->tx_ring[0]; 1488 long tx_status = np->cur_tx->status; 1489 long tx_control = np->cur_tx->control; 1494 next = np->cur_tx->next_desc_logical; 1532 np->cur_tx->buffer, 1533 np->cur_tx->skbuff->len, 1535 dev_consume_skb_irq(np->cur_tx [all...] |
H A D | ethoc.c | 183 * @cur_tx: last send buffer written 205 unsigned int cur_tx; member in struct:ethoc 308 dev->cur_tx = 0; 525 if (bd.stat & TX_BD_READY || (priv->dty_tx == priv->cur_tx)) { 536 (priv->dty_tx == priv->cur_tx)) 544 if ((priv->cur_tx - priv->dty_tx) <= (priv->num_tx / 2)) 897 entry = priv->cur_tx % priv->num_tx; 899 priv->cur_tx++; 917 if (priv->cur_tx == (priv->dty_tx + priv->num_tx)) {
|
/linux-master/drivers/net/arcnet/ |
H A D | arcnet.c | 567 lp->cur_tx = lp->next_tx = -1; 709 lp->hw.status(dev), lp->cur_tx, lp->next_tx, skb->len, skb->protocol); 789 arc_printk(D_DURING, dev, "go_tx: status=%Xh, intmask=%Xh, next_tx=%d, cur_tx=%d\n", 790 lp->hw.status(dev), lp->intmask, lp->next_tx, lp->cur_tx); 792 if (lp->cur_tx != -1 || lp->next_tx == -1) 798 lp->cur_tx = lp->next_tx; 802 lp->hw.command(dev, TXcmd | (lp->cur_tx << 3)); 828 lp->hw.command(dev, NOTXcmd | (lp->cur_tx << 3)); 845 if (lp->cur_tx == -1) 965 if (lp->cur_tx ! [all...] |
H A D | arc-rawmode.c | 121 lp->next_tx, lp->cur_tx, bufnum);
|
/linux-master/drivers/net/ethernet/packetengines/ |
H A D | yellowfin.c | 326 unsigned int cur_tx, dirty_tx; member in struct:yellowfin_private 693 yp->cur_tx, yp->dirty_tx, 718 if (yp->cur_tx - yp->dirty_tx < TX_QUEUE_SIZE) 732 yp->cur_rx = yp->cur_tx = 0; 823 "ownership" bit last, and only then increment cur_tx. */ 826 entry = yp->cur_tx % TX_RING_SIZE; 857 yp->cur_tx++; 866 yp->cur_tx++; 868 unsigned next_entry = yp->cur_tx % TX_RING_SIZE; 883 if (yp->cur_tx [all...] |
H A D | hamachi.c | 495 unsigned int cur_tx, dirty_tx; member in struct:hamachi_private 1001 for (; hmp->cur_tx - hmp->dirty_tx > 0; hmp->dirty_tx++) { 1116 hmp->cur_rx = hmp->cur_tx = 0; 1172 hmp->cur_rx = hmp->cur_tx = 0; 1229 printk(KERN_WARNING "%s: Hamachi transmit queue full at slot %d.\n",dev->name, hmp->cur_tx); 1243 entry = hmp->cur_tx % TX_RING_SIZE; 1267 hmp->cur_tx++; 1286 if ((hmp->cur_tx - hmp->dirty_tx) < (TX_RING_SIZE - 4)) 1295 dev->name, hmp->cur_tx, entry); 1340 for (; hmp->cur_tx [all...] |
/linux-master/drivers/net/ethernet/dec/tulip/ |
H A D | tulip_core.c | 323 tp->cur_rx = tp->cur_tx = 0; 356 tp->tx_buffers[tp->cur_tx].skb = NULL; 357 tp->tx_buffers[tp->cur_tx].mapping = mapping; 360 tp->tx_ring[tp->cur_tx].length = cpu_to_le32(0x08000000 | 192); 361 tp->tx_ring[tp->cur_tx].buffer1 = cpu_to_le32(mapping); 362 tp->tx_ring[tp->cur_tx].status = cpu_to_le32(DescOwned); 364 tp->cur_tx++; 664 entry = tp->cur_tx % TX_RING_SIZE; 672 if (tp->cur_tx - tp->dirty_tx < TX_RING_SIZE/2) {/* Typical path */ 674 } else if (tp->cur_tx [all...] |
H A D | interrupt.c | 595 for (dirty_tx = tp->dirty_tx; tp->cur_tx - dirty_tx > 0; 652 if (tp->cur_tx - dirty_tx > TX_RING_SIZE) { 655 dirty_tx, tp->cur_tx); 660 if (tp->cur_tx - dirty_tx < TX_RING_SIZE - 2)
|
H A D | winbond-840.c | 304 unsigned int cur_tx, dirty_tx; member in struct:netdev_private 821 np->tx_q_bytes = np->dirty_tx = np->cur_tx = 0; 932 np->cur_tx, np->dirty_tx, np->tx_full, np->tx_q_bytes); 992 entry = np->cur_tx % TX_RING_SIZE; 1012 * increasing np->cur_tx and setting DescOwned: 1013 * - if np->cur_tx is increased first the interrupt 1018 * since the np->cur_tx was not yet increased. 1021 np->cur_tx++; 1030 if (np->cur_tx - np->dirty_tx > TX_QUEUE_LEN || 1040 np->cur_tx, entr [all...] |
/linux-master/drivers/net/ethernet/3com/ |
H A D | 3c515.c | 303 unsigned int cur_rx, cur_tx; /* The next free ring entry */ member in struct:corkscrew_private 829 vp->cur_tx = vp->dirty_tx = 0; 967 vp->cur_tx); 1000 int entry = vp->cur_tx % TX_RING_SIZE; 1007 if (vp->cur_tx != 0) 1008 prev_entry = &vp->tx_ring[(vp->cur_tx - 1) % TX_RING_SIZE]; 1013 dev->name, vp->cur_tx); 1037 vp->cur_tx++; 1038 if (vp->cur_tx - vp->dirty_tx > TX_RING_SIZE - 1) 1162 while (lp->cur_tx [all...] |
/linux-master/drivers/net/ethernet/smsc/ |
H A D | epic100.c | 267 unsigned int cur_tx, dirty_tx; member in struct:epic_private 790 ep->cur_rx, ep->dirty_rx, ep->dirty_tx, ep->cur_tx); 880 netdev_dbg(dev, "Tx indices: dirty_tx %d, cur_tx %d.\n", 881 ep->dirty_tx, ep->cur_tx); 905 ep->dirty_tx = ep->cur_tx = 0; 962 free_count = ep->cur_tx - ep->dirty_tx; 963 entry = ep->cur_tx % TX_RING_SIZE; 985 ep->cur_tx++; 1024 unsigned int dirty_tx, cur_tx; local 1030 cur_tx [all...] |
/linux-master/drivers/net/ethernet/dlink/ |
H A D | sundance.c | 391 unsigned int cur_tx, dirty_tx; member in struct:netdev_private 989 printk(KERN_DEBUG "cur_tx=%d(%02x) dirty_tx=%d(%02x)\n", 990 np->cur_tx, np->cur_tx % TX_RING_SIZE, 1005 if (np->cur_tx - np->dirty_tx < TX_QUEUE_LEN - 4) { 1019 np->cur_rx = np->cur_tx = 0; 1066 &np->tx_ring[(np->cur_tx - 1) % TX_RING_SIZE]; 1069 for (; np->cur_tx - np->cur_task > 0; np->cur_task++) { 1094 entry = np->cur_tx % TX_RING_SIZE; 1107 /* Increment cur_tx befor [all...] |
H A D | dl2k.c | 467 np->cur_tx = 0; 717 entry = np->cur_tx % TX_RING_SIZE; 753 np->cur_tx = (np->cur_tx + 1) % TX_RING_SIZE; 754 if ((np->cur_tx - np->old_tx + TX_RING_SIZE) % TX_RING_SIZE 806 if (np->cur_tx != np->old_tx) 824 while (entry != np->cur_tx) { 851 ((np->cur_tx - np->old_tx + TX_RING_SIZE) % TX_RING_SIZE
|
/linux-master/drivers/net/ethernet/samsung/sxgbe/ |
H A D | sxgbe_main.c | 193 return queue->dirty_tx + tx_qsize - queue->cur_tx - 1; 426 tx_ring->cur_tx = 0; 746 while (tqueue->dirty_tx != tqueue->cur_tx) { 759 __func__, tqueue->cur_tx, tqueue->dirty_tx); 834 tx_ring->cur_tx = 0; 1314 entry = tqueue->cur_tx % tx_rsize; 1339 entry = (++tqueue->cur_tx) % tx_rsize; 1361 entry = (++tqueue->cur_tx) % tx_rsize; 1401 tqueue->cur_tx++; 1405 __func__, tqueue->cur_tx [all...] |
/linux-master/drivers/net/ethernet/adaptec/ |
H A D | starfire.c | 552 unsigned int cur_tx, dirty_tx, reap_tx; member in struct:netdev_private 1132 np->cur_rx = np->cur_tx = np->reap_tx = 0; 1190 if ((np->cur_tx - np->dirty_tx) + skb_num_frags(skb) * 2 > TX_RING_SIZE) { 1202 prev_tx = np->cur_tx; 1203 entry = np->cur_tx % TX_RING_SIZE; 1247 dev->name, np->cur_tx, np->dirty_tx, 1251 np->cur_tx += np->tx_info[entry].used_slots; 1255 np->cur_tx += np->tx_info[entry].used_slots; 1259 if (np->cur_tx % (TX_RING_SIZE / 2) == 0) 1272 if ((np->cur_tx [all...] |
/linux-master/tools/testing/selftests/net/ |
H A D | veth.sh | 89 local cur_tx=`ip netns exec $BASE$target ethtool -l $dev |\ 95 if [ "$cur_rx" = "$rx" -a "$cur_tx" = "$tx" -a "$cur_combined" = "n/a" ]; then 98 echo " fail rx:$rx:$cur_rx tx:$tx:$cur_tx combined:n/a:$cur_combined"
|