Lines Matching refs:tx_new

795     int tx_new, tx_old;                     /* TX descriptor ring pointers  */
882 ** The transmit ring full condition is described by the tx_old and tx_new
884 ** tx_old = tx_new Empty ring
885 ** tx_old = tx_new+1 Full ring
886 ** tx_old+txRingSize = tx_new+1 Full ring (wrapped condition)
888 #define TX_BUFFS_AVAIL ((lp->tx_old<=lp->tx_new)?\
889 lp->tx_old+lp->txRingSize-lp->tx_new-1:\
890 lp->tx_old -lp->tx_new-1)
892 #define TX_PKT_PENDING (lp->tx_old != lp->tx_new)
1419 lp->tx_new = lp->tx_old = 0;
1441 if ((s32)le32_to_cpu(lp->tx_ring[lp->tx_new].status) >= 0) j=1;
1451 lp->tx_new = (lp->tx_new + 1) % lp->txRingSize;
1452 lp->tx_old = lp->tx_new;
1485 if (netif_queue_stopped(dev) || (u_long) lp->tx_skb[lp->tx_new] > 1) {
1492 printk("%s: transmit busy, lost media or stale skb found:\n STS:%08x\n tbusy:%d\n IMR:%08x\n OMR:%08x\n Stale skb: %s\n",dev->name, inl(DE4X5_STS), netif_queue_stopped(dev), inl(DE4X5_IMR), inl(DE4X5_OMR), ((u_long) lp->tx_skb[lp->tx_new] > 1) ? "YES" : "NO");
1502 (u_long) lp->tx_skb[lp->tx_new] <= 1) {
1509 lp->tx_new = (lp->tx_new + 1) % lp->txRingSize;
1699 for (entry = lp->tx_old; entry != lp->tx_new; entry = lp->tx_old) {
1899 int entry = (lp->tx_new ? lp->tx_new-1 : lp->txRingSize-1);
1902 lp->tx_ring[lp->tx_new].buf = cpu_to_le32(buf_dma);
1903 lp->tx_ring[lp->tx_new].des1 &= cpu_to_le32(TD_TER);
1904 lp->tx_ring[lp->tx_new].des1 |= cpu_to_le32(flags);
1905 lp->tx_skb[lp->tx_new] = skb;
1909 lp->tx_ring[lp->tx_new].status = cpu_to_le32(T_OWN);
1934 lp->tx_new = (lp->tx_new + 1) % lp->txRingSize;
3559 lp->tmp = lp->tx_new; /* Remember the ring position */
3561 lp->tx_new = (lp->tx_new + 1) % lp->txRingSize;
3708 lp->tx_new = lp->tx_old = 0;
5406 lp->tx_new = (lp->tx_new + 1) % lp->txRingSize;