Lines Matching refs:txr
24 struct bnxt_tx_ring_info *txr, in bnxt_xmit_bd() argument
32 prod = txr->tx_prod; in bnxt_xmit_bd()
33 tx_buf = &txr->tx_buf_ring[prod]; in bnxt_xmit_bd()
35 txbd = &txr->tx_desc_ring[TX_RING(prod)][TX_IDX(prod)]; in bnxt_xmit_bd()
43 txr->tx_prod = prod; in bnxt_xmit_bd()
47 static void __bnxt_xmit_xdp(struct bnxt *bp, struct bnxt_tx_ring_info *txr, in __bnxt_xmit_xdp() argument
52 tx_buf = bnxt_xmit_bd(bp, txr, mapping, len); in __bnxt_xmit_xdp()
58 struct bnxt_tx_ring_info *txr, in __bnxt_xmit_xdp_redirect() argument
64 tx_buf = bnxt_xmit_bd(bp, txr, mapping, len); in __bnxt_xmit_xdp_redirect()
73 struct bnxt_tx_ring_info *txr = bnapi->tx_ring; in bnxt_tx_int_xdp() local
77 u16 tx_cons = txr->tx_cons; in bnxt_tx_int_xdp()
82 tx_buf = &txr->tx_buf_ring[tx_cons]; in bnxt_tx_int_xdp()
100 txr->tx_cons = tx_cons; in bnxt_tx_int_xdp()
102 tx_buf = &txr->tx_buf_ring[last_tx_cons]; in bnxt_tx_int_xdp()
115 struct bnxt_tx_ring_info *txr; in bnxt_rx_xdp() local
135 txr = rxr->bnapi->tx_ring; in bnxt_rx_xdp()
143 tx_avail = bnxt_tx_avail(bp, txr); in bnxt_rx_xdp()
169 __bnxt_xmit_xdp(bp, txr, mapping + offset, *len, in bnxt_rx_xdp()
216 struct bnxt_tx_ring_info *txr; in bnxt_xdp_xmit() local
228 txr = &bp->tx_ring[ring]; in bnxt_xdp_xmit()
233 if (!txr || !bnxt_tx_avail(bp, txr) || in bnxt_xdp_xmit()
243 __bnxt_xmit_xdp_redirect(bp, txr, mapping, xdp->len, xdp); in bnxt_xdp_xmit()
250 bnxt_db_write(bp, &txr->tx_db, txr->tx_prod); in bnxt_xdp_xmit()