/drivers/net/ethernet/stmicro/stmmac/ |
H A D | chain_mode.c | 35 unsigned int entry = priv->cur_tx % txsize; 53 entry = (++priv->cur_tx) % txsize;
|
H A D | ring_mode.c | 35 unsigned int entry = priv->cur_tx % txsize; 55 entry = (++priv->cur_tx) % txsize;
|
H A D | stmmac.h | 37 unsigned int cur_tx; member in struct:stmmac_priv
|
H A D | stmmac_main.c | 185 return priv->dirty_tx + priv->dma_tx_size - priv->cur_tx - 1; 493 priv->cur_tx = 0; 592 while (priv->dirty_tx != priv->cur_tx) { 616 priv->cur_tx, priv->dirty_tx); 685 if (priv->dirty_tx != priv->cur_tx) 735 priv->cur_tx = 0; 1113 entry = priv->cur_tx % txsize; 1151 entry = (++priv->cur_tx) % txsize; 1177 priv->cur_tx++; 1183 (priv->cur_tx [all...] |
/drivers/net/arcnet/ |
H A D | arcnet.c | 419 lp->cur_tx = lp->next_tx = -1; 607 ASTATUS(), lp->cur_tx, lp->next_tx, skb->len,skb->protocol); 688 BUGMSG(D_DURING, "go_tx: status=%Xh, intmask=%Xh, next_tx=%d, cur_tx=%d\n", 689 ASTATUS(), lp->intmask, lp->next_tx, lp->cur_tx); 691 if (lp->cur_tx != -1 || lp->next_tx == -1) 696 lp->cur_tx = lp->next_tx; 700 ACOMMAND(TXcmd | (lp->cur_tx << 3)); 727 ACOMMAND(NOTXcmd | (lp->cur_tx << 3)); 744 if (lp->cur_tx == -1) 851 if (lp->cur_tx ! [all...] |
H A D | arc-rawmode.c | 175 lp->next_tx, lp->cur_tx, bufnum);
|
H A D | capmode.c | 148 lp->next_tx, lp->cur_tx, bufnum);
|
/drivers/net/ethernet/amd/ |
H A D | ariadne.c | 91 int cur_tx, cur_rx; /* The next free ring entry */ member in struct:ariadne_private 124 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 692 lp->cur_rx = lp->cur_tx = 0; 750 DPRINTK( 2, ( "Ring data: dirty_tx %d cur_tx %d%s cur_rx %d\n", 751 lp->dirty_tx, lp->cur_tx, 817 entry = lp->cur_tx & TX_RING_MOD_MASK; 831 lp->cur_tx++; 832 while( lp->cur_tx >= TX_RING_SIZE && lp->dirty_tx >= TX_RING_SIZE ) { 833 lp->cur_tx -= TX_RING_SIZE; 887 while( dirty_tx < lp->cur_tx) { 923 if (lp->cur_tx [all...] |
H A D | lance.c | 248 int cur_rx, cur_tx; /* The next free ring entry */ member in struct:lance_private 867 lp->cur_rx = lp->cur_tx = 0; 931 printk (" Ring data dump: dirty_tx %d cur_tx %d%s cur_rx %d.", 932 lp->dirty_tx, lp->cur_tx, netif_queue_stopped(dev) ? " (full)" : "", 972 entry = lp->cur_tx & TX_RING_MOD_MASK; 1007 lp->cur_tx++; 1013 if ((lp->cur_tx - lp->dirty_tx) >= TX_RING_SIZE) 1052 while (dirty_tx < lp->cur_tx) { 1096 if (lp->cur_tx - dirty_tx >= TX_RING_SIZE) { 1098 dirty_tx, lp->cur_tx, [all...] |
/drivers/net/ethernet/ |
H A D | fealnx.c | 403 struct fealnx_desc *cur_tx; member in struct:netdev_private 1160 iowrite32(np->tx_ring_dma + ((char*)np->cur_tx - (char*)np->tx_ring), 1283 np->cur_tx = &np->tx_ring[0]; 1388 np->cur_tx = &np->tx_ring[0]; 1497 long tx_status = np->cur_tx->status; 1498 long tx_control = np->cur_tx->control; 1503 next = np->cur_tx->next_desc_logical; 1540 pci_unmap_single(np->pci_dev, np->cur_tx->buffer, 1541 np->cur_tx->skbuff->len, PCI_DMA_TODEVICE); 1542 dev_kfree_skb_irq(np->cur_tx [all...] |
H A D | ethoc.c | 183 * @cur_tx: last send buffer written 203 unsigned int cur_tx; member in struct:ethoc 297 dev->cur_tx = 0; 514 if (bd.stat & TX_BD_READY || (priv->dty_tx == priv->cur_tx)) { 525 (priv->dty_tx == priv->cur_tx)) 533 if ((priv->cur_tx - priv->dty_tx) <= (priv->num_tx / 2)) 860 entry = priv->cur_tx % priv->num_tx; 862 priv->cur_tx++; 880 if (priv->cur_tx == (priv->dty_tx + priv->num_tx)) {
|
/drivers/net/ethernet/dlink/ |
H A D | sundance.c | 389 unsigned int cur_tx, dirty_tx; member in struct:netdev_private 976 printk(KERN_DEBUG "cur_tx=%d(%02x) dirty_tx=%d(%02x)\n", 977 np->cur_tx, np->cur_tx % TX_RING_SIZE, 992 if (np->cur_tx - np->dirty_tx < TX_QUEUE_LEN - 4) { 1006 np->cur_rx = np->cur_tx = 0; 1054 &np->tx_ring[(np->cur_tx - 1) % TX_RING_SIZE]; 1057 for (; np->cur_tx - np->cur_task > 0; np->cur_task++) { 1082 entry = np->cur_tx % TX_RING_SIZE; 1095 /* Increment cur_tx befor [all...] |
H A D | dl2k.c | 552 np->cur_rx = np->cur_tx = 0; 615 entry = np->cur_tx % TX_RING_SIZE; 652 np->cur_tx = (np->cur_tx + 1) % TX_RING_SIZE; 653 if ((np->cur_tx - np->old_tx + TX_RING_SIZE) % TX_RING_SIZE 707 if (np->cur_tx != np->old_tx) 731 while (entry != np->cur_tx) { 759 ((np->cur_tx - np->old_tx + TX_RING_SIZE) % TX_RING_SIZE
|
/drivers/net/ethernet/packetengines/ |
H A D | yellowfin.c | 326 unsigned int cur_tx, dirty_tx; member in struct:yellowfin_private 694 yp->cur_tx, yp->dirty_tx, 719 if (yp->cur_tx - yp->dirty_tx < TX_QUEUE_SIZE) 733 yp->cur_rx = yp->cur_tx = 0; 822 "ownership" bit last, and only then increment cur_tx. */ 825 entry = yp->cur_tx % TX_RING_SIZE; 855 yp->cur_tx++; 863 yp->cur_tx++; 865 unsigned next_entry = yp->cur_tx % TX_RING_SIZE; 880 if (yp->cur_tx [all...] |
H A D | hamachi.c | 495 unsigned int cur_tx, dirty_tx; member in struct:hamachi_private 1005 for (; hmp->cur_tx - hmp->dirty_tx > 0; hmp->dirty_tx++) { 1119 hmp->cur_rx = hmp->cur_tx = 0; 1173 hmp->cur_rx = hmp->cur_tx = 0; 1228 printk(KERN_WARNING "%s: Hamachi transmit queue full at slot %d.\n",dev->name, hmp->cur_tx); 1242 entry = hmp->cur_tx % TX_RING_SIZE; 1264 hmp->cur_tx++; 1283 if ((hmp->cur_tx - hmp->dirty_tx) < (TX_RING_SIZE - 4)) 1292 dev->name, hmp->cur_tx, entry); 1337 for (; hmp->cur_tx [all...] |
/drivers/net/ethernet/3com/ |
H A D | 3c515.c | 310 unsigned int cur_rx, cur_tx; /* The next free ring entry */ member in struct:corkscrew_private 842 vp->cur_tx = vp->dirty_tx = 0; 980 vp->cur_tx); 1013 int entry = vp->cur_tx % TX_RING_SIZE; 1020 if (vp->cur_tx != 0) 1021 prev_entry = &vp->tx_ring[(vp->cur_tx - 1) % TX_RING_SIZE]; 1026 dev->name, vp->cur_tx); 1050 vp->cur_tx++; 1051 if (vp->cur_tx - vp->dirty_tx > TX_RING_SIZE - 1) 1175 while (lp->cur_tx [all...] |
/drivers/net/ethernet/nuvoton/ |
H A D | w90p910_ether.c | 166 unsigned int cur_tx; member in struct:w90p910_ether 487 ether->cur_tx = 0x0; 614 txbd = ðer->tdesc->desclist[ether->cur_tx]; 615 buffer = ether->tdesc->tran_buf[ether->cur_tx]; 632 if (++ether->cur_tx >= TX_DESC_SIZE) 633 ether->cur_tx = 0; 635 txbd = ðer->tdesc->desclist[ether->cur_tx]; 964 ether->cur_tx = 0x0;
|
/drivers/net/ethernet/smsc/ |
H A D | epic100.c | 272 unsigned int cur_tx, dirty_tx; member in struct:epic_private 800 dev->name, ep->cur_rx, ep->dirty_rx, ep->dirty_tx, ep->cur_tx); 895 printk(KERN_DEBUG "%s: Tx indices: dirty_tx %d, cur_tx %d.\n", 896 dev->name, ep->dirty_tx, ep->cur_tx); 920 ep->dirty_tx = ep->cur_tx = 0; 974 free_count = ep->cur_tx - ep->dirty_tx; 975 entry = ep->cur_tx % TX_RING_SIZE; 996 ep->cur_tx++; 1037 unsigned int dirty_tx, cur_tx; local 1043 cur_tx [all...] |
/drivers/net/ethernet/dec/tulip/ |
H A D | tulip_core.c | 335 tp->cur_rx = tp->cur_tx = 0; 368 tp->tx_buffers[tp->cur_tx].skb = NULL; 369 tp->tx_buffers[tp->cur_tx].mapping = mapping; 372 tp->tx_ring[tp->cur_tx].length = cpu_to_le32(0x08000000 | 192); 373 tp->tx_ring[tp->cur_tx].buffer1 = cpu_to_le32(mapping); 374 tp->tx_ring[tp->cur_tx].status = cpu_to_le32(DescOwned); 376 tp->cur_tx++; 676 entry = tp->cur_tx % TX_RING_SIZE; 684 if (tp->cur_tx - tp->dirty_tx < TX_RING_SIZE/2) {/* Typical path */ 686 } else if (tp->cur_tx [all...] |
H A D | interrupt.c | 582 for (dirty_tx = tp->dirty_tx; tp->cur_tx - dirty_tx > 0; 638 if (tp->cur_tx - dirty_tx > TX_RING_SIZE) { 641 dirty_tx, tp->cur_tx); 646 if (tp->cur_tx - dirty_tx < TX_RING_SIZE - 2)
|
H A D | winbond-840.c | 314 unsigned int cur_tx, dirty_tx; member in struct:netdev_private 838 np->tx_q_bytes = np->dirty_tx = np->cur_tx = 0; 951 np->cur_tx, np->dirty_tx, np->tx_full, np->tx_q_bytes); 1011 entry = np->cur_tx % TX_RING_SIZE; 1031 * increasing np->cur_tx and setting DescOwned: 1032 * - if np->cur_tx is increased first the interrupt 1037 * since the np->cur_tx was not yet increased. 1040 np->cur_tx++; 1049 if (np->cur_tx - np->dirty_tx > TX_QUEUE_LEN || 1059 np->cur_tx, entr [all...] |
/drivers/net/ethernet/freescale/fs_enet/ |
H A D | fs_enet-main.c | 499 fep->dirty_tx = fep->cur_tx = fep->tx_bd_base; 644 bdp = fep->cur_tx; 682 fep->cur_tx++; 684 fep->cur_tx = fep->tx_bd_base; 727 wake = fep->tx_free && !(CBDR_SC(fep->cur_tx) & BD_ENET_TX_READY);
|
/drivers/net/ethernet/natsemi/ |
H A D | sonic.c | 291 int entry = lp->cur_tx; 295 /* At this point, cur_tx is the index of a TD that is one of: 341 lp->cur_tx = entry; 686 lp->cur_tx = lp->next_tx = 0;
|
/drivers/net/ethernet/adaptec/ |
H A D | starfire.c | 573 unsigned int cur_tx, dirty_tx, reap_tx; member in struct:netdev_private 1175 np->cur_rx = np->cur_tx = np->reap_tx = 0; 1224 if ((np->cur_tx - np->dirty_tx) + skb_num_frags(skb) * 2 > TX_RING_SIZE) { 1236 entry = np->cur_tx % TX_RING_SIZE; 1274 dev->name, np->cur_tx, np->dirty_tx, 1278 np->cur_tx += np->tx_info[entry].used_slots; 1282 np->cur_tx += np->tx_info[entry].used_slots; 1286 if (np->cur_tx % (TX_RING_SIZE / 2) == 0) 1299 if ((np->cur_tx - np->dirty_tx) + 4 > TX_RING_SIZE) 1398 (np->cur_tx [all...] |