Lines Matching refs:bi
652 struct i40e_rx_buffer *bi; in i40evf_alloc_rx_buffers_ps() local
660 bi = &rx_ring->rx_bi[i]; in i40evf_alloc_rx_buffers_ps()
662 if (bi->skb) /* desc is in use */ in i40evf_alloc_rx_buffers_ps()
664 if (!bi->page) { in i40evf_alloc_rx_buffers_ps()
665 bi->page = alloc_page(GFP_ATOMIC); in i40evf_alloc_rx_buffers_ps()
666 if (!bi->page) { in i40evf_alloc_rx_buffers_ps()
672 if (!bi->page_dma) { in i40evf_alloc_rx_buffers_ps()
674 bi->page_offset ^= PAGE_SIZE / 2; in i40evf_alloc_rx_buffers_ps()
675 bi->page_dma = dma_map_page(rx_ring->dev, in i40evf_alloc_rx_buffers_ps()
676 bi->page, in i40evf_alloc_rx_buffers_ps()
677 bi->page_offset, in i40evf_alloc_rx_buffers_ps()
681 bi->page_dma)) { in i40evf_alloc_rx_buffers_ps()
683 bi->page_dma = 0; in i40evf_alloc_rx_buffers_ps()
689 bi->dma, in i40evf_alloc_rx_buffers_ps()
696 rx_desc->read.pkt_addr = cpu_to_le64(bi->page_dma); in i40evf_alloc_rx_buffers_ps()
697 rx_desc->read.hdr_addr = cpu_to_le64(bi->dma); in i40evf_alloc_rx_buffers_ps()
717 struct i40e_rx_buffer *bi; in i40evf_alloc_rx_buffers_1buf() local
726 bi = &rx_ring->rx_bi[i]; in i40evf_alloc_rx_buffers_1buf()
727 skb = bi->skb; in i40evf_alloc_rx_buffers_1buf()
738 bi->skb = skb; in i40evf_alloc_rx_buffers_1buf()
741 if (!bi->dma) { in i40evf_alloc_rx_buffers_1buf()
742 bi->dma = dma_map_single(rx_ring->dev, in i40evf_alloc_rx_buffers_1buf()
746 if (dma_mapping_error(rx_ring->dev, bi->dma)) { in i40evf_alloc_rx_buffers_1buf()
748 bi->dma = 0; in i40evf_alloc_rx_buffers_1buf()
753 rx_desc->read.pkt_addr = cpu_to_le64(bi->dma); in i40evf_alloc_rx_buffers_1buf()