Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/net/ethernet/amd/
D7990.h108 int rx_old, tx_old; member
234 #define TX_BUFFS_AVAIL ((lp->tx_old <= lp->tx_new) ? \
235 lp->tx_old + lp->tx_ring_mod_mask - lp->tx_new : \
236 lp->tx_old - lp->tx_new - 1)
Da2065.c112 int rx_old, tx_old; member
158 lp->rx_old = lp->tx_old = 0; in lance_init_ring()
333 j = lp->tx_old; in lance_tx()
398 lp->tx_old = j; in lance_tx()
405 if (lp->tx_old <= lp->tx_new) in lance_tx_buffs_avail()
406 return lp->tx_old + lp->tx_ring_mod_mask - lp->tx_new; in lance_tx_buffs_avail()
407 return lp->tx_old - lp->tx_new - 1; in lance_tx_buffs_avail()
614 if (lp->tx_old != lp->tx_new) { in lance_set_multicast()
Dsunlance.c245 int rx_old, tx_old; member
267 #define TX_BUFFS_AVAIL ((lp->tx_old<=lp->tx_new)?\
268 lp->tx_old+TX_RING_MOD_MASK-lp->tx_new:\
269 lp->tx_old - lp->tx_new-1)
327 lp->rx_old = lp->tx_old = 0; in lance_init_ring_dvma()
383 lp->rx_old = lp->tx_old = 0; in lance_init_ring_pio()
570 j = lp->tx_old; in lance_tx_dvma()
633 lp->tx_old = j; in lance_tx_dvma()
738 j = lp->tx_old; in lance_tx_pio()
801 lp->tx_old = j; in lance_tx_pio()
[all …]
Ddeclance.c259 int rx_old, tx_old; member
275 #define TX_BUFFS_AVAIL ((lp->tx_old<=lp->tx_new)?\
276 lp->tx_old+TX_RING_MOD_MASK-lp->tx_new:\
277 lp->tx_old - lp->tx_new-1)
460 lp->rx_old = lp->tx_old = 0; in lance_init_ring()
652 j = lp->tx_old; in lance_tx()
717 lp->tx_old = j; in lance_tx()
981 if (lp->tx_old != lp->tx_new) { in lance_set_multicast()
D7990.c148 lp->rx_old = lp->tx_old = 0; in lance_init_ring()
367 j = lp->tx_old; in lance_tx()
435 lp->tx_old = j; in lance_tx()
635 while (lp->tx_old != lp->tx_new) in lance_set_multicast()
/kernel/linux/linux-5.10/drivers/net/ethernet/sun/
Dsunbmac.h260 (((bp)->tx_old <= (bp)->tx_new) ? \
261 (bp)->tx_old + (TX_RING_SIZE - 1) - (bp)->tx_new : \
262 (bp)->tx_old - (bp)->tx_new - 1)
302 int rx_new, tx_new, rx_old, tx_old; member
Dsunqe.h300 (((qp)->tx_old <= (qp)->tx_new) ? \
301 (qp)->tx_old + (TX_RING_SIZE - 1) - (qp)->tx_new : \
302 (qp)->tx_old - (qp)->tx_new - 1)
341 int tx_new, tx_old; /* TX ring extents */ member
Dsunhme.h366 (((hp)->tx_old <= (hp)->tx_new) ? \
367 (hp)->tx_old + (TX_RING_SIZE - 1) - (hp)->tx_new : \
368 (hp)->tx_old - (hp)->tx_new - 1)
420 int rx_new, tx_new, rx_old, tx_old; member
Dsungem.h934 (((GP)->tx_old <= (GP)->tx_new) ? \
935 (GP)->tx_old + (TX_RING_SIZE - 1) - (GP)->tx_new : \
936 (GP)->tx_old - (GP)->tx_new - 1)
979 int tx_new, tx_old; member
Dcassini.h2747 int tx_new[N_TX_RINGS], tx_old[N_TX_RINGS]; member
2874 #define TX_BUFFS_AVAIL(cp, i) ((cp)->tx_old[(i)] <= (cp)->tx_new[(i)] ? \
2875 (cp)->tx_old[(i)] + (TX_DESC_RINGN_SIZE(i) - 1) - (cp)->tx_new[(i)] : \
2876 (cp)->tx_old[(i)] - (cp)->tx_new[(i)] - 1)
Dsunqe.c131 qep->rx_new = qep->rx_old = qep->tx_new = qep->tx_old = 0; in qe_init_rings()
535 int elem = qep->tx_old; in qe_tx_reclaim()
544 qep->tx_old = elem; in qe_tx_reclaim()
Dsunbmac.c221 bp->rx_new = bp->rx_old = bp->tx_new = bp->tx_old = 0; in bigmac_init_rings()
764 elem = bp->tx_old; in bigmac_tx()
789 bp->tx_old = elem; in bigmac_tx()
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()
1925 elem = hp->tx_old; in happy_meal_tx()
1967 hp->tx_old = elem; in happy_meal_tx()
Dsungem.c635 entry = gp->tx_old; in gem_tx()
681 gp->tx_old = entry; in gem_tx()
1623 gp->rx_new = gp->rx_old = gp->tx_new = gp->tx_old = 0; in gem_init_rings()
Dcassini.c1833 entry = cp->tx_old[ring]; in cas_tx_ringN()
1883 cp->tx_old[ring] = entry; in cas_tx_ringN()
1915 if (cp->tx_old[ring] != limit) in cas_tx()
3941 memset(cp->tx_old, 0, sizeof(*cp->tx_old)*N_TX_RINGS); in cas_clean_rings()
/kernel/linux/linux-5.10/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
190 sp->rx_old = sp->tx_old = 0; in seeq_init_ring()
280 gpriv->rx_new, gpriv->rx_old, gpriv->tx_new, gpriv->tx_old); in sgiseeq_dump_rings()
435 int i = sp->tx_old; in kick_tx()
479 for (j = sp->tx_old; j != sp->tx_new; j = NEXT_TX(j)) { in sgiseeq_tx()
494 sp->tx_old = NEXT_TX(sp->tx_old); in sgiseeq_tx()
521 if (sp->tx_old != sp->tx_new) in sgiseeq_interrupt()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_ethtool.c297 struct pch_gbe_tx_ring *txdr, *tx_old; in pch_gbe_set_ringparam() local
309 tx_old = adapter->tx_ring; in pch_gbe_set_ringparam()
342 pch_gbe_free_tx_resources(adapter, tx_old); in pch_gbe_set_ringparam()
343 kfree(tx_old); in pch_gbe_set_ringparam()
355 adapter->tx_ring = tx_old; in pch_gbe_set_ringparam()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgb/
Dixgb_ethtool.c486 struct ixgb_desc_ring tx_old, tx_new, rx_old, rx_new; in ixgb_set_ringparam() local
489 tx_old = adapter->tx_ring; in ixgb_set_ringparam()
519 adapter->tx_ring = tx_old; in ixgb_set_ringparam()
534 adapter->tx_ring = tx_old; in ixgb_set_ringparam()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/e1000/
De1000_ethtool.c564 struct e1000_tx_ring *txdr, *tx_old; in e1000_set_ringparam() local
577 tx_old = adapter->tx_ring; in e1000_set_ringparam()
623 adapter->tx_ring = tx_old; in e1000_set_ringparam()
630 kfree(tx_old); in e1000_set_ringparam()
640 adapter->tx_ring = tx_old; in e1000_set_ringparam()
/kernel/linux/linux-5.10/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)
1415 lp->tx_new = lp->tx_old = 0; in de4x5_sw_reset()
1448 lp->tx_old = lp->tx_new; in de4x5_sw_reset()
1698 for (entry = lp->tx_old; entry != lp->tx_new; entry = lp->tx_old) { in de4x5_tx()
1728 lp->tx_old = (lp->tx_old + 1) % lp->txRingSize; in de4x5_tx()
3713 lp->tx_new = lp->tx_old = 0; in de4x5_rst_desc_ring()