Lines Matching refs:tx_new
795 int tx_new, tx_old; /* TX descriptor ring pointers */ member
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)
1418 lp->tx_new = lp->tx_old = 0; in de4x5_sw_reset()
1440 if ((s32)le32_to_cpu(lp->tx_ring[lp->tx_new].status) >= 0) j=1; in de4x5_sw_reset()
1450 lp->tx_new = (lp->tx_new + 1) % lp->txRingSize; in de4x5_sw_reset()
1451 lp->tx_old = lp->tx_new; in de4x5_sw_reset()
1484 if (netif_queue_stopped(dev) || (u_long) lp->tx_skb[lp->tx_new] > 1) { in de4x5_queue_pkt()
1491 …e_stopped(dev), inl(DE4X5_IMR), inl(DE4X5_OMR), ((u_long) lp->tx_skb[lp->tx_new] > 1) ? "YES" : "N… in de4x5_queue_pkt()
1501 (u_long) lp->tx_skb[lp->tx_new] <= 1) { in de4x5_queue_pkt()
1508 lp->tx_new = (lp->tx_new + 1) % lp->txRingSize; in de4x5_queue_pkt()
1698 for (entry = lp->tx_old; entry != lp->tx_new; entry = lp->tx_old) { in de4x5_tx()
1898 int entry = (lp->tx_new ? lp->tx_new-1 : lp->txRingSize-1); in load_packet()
1901 lp->tx_ring[lp->tx_new].buf = cpu_to_le32(buf_dma); in load_packet()
1902 lp->tx_ring[lp->tx_new].des1 &= cpu_to_le32(TD_TER); in load_packet()
1903 lp->tx_ring[lp->tx_new].des1 |= cpu_to_le32(flags); in load_packet()
1904 lp->tx_skb[lp->tx_new] = skb; in load_packet()
1908 lp->tx_ring[lp->tx_new].status = cpu_to_le32(T_OWN); in load_packet()
1933 lp->tx_new = (lp->tx_new + 1) % lp->txRingSize; in set_multicast_list()
3558 lp->tmp = lp->tx_new; /* Remember the ring position */ in ping_media()
3560 lp->tx_new = (lp->tx_new + 1) % lp->txRingSize; in ping_media()
3707 lp->tx_new = lp->tx_old = 0; in de4x5_rst_desc_ring()
5392 lp->tx_new = (lp->tx_new + 1) % lp->txRingSize; in de4x5_ioctl()