Home
last modified time | relevance | path

Searched refs:tx_old (Results 1 – 24 of 24) sorted by relevance

/linux-2.6.39/drivers/net/
D7990.h109 int rx_old, tx_old; member
237 #define TX_BUFFS_AVAIL ((lp->tx_old<=lp->tx_new)?\
238 lp->tx_old+lp->tx_ring_mod_mask-lp->tx_new:\
239 lp->tx_old - lp->tx_new-1)
Dsunbmac.h276 (((bp)->tx_old <= (bp)->tx_new) ? \
277 (bp)->tx_old + (TX_RING_SIZE - 1) - (bp)->tx_new : \
278 (bp)->tx_old - (bp)->tx_new - 1)
318 int rx_new, tx_new, rx_old, tx_old; member
Dsunqe.h299 (((qp)->tx_old <= (qp)->tx_new) ? \
300 (qp)->tx_old + (TX_RING_SIZE - 1) - (qp)->tx_new : \
301 (qp)->tx_old - (qp)->tx_new - 1)
340 int tx_new, tx_old; /* TX ring extents */ member
Dsgiseeq.c52 #define TX_BUFFS_AVAIL(sp) ((sp->tx_old <= sp->tx_new) ? \
53 sp->tx_old + (SEEQ_TX_BUFFERS - 1) - sp->tx_new : \
54 sp->tx_old - sp->tx_new - 1)
103 unsigned int rx_old, tx_old; member
185 sp->rx_old = sp->tx_old = 0; in seeq_init_ring()
275 gpriv->rx_new, gpriv->rx_old, gpriv->tx_new, gpriv->tx_old); in sgiseeq_dump_rings()
430 int i = sp->tx_old; in kick_tx()
473 for (j = sp->tx_old; j != sp->tx_new; j = NEXT_TX(j)) { in sgiseeq_tx()
487 sp->tx_old = NEXT_TX(sp->tx_old); in sgiseeq_tx()
514 if (sp->tx_old != sp->tx_new) in sgiseeq_interrupt()
[all …]
Dsunhme.h365 (((hp)->tx_old <= (hp)->tx_new) ? \
366 (hp)->tx_old + (TX_RING_SIZE - 1) - (hp)->tx_new : \
367 (hp)->tx_old - (hp)->tx_new - 1)
419 int rx_new, tx_new, rx_old, tx_old; member
Da2065.c116 int rx_old, tx_old; member
132 #define TX_BUFFS_AVAIL ((lp->tx_old<=lp->tx_new)?\
133 lp->tx_old+lp->tx_ring_mod_mask-lp->tx_new:\
134 lp->tx_old - lp->tx_new-1)
175 lp->rx_old = lp->tx_old = 0; in lance_init_ring()
351 j = lp->tx_old; in lance_tx()
417 lp->tx_old = j; in lance_tx()
641 if (lp->tx_old != lp->tx_new) { in lance_set_multicast()
Dsungem.h933 (((GP)->tx_old <= (GP)->tx_new) ? \
934 (GP)->tx_old + (TX_RING_SIZE - 1) - (GP)->tx_new : \
935 (GP)->tx_old - (GP)->tx_new - 1)
980 int tx_new, tx_old; member
Ddepca.c488 int rx_old, tx_old; /* The ring entries to be free()ed. */ member
512 #define TX_BUFFS_AVAIL ((lp->tx_old<=lp->tx_new)?\
513 lp->tx_old+lp->txRingMask-lp->tx_new:\
514 lp->tx_old -lp->tx_new-1)
885 lp->rx_old = lp->tx_old = 0; in depca_init_ring()
1123 for (entry = lp->tx_old; entry != lp->tx_new; entry = lp->tx_old) { in depca_tx()
1151 lp->tx_old = (lp->tx_old + 1) & lp->txRingMask; in depca_tx()
1246 while (lp->tx_old != lp->tx_new); /* Wait for the ring to empty */ in set_multicast_list()
1947 while (lp->tx_old != lp->tx_new) in depca_ioctl()
1961 while (lp->tx_old != lp->tx_new) in depca_ioctl()
[all …]
Dsunlance.c251 int rx_old, tx_old; member
273 #define TX_BUFFS_AVAIL ((lp->tx_old<=lp->tx_new)?\
274 lp->tx_old+TX_RING_MOD_MASK-lp->tx_new:\
275 lp->tx_old - lp->tx_new-1)
333 lp->rx_old = lp->tx_old = 0; in lance_init_ring_dvma()
389 lp->rx_old = lp->tx_old = 0; in lance_init_ring_pio()
578 j = lp->tx_old; in lance_tx_dvma()
641 lp->tx_old = j; in lance_tx_dvma()
748 j = lp->tx_old; in lance_tx_pio()
811 lp->tx_old = j; in lance_tx_pio()
[all …]
Ddeclance.c259 int rx_old, tx_old; member
274 #define TX_BUFFS_AVAIL ((lp->tx_old<=lp->tx_new)?\
275 lp->tx_old+TX_RING_MOD_MASK-lp->tx_new:\
276 lp->tx_old - lp->tx_new-1)
453 lp->rx_old = lp->tx_old = 0; in lance_init_ring()
647 j = lp->tx_old; in lance_tx()
712 lp->tx_old = j; in lance_tx()
983 if (lp->tx_old != lp->tx_new) { in lance_set_multicast()
D7990.c149 lp->rx_old = lp->tx_old = 0; in lance_init_ring()
365 j = lp->tx_old; in lance_tx()
430 lp->tx_old = j; in lance_tx()
635 while (lp->tx_old != lp->tx_new) in lance_set_multicast()
Dcassini.h2761 int tx_new[N_TX_RINGS], tx_old[N_TX_RINGS]; member
2888 #define TX_BUFFS_AVAIL(cp, i) ((cp)->tx_old[(i)] <= (cp)->tx_new[(i)] ? \
2889 (cp)->tx_old[(i)] + (TX_DESC_RINGN_SIZE(i) - 1) - (cp)->tx_new[(i)] : \
2890 (cp)->tx_old[(i)] - (cp)->tx_new[(i)] - 1)
Dmyri_sbus.h279 int tx_old; /* To speed up tx cleaning. */ member
Dsunqe.c131 qep->rx_new = qep->rx_old = qep->tx_new = qep->tx_old = 0; in qe_init_rings()
537 int elem = qep->tx_old; in qe_tx_reclaim()
546 qep->tx_old = elem; in qe_tx_reclaim()
Dsunbmac.c222 bp->rx_new = bp->rx_old = bp->tx_new = bp->tx_old = 0; in bigmac_init_rings()
767 elem = bp->tx_old; in bigmac_tx()
792 bp->tx_old = elem; in bigmac_tx()
Dmyri_sbus.c274 mp->tx_old = 0; in myri_clean_rings()
358 int entry = mp->tx_old; in myri_tx()
377 mp->tx_old = entry; in myri_tx()
Dsunhme.c100 int tx_new, tx_old; member
120 tlp->tx_old = hp->tx_old; in tx_add_log()
134 tx_log[this].tx_new, tx_log[this].tx_old, in tx_dump_log()
1257 hp->rx_new = hp->rx_old = hp->tx_new = hp->tx_old = 0; in happy_meal_init_rings()
1928 elem = hp->tx_old; in happy_meal_tx()
1970 hp->tx_old = elem; in happy_meal_tx()
Dcassini.c1867 entry = cp->tx_old[ring]; in cas_tx_ringN()
1917 cp->tx_old[ring] = entry; in cas_tx_ringN()
1949 if (cp->tx_old[ring] != limit) in cas_tx()
3975 memset(cp->tx_old, 0, sizeof(*cp->tx_old)*N_TX_RINGS); in cas_clean_rings()
Dsungem.c657 entry = gp->tx_old; in gem_tx()
702 gp->tx_old = entry; in gem_tx()
1645 gp->rx_new = gp->rx_old = gp->tx_new = gp->tx_old = 0; in gem_init_rings()
/linux-2.6.39/drivers/net/pch_gbe/
Dpch_gbe_ethtool.c293 struct pch_gbe_tx_ring *txdr, *tx_old; in pch_gbe_set_ringparam() local
305 tx_old = adapter->tx_ring; in pch_gbe_set_ringparam()
341 adapter->tx_ring = tx_old; in pch_gbe_set_ringparam()
344 kfree(tx_old); in pch_gbe_set_ringparam()
350 pch_gbe_free_tx_resources(adapter, tx_old); in pch_gbe_set_ringparam()
351 kfree(tx_old); in pch_gbe_set_ringparam()
364 adapter->tx_ring = tx_old; in pch_gbe_set_ringparam()
/linux-2.6.39/drivers/net/ixgb/
Dixgb_ethtool.c560 struct ixgb_desc_ring tx_old, tx_new, rx_old, rx_new; in ixgb_set_ringparam() local
563 tx_old = adapter->tx_ring; in ixgb_set_ringparam()
593 adapter->tx_ring = tx_old; in ixgb_set_ringparam()
608 adapter->tx_ring = tx_old; in ixgb_set_ringparam()
/linux-2.6.39/drivers/net/e1000e/
Dethtool.c668 struct e1000_ring *tx_ring, *tx_old; in e1000_set_ringparam() local
681 tx_old = adapter->tx_ring; in e1000_set_ringparam()
685 tx_ring = kmemdup(tx_old, sizeof(struct e1000_ring), GFP_KERNEL); in e1000_set_ringparam()
718 adapter->tx_ring = tx_old; in e1000_set_ringparam()
721 kfree(tx_old); in e1000_set_ringparam()
736 adapter->tx_ring = tx_old; in e1000_set_ringparam()
/linux-2.6.39/drivers/net/e1000/
De1000_ethtool.c618 struct e1000_tx_ring *txdr, *tx_old; in e1000_set_ringparam() local
631 tx_old = adapter->tx_ring; in e1000_set_ringparam()
674 adapter->tx_ring = tx_old; in e1000_set_ringparam()
677 kfree(tx_old); in e1000_set_ringparam()
692 adapter->tx_ring = tx_old; in e1000_set_ringparam()
/linux-2.6.39/drivers/net/tulip/
Dde4x5.c795 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)
1419 lp->tx_new = lp->tx_old = 0; in de4x5_sw_reset()
1452 lp->tx_old = lp->tx_new; in de4x5_sw_reset()
1699 for (entry = lp->tx_old; entry != lp->tx_new; entry = lp->tx_old) { in de4x5_tx()
1729 lp->tx_old = (lp->tx_old + 1) % lp->txRingSize; in de4x5_tx()
3718 lp->tx_new = lp->tx_old = 0; in de4x5_rst_desc_ring()