Lines Matching refs:rx_buffer
6839 static bool igb_can_reuse_rx_page(struct igb_rx_buffer *rx_buffer, in igb_can_reuse_rx_page() argument
6853 rx_buffer->page_offset ^= IGB_RX_BUFSZ; in igb_can_reuse_rx_page()
6856 rx_buffer->page_offset += truesize; in igb_can_reuse_rx_page()
6858 if (rx_buffer->page_offset > (PAGE_SIZE - IGB_RX_BUFSZ)) in igb_can_reuse_rx_page()
6886 struct igb_rx_buffer *rx_buffer, in igb_add_rx_frag() argument
6891 struct page *page = rx_buffer->page; in igb_add_rx_frag()
6892 unsigned char *va = page_address(page) + rx_buffer->page_offset; in igb_add_rx_frag()
6937 return igb_can_reuse_rx_page(rx_buffer, page, truesize); in igb_add_rx_frag()
6945 struct igb_rx_buffer *rx_buffer; in igb_fetch_rx_buffer() local
6948 rx_buffer = &rx_ring->rx_buffer_info[rx_ring->next_to_clean]; in igb_fetch_rx_buffer()
6949 page = rx_buffer->page; in igb_fetch_rx_buffer()
6954 rx_buffer->page_offset; in igb_fetch_rx_buffer()
6978 rx_buffer->dma, in igb_fetch_rx_buffer()
6979 rx_buffer->page_offset, in igb_fetch_rx_buffer()
6984 if (igb_add_rx_frag(rx_ring, rx_buffer, size, rx_desc, skb)) { in igb_fetch_rx_buffer()
6986 igb_reuse_rx_page(rx_ring, rx_buffer); in igb_fetch_rx_buffer()
6989 dma_unmap_page(rx_ring->dev, rx_buffer->dma, in igb_fetch_rx_buffer()
6994 rx_buffer->page = NULL; in igb_fetch_rx_buffer()