Home
last modified time | relevance | path

Searched refs:tx_cons (Results 1 – 14 of 14) sorted by relevance

/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_xdp.c128 u16 tx_cons = txr->tx_cons; in bnxt_tx_int_xdp() local
129 u16 last_tx_cons = tx_cons; in bnxt_tx_int_xdp()
135 while (RING_TX(bp, tx_cons) != tx_hw_cons) { in bnxt_tx_int_xdp()
136 tx_buf = &txr->tx_buf_ring[RING_TX(bp, tx_cons)]; in bnxt_tx_int_xdp()
151 last_tx_cons = tx_cons; in bnxt_tx_int_xdp()
155 tx_cons = NEXT_TX(tx_cons); in bnxt_tx_int_xdp()
156 tx_buf = &txr->tx_buf_ring[RING_TX(bp, tx_cons)]; in bnxt_tx_int_xdp()
160 bnxt_sched_reset_txr(bp, txr, tx_cons); in bnxt_tx_int_xdp()
163 tx_cons = NEXT_TX(tx_cons); in bnxt_tx_int_xdp()
167 WRITE_ONCE(txr->tx_cons, tx_cons); in bnxt_tx_int_xdp()
H A Dbnxt.h980 u16 tx_cons; member
2818 u32 used = READ_ONCE(txr->tx_prod) - READ_ONCE(txr->tx_cons); in bnxt_tx_avail()
H A Dbnxt.c422 txr->tx_cons, txr->tx_prod, curr); in bnxt_sched_reset_txr()
819 u16 cons = txr->tx_cons; in __bnxt_tx_int()
883 WRITE_ONCE(txr->tx_cons, cons); in __bnxt_tx_int()
899 if (txr->tx_hw_cons != RING_TX(bp, txr->tx_cons)) in bnxt_tx_int()
3052 tx_freed = (txr->tx_hw_cons - txr->tx_cons) & in __bnxt_poll_work()
5300 txr->tx_cons = 0; in bnxt_clear_ring_indices()
11551 txr->tx_cons = 0; in bnxt_tx_queue_start()
14031 txr->tx_cons); in bnxt_dump_tx_sw_state()
/linux/drivers/net/ethernet/altera/
H A Daltera_msgdma.c138 priv->tx_prod - priv->tx_cons - inuse - 1, 0); in msgdma_tx_completions()
143 ready = priv->tx_prod - priv->tx_cons - 1; in msgdma_tx_completions()
145 ready = priv->tx_prod - priv->tx_cons; in msgdma_tx_completions()
/linux/include/uapi/linux/
H A Dsmc_diag.h73 struct smc_diag_cursor tx_cons; /* sent consumer cursor */ member
/linux/drivers/net/ethernet/broadcom/
H A Db44.h365 u32 tx_prod, tx_cons; member
H A Db44.c77 (((BP)->tx_cons <= (BP)->tx_prod) ? \
78 (BP)->tx_cons + (BP)->tx_pending - (BP)->tx_prod : \
79 (BP)->tx_cons - (BP)->tx_prod - TX_RING_GAP(BP))
601 for (cons = bp->tx_cons; cons != cur; cons = NEXT_TX(cons)) { in b44_tx()
620 bp->tx_cons = cons; in b44_tx()
1271 bp->tx_prod = bp->tx_cons = 0; in b44_chip_reset()
H A Dcnic.h237 u16 tx_cons; member
H A Dcnic.c2955 u16 rx_cons, tx_cons; in cnic_chk_pkt_rings() local
2962 tx_cons = *cp->tx_cons_ptr; in cnic_chk_pkt_rings()
2963 if (cp->tx_cons != tx_cons || cp->rx_cons != rx_cons) { in cnic_chk_pkt_rings()
2967 cp->tx_cons = tx_cons; in cnic_chk_pkt_rings()
4557 cp->tx_cons = *cp->tx_cons_ptr; in cnic_init_bnx2_tx_ring()
H A Dtg3.c1052 if (sblk->idx[0].tx_consumer != tnapi->tx_cons) in tg3_has_work()
6510 tnapi->tx_prod, tnapi->tx_cons, tnapi->tx_pending, in tg3_dump_state()
6544 ((tnapi->tx_prod - tnapi->tx_cons) & (TG3_TX_RING_SIZE - 1)); in tg3_tx_avail()
6555 u32 sw_idx = tnapi->tx_cons; in tg3_tx()
6639 tnapi->tx_cons = sw_idx; in tg3_tx()
7194 if (tnapi->hw_status->idx[0].tx_consumer != tnapi->tx_cons) { in tg3_poll_work()
7276 if (likely(sblk->idx[0].tx_consumer == tnapi->tx_cons && in tg3_poll_msix()
8684 tnapi->tx_cons = 0; in tg3_init_rings()
9718 tp->napi[i].tx_cons = 0; in tg3_rings_reset()
9731 tp->napi[0].tx_cons = 0; in tg3_rings_reset()
[all …]
H A Dtg3.h3024 u32 tx_cons; member
H A Dbnx2.h6737 u16 tx_cons; member
/linux/drivers/net/ethernet/marvell/
H A Dsky2.c1114 sky2->tx_prod = sky2->tx_cons = 0; in tx_init()
1780 return (sky2->tx_prod - sky2->tx_cons) & (sky2->tx_ring_size - 1); in tx_inuse()
2009 for (idx = sky2->tx_cons; idx != done; in sky2_tx_complete()
2030 sky2->tx_cons = idx; in sky2_tx_complete()
2370 sky2->tx_cons, sky2->tx_prod, in sky2_tx_timeout()
4423 sky2->tx_cons, sky2->tx_prod, in sky2_debug_show()
H A Dsky2.h2226 u16 tx_cons; /* next le to check */ member