Lines Matching refs:bi

150 	struct ixgbe_rx_buffer *bi;  in ixgbe_alloc_rx_buffers_zc()  local
160 bi = &rx_ring->rx_buffer_info[i]; in ixgbe_alloc_rx_buffers_zc()
164 bi->xdp = xsk_buff_alloc(rx_ring->xsk_pool); in ixgbe_alloc_rx_buffers_zc()
165 if (!bi->xdp) { in ixgbe_alloc_rx_buffers_zc()
170 dma = xsk_buff_xdp_get_dma(bi->xdp); in ixgbe_alloc_rx_buffers_zc()
178 bi++; in ixgbe_alloc_rx_buffers_zc()
182 bi = rx_ring->rx_buffer_info; in ixgbe_alloc_rx_buffers_zc()
210 struct ixgbe_rx_buffer *bi) in ixgbe_construct_skb_zc() argument
212 unsigned int metasize = bi->xdp->data - bi->xdp->data_meta; in ixgbe_construct_skb_zc()
213 unsigned int datasize = bi->xdp->data_end - bi->xdp->data; in ixgbe_construct_skb_zc()
218 bi->xdp->data_end - bi->xdp->data_hard_start, in ixgbe_construct_skb_zc()
223 skb_reserve(skb, bi->xdp->data - bi->xdp->data_hard_start); in ixgbe_construct_skb_zc()
224 memcpy(__skb_put(skb, datasize), bi->xdp->data, datasize); in ixgbe_construct_skb_zc()
228 xsk_buff_free(bi->xdp); in ixgbe_construct_skb_zc()
229 bi->xdp = NULL; in ixgbe_construct_skb_zc()
255 struct ixgbe_rx_buffer *bi; in ixgbe_clean_rx_irq_zc() local
277 bi = &rx_ring->rx_buffer_info[rx_ring->next_to_clean]; in ixgbe_clean_rx_irq_zc()
283 xsk_buff_free(bi->xdp); in ixgbe_clean_rx_irq_zc()
284 bi->xdp = NULL; in ixgbe_clean_rx_irq_zc()
292 if (unlikely(bi->discard)) { in ixgbe_clean_rx_irq_zc()
293 xsk_buff_free(bi->xdp); in ixgbe_clean_rx_irq_zc()
294 bi->xdp = NULL; in ixgbe_clean_rx_irq_zc()
295 bi->discard = false; in ixgbe_clean_rx_irq_zc()
300 bi->xdp->data_end = bi->xdp->data + size; in ixgbe_clean_rx_irq_zc()
301 xsk_buff_dma_sync_for_cpu(bi->xdp, rx_ring->xsk_pool); in ixgbe_clean_rx_irq_zc()
302 xdp_res = ixgbe_run_xdp_zc(adapter, rx_ring, bi->xdp); in ixgbe_clean_rx_irq_zc()
308 xsk_buff_free(bi->xdp); in ixgbe_clean_rx_irq_zc()
310 bi->xdp = NULL; in ixgbe_clean_rx_irq_zc()
320 skb = ixgbe_construct_skb_zc(rx_ring, bi); in ixgbe_clean_rx_irq_zc()
368 struct ixgbe_rx_buffer *bi; in ixgbe_xsk_clean_rx_ring() local
372 bi = &rx_ring->rx_buffer_info[i]; in ixgbe_xsk_clean_rx_ring()
374 if (!bi->xdp) in ixgbe_xsk_clean_rx_ring()
377 xsk_buff_free(bi->xdp); in ixgbe_xsk_clean_rx_ring()
378 bi->xdp = NULL; in ixgbe_xsk_clean_rx_ring()