• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/net/tulip/

Lines Matching defs: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)
1421 lp->tx_new = lp->tx_old = 0;
1443 if ((s32)le32_to_cpu(lp->tx_ring[lp->tx_new].status) >= 0) j=1;
1453 lp->tx_new = (++lp->tx_new) % lp->txRingSize;
1454 lp->tx_old = lp->tx_new;
1487 if (netif_queue_stopped(dev) || (u_long) lp->tx_skb[lp->tx_new] > 1) {
1494 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");
1504 (u_long) lp->tx_skb[lp->tx_new] <= 1) {
1511 lp->tx_new = (++lp->tx_new) % lp->txRingSize;
1701 for (entry = lp->tx_old; entry != lp->tx_new; entry = lp->tx_old) {
1902 int entry = (lp->tx_new ? lp->tx_new-1 : lp->txRingSize-1);
1905 lp->tx_ring[lp->tx_new].buf = cpu_to_le32(buf_dma);
1906 lp->tx_ring[lp->tx_new].des1 &= cpu_to_le32(TD_TER);
1907 lp->tx_ring[lp->tx_new].des1 |= cpu_to_le32(flags);
1908 lp->tx_skb[lp->tx_new] = skb;
1912 lp->tx_ring[lp->tx_new].status = cpu_to_le32(T_OWN);
1937 lp->tx_new = (++lp->tx_new) % lp->txRingSize;
3571 lp->tmp = lp->tx_new; /* Remember the ring position */
3573 lp->tx_new = (++lp->tx_new) % lp->txRingSize;
3721 lp->tx_new = lp->tx_old = 0;
5423 lp->tx_new = (++lp->tx_new) % lp->txRingSize;