Lines Matching refs:bi
708 struct i40e_rx_buffer *bi; in i40evf_alloc_rx_buffers_ps() local
716 bi = &rx_ring->rx_bi[i]; in i40evf_alloc_rx_buffers_ps()
718 if (bi->skb) /* desc is in use */ in i40evf_alloc_rx_buffers_ps()
720 if (!bi->page) { in i40evf_alloc_rx_buffers_ps()
721 bi->page = alloc_page(GFP_ATOMIC); in i40evf_alloc_rx_buffers_ps()
722 if (!bi->page) { in i40evf_alloc_rx_buffers_ps()
728 if (!bi->page_dma) { in i40evf_alloc_rx_buffers_ps()
730 bi->page_offset ^= PAGE_SIZE / 2; in i40evf_alloc_rx_buffers_ps()
731 bi->page_dma = dma_map_page(rx_ring->dev, in i40evf_alloc_rx_buffers_ps()
732 bi->page, in i40evf_alloc_rx_buffers_ps()
733 bi->page_offset, in i40evf_alloc_rx_buffers_ps()
737 bi->page_dma)) { in i40evf_alloc_rx_buffers_ps()
739 bi->page_dma = 0; in i40evf_alloc_rx_buffers_ps()
745 bi->dma, in i40evf_alloc_rx_buffers_ps()
752 rx_desc->read.pkt_addr = cpu_to_le64(bi->page_dma); in i40evf_alloc_rx_buffers_ps()
753 rx_desc->read.hdr_addr = cpu_to_le64(bi->dma); in i40evf_alloc_rx_buffers_ps()
773 struct i40e_rx_buffer *bi; in i40evf_alloc_rx_buffers_1buf() local
782 bi = &rx_ring->rx_bi[i]; in i40evf_alloc_rx_buffers_1buf()
783 skb = bi->skb; in i40evf_alloc_rx_buffers_1buf()
794 bi->skb = skb; in i40evf_alloc_rx_buffers_1buf()
797 if (!bi->dma) { in i40evf_alloc_rx_buffers_1buf()
798 bi->dma = dma_map_single(rx_ring->dev, in i40evf_alloc_rx_buffers_1buf()
802 if (dma_mapping_error(rx_ring->dev, bi->dma)) { in i40evf_alloc_rx_buffers_1buf()
804 bi->dma = 0; in i40evf_alloc_rx_buffers_1buf()
809 rx_desc->read.pkt_addr = cpu_to_le64(bi->dma); in i40evf_alloc_rx_buffers_1buf()