Lines Matching refs:txbufs
18 txbuf = &tx_ring->txbufs[idx]; in nfp_nfd3_xsk_tx_bufs_free()
53 tx_buf = &tx_ring->txbufs[idx]; in nfp_nfd3_tx_ring_reset()
55 skb = tx_ring->txbufs[idx].skb; in nfp_nfd3_tx_ring_reset()
106 kvfree(tx_ring->txbufs); in nfp_nfd3_tx_ring_free()
113 tx_ring->txbufs = NULL; in nfp_nfd3_tx_ring_free()
143 tx_ring->txbufs = kvcalloc(tx_ring->cnt, sizeof(*tx_ring->txbufs), in nfp_nfd3_tx_ring_alloc()
145 if (!tx_ring->txbufs) in nfp_nfd3_tx_ring_alloc()
169 if (!tx_ring->txbufs[i].frag) in nfp_nfd3_tx_ring_bufs_free()
172 nfp_net_dma_unmap_rx(dp, tx_ring->txbufs[i].dma_addr); in nfp_nfd3_tx_ring_bufs_free()
173 __free_page(virt_to_page(tx_ring->txbufs[i].frag)); in nfp_nfd3_tx_ring_bufs_free()
181 struct nfp_nfd3_tx_buf *txbufs = tx_ring->txbufs; in nfp_nfd3_tx_ring_bufs_alloc() local
188 txbufs[i].frag = nfp_net_rx_alloc_one(dp, &txbufs[i].dma_addr); in nfp_nfd3_tx_ring_bufs_alloc()
189 if (!txbufs[i].frag) { in nfp_nfd3_tx_ring_bufs_alloc()
218 skb = READ_ONCE(tx_ring->txbufs[i].skb); in nfp_nfd3_print_tx_descs()
223 xdp = READ_ONCE(tx_ring->txbufs[i].xdp); in nfp_nfd3_print_tx_descs()
228 if (tx_ring->txbufs[i].dma_addr) in nfp_nfd3_print_tx_descs()
230 &tx_ring->txbufs[i].dma_addr); in nfp_nfd3_print_tx_descs()