Lines Matching refs:rx_bi
693 if (!rx_ring->rx_bi) in iavf_clean_rx_ring()
703 struct iavf_rx_buffer *rx_bi = &rx_ring->rx_bi[i]; in iavf_clean_rx_ring() local
705 if (!rx_bi->page) in iavf_clean_rx_ring()
712 rx_bi->dma, in iavf_clean_rx_ring()
713 rx_bi->page_offset, in iavf_clean_rx_ring()
718 dma_unmap_page_attrs(rx_ring->dev, rx_bi->dma, in iavf_clean_rx_ring()
723 __page_frag_cache_drain(rx_bi->page, rx_bi->pagecnt_bias); in iavf_clean_rx_ring()
725 rx_bi->page = NULL; in iavf_clean_rx_ring()
726 rx_bi->page_offset = 0; in iavf_clean_rx_ring()
730 memset(rx_ring->rx_bi, 0, bi_size); in iavf_clean_rx_ring()
749 kfree(rx_ring->rx_bi); in iavf_free_rx_resources()
750 rx_ring->rx_bi = NULL; in iavf_free_rx_resources()
771 WARN_ON(rx_ring->rx_bi); in iavf_setup_rx_descriptors()
773 rx_ring->rx_bi = kzalloc(bi_size, GFP_KERNEL); in iavf_setup_rx_descriptors()
774 if (!rx_ring->rx_bi) in iavf_setup_rx_descriptors()
797 kfree(rx_ring->rx_bi); in iavf_setup_rx_descriptors()
798 rx_ring->rx_bi = NULL; in iavf_setup_rx_descriptors()
925 bi = &rx_ring->rx_bi[ntu]; in iavf_alloc_rx_buffers()
947 bi = rx_ring->rx_bi; in iavf_alloc_rx_buffers()
1166 new_buff = &rx_ring->rx_bi[nta]; in iavf_reuse_rx_page()
1288 rx_buffer = &rx_ring->rx_bi[rx_ring->next_to_clean]; in iavf_get_rx_buffer()