Lines Matching refs:rxbufs
113 rx_ring->rxbufs[wr_idx] = rx_ring->rxbufs[last_idx]; in nfp_net_rx_ring_reset()
114 memset(&rx_ring->rxbufs[last_idx], 0, sizeof(*rx_ring->rxbufs)); in nfp_net_rx_ring_reset()
145 if (!rx_ring->rxbufs[i].frag) in nfp_net_rx_ring_bufs_free()
148 nfp_net_dma_unmap_rx(dp, rx_ring->rxbufs[i].dma_addr); in nfp_net_rx_ring_bufs_free()
149 nfp_net_free_frag(rx_ring->rxbufs[i].frag, dp->xdp_prog); in nfp_net_rx_ring_bufs_free()
150 rx_ring->rxbufs[i].dma_addr = 0; in nfp_net_rx_ring_bufs_free()
151 rx_ring->rxbufs[i].frag = NULL; in nfp_net_rx_ring_bufs_free()
164 struct nfp_net_rx_buf *rxbufs; in nfp_net_rx_ring_bufs_alloc() local
170 rxbufs = rx_ring->rxbufs; in nfp_net_rx_ring_bufs_alloc()
173 rxbufs[i].frag = nfp_net_rx_alloc_one(dp, &rxbufs[i].dma_addr); in nfp_net_rx_ring_bufs_alloc()
174 if (!rxbufs[i].frag) { in nfp_net_rx_ring_bufs_alloc()
262 kvfree(rx_ring->rxbufs); in nfp_net_rx_ring_free()
269 rx_ring->rxbufs = NULL; in nfp_net_rx_ring_free()
295 rxbuf_sw_desc_sz = sizeof(*rx_ring->rxbufs); in nfp_net_rx_ring_alloc()
326 rx_ring->rxbufs = kvcalloc(rx_ring->cnt, rxbuf_sw_desc_sz, in nfp_net_rx_ring_alloc()
328 if (!rx_ring->rxbufs) in nfp_net_rx_ring_alloc()