Home
last modified time | relevance | path

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

/drivers/net/ethernet/amd/
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)
Da2065.c111 int rx_old, tx_old; member
160 lp->rx_old = lp->tx_old = 0; in lance_init_ring()
335 j = lp->tx_old; in lance_tx()
400 lp->tx_old = j; in lance_tx()
407 if (lp->tx_old <= lp->tx_new) in lance_tx_buffs_avail()
408 return lp->tx_old + lp->tx_ring_mod_mask - lp->tx_new; in lance_tx_buffs_avail()
409 return lp->tx_old - lp->tx_new - 1; in lance_tx_buffs_avail()
618 if (lp->tx_old != lp->tx_new) { in lance_set_multicast()
Dsunlance.c250 int rx_old, tx_old; member
272 #define TX_BUFFS_AVAIL ((lp->tx_old<=lp->tx_new)?\
273 lp->tx_old+TX_RING_MOD_MASK-lp->tx_new:\
274 lp->tx_old - lp->tx_new-1)
332 lp->rx_old = lp->tx_old = 0; in lance_init_ring_dvma()
388 lp->rx_old = lp->tx_old = 0; in lance_init_ring_pio()
575 j = lp->tx_old; in lance_tx_dvma()
638 lp->tx_old = j; in lance_tx_dvma()
743 j = lp->tx_old; in lance_tx_pio()
806 lp->tx_old = j; in lance_tx_pio()
[all …]
Ddeclance.c258 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)
458 lp->rx_old = lp->tx_old = 0; in lance_init_ring()
650 j = lp->tx_old; in lance_tx()
715 lp->tx_old = j; in lance_tx()
979 if (lp->tx_old != lp->tx_new) { in lance_set_multicast()
D7990.c148 lp->rx_old = lp->tx_old = 0; in lance_init_ring()
362 j = lp->tx_old; in lance_tx()
427 lp->tx_old = j; in lance_tx()
625 while (lp->tx_old != lp->tx_new) in lance_set_multicast()
/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_ethtool.c291 struct pch_gbe_tx_ring *txdr, *tx_old; in pch_gbe_set_ringparam() local
303 tx_old = adapter->tx_ring; in pch_gbe_set_ringparam()
339 adapter->tx_ring = tx_old; in pch_gbe_set_ringparam()
342 kfree(tx_old); in pch_gbe_set_ringparam()
348 pch_gbe_free_tx_resources(adapter, tx_old); in pch_gbe_set_ringparam()
349 kfree(tx_old); in pch_gbe_set_ringparam()
362 adapter->tx_ring = tx_old; in pch_gbe_set_ringparam()
/drivers/net/ethernet/sun/
Dsunbmac.h259 (((bp)->tx_old <= (bp)->tx_new) ? \
260 (bp)->tx_old + (TX_RING_SIZE - 1) - (bp)->tx_new : \
261 (bp)->tx_old - (bp)->tx_new - 1)
301 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
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
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)
978 int tx_new, tx_old; member
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)
Dsunqe.c130 qep->rx_new = qep->rx_old = qep->tx_new = qep->tx_old = 0; in qe_init_rings()
533 int elem = qep->tx_old; in qe_tx_reclaim()
542 qep->tx_old = elem; in qe_tx_reclaim()
Dsunhme.c99 int tx_new, tx_old; member
119 tlp->tx_old = hp->tx_old; in tx_add_log()
133 tx_log[this].tx_new, tx_log[this].tx_old, in tx_dump_log()
1255 hp->rx_new = hp->rx_old = hp->tx_new = hp->tx_old = 0; in happy_meal_init_rings()
1919 elem = hp->tx_old; in happy_meal_tx()
1961 hp->tx_old = elem; in happy_meal_tx()
Dsunbmac.c221 bp->rx_new = bp->rx_old = bp->tx_new = bp->tx_old = 0; in bigmac_init_rings()
765 elem = bp->tx_old; in bigmac_tx()
790 bp->tx_old = elem; in bigmac_tx()
Dsungem.c649 entry = gp->tx_old; in gem_tx()
694 gp->tx_old = entry; in gem_tx()
1625 gp->rx_new = gp->rx_old = gp->tx_new = gp->tx_old = 0; in gem_init_rings()
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()
3973 memset(cp->tx_old, 0, sizeof(*cp->tx_old)*N_TX_RINGS); in cas_clean_rings()
/drivers/net/ethernet/seeq/
Dsgiseeq.c53 #define TX_BUFFS_AVAIL(sp) ((sp->tx_old <= sp->tx_new) ? \
54 sp->tx_old + (SEEQ_TX_BUFFERS - 1) - sp->tx_new : \
55 sp->tx_old - sp->tx_new - 1)
104 unsigned int rx_old, tx_old; member
186 sp->rx_old = sp->tx_old = 0; in seeq_init_ring()
276 gpriv->rx_new, gpriv->rx_old, gpriv->tx_new, gpriv->tx_old); in sgiseeq_dump_rings()
429 int i = sp->tx_old; in kick_tx()
472 for (j = sp->tx_old; j != sp->tx_new; j = NEXT_TX(j)) { in sgiseeq_tx()
486 sp->tx_old = NEXT_TX(sp->tx_old); in sgiseeq_tx()
513 if (sp->tx_old != sp->tx_new) in sgiseeq_interrupt()
[all …]
/drivers/net/ethernet/intel/ixgb/
Dixgb_ethtool.c508 struct ixgb_desc_ring tx_old, tx_new, rx_old, rx_new; in ixgb_set_ringparam() local
511 tx_old = adapter->tx_ring; in ixgb_set_ringparam()
541 adapter->tx_ring = tx_old; in ixgb_set_ringparam()
556 adapter->tx_ring = tx_old; in ixgb_set_ringparam()
/drivers/net/ethernet/intel/e1000/
De1000_ethtool.c591 struct e1000_tx_ring *txdr, *tx_old; in e1000_set_ringparam() local
604 tx_old = adapter->tx_ring; in e1000_set_ringparam()
650 adapter->tx_ring = tx_old; in e1000_set_ringparam()
653 kfree(tx_old); in e1000_set_ringparam()
668 adapter->tx_ring = tx_old; in e1000_set_ringparam()
/drivers/net/ethernet/dec/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()
3709 lp->tx_new = lp->tx_old = 0; in de4x5_rst_desc_ring()