Lines Matching refs:pages
141 if (ring->rx_hdr_pa.pages) { in xgbe_free_ring()
144 put_page(ring->rx_hdr_pa.pages); in xgbe_free_ring()
146 ring->rx_hdr_pa.pages = NULL; in xgbe_free_ring()
152 if (ring->rx_buf_pa.pages) { in xgbe_free_ring()
155 put_page(ring->rx_buf_pa.pages); in xgbe_free_ring()
157 ring->rx_buf_pa.pages = NULL; in xgbe_free_ring()
289 struct page *pages = NULL; in xgbe_alloc_pages() local
300 pages = alloc_pages_node(node, gfp, order); in xgbe_alloc_pages()
301 if (pages) in xgbe_alloc_pages()
308 if (!pages && (node != NUMA_NO_NODE)) { in xgbe_alloc_pages()
313 if (!pages) in xgbe_alloc_pages()
317 pages_dma = dma_map_page(pdata->dev, pages, 0, in xgbe_alloc_pages()
320 put_page(pages); in xgbe_alloc_pages()
324 pa->pages = pages; in xgbe_alloc_pages()
336 get_page(pa->pages); in xgbe_set_buffer_data()
349 pa->pages = NULL; in xgbe_set_buffer_data()
362 if (!ring->rx_hdr_pa.pages) { in xgbe_map_rx_buffer()
368 if (!ring->rx_buf_pa.pages) { in xgbe_map_rx_buffer()
490 if (rdata->rx.hdr.pa.pages) in xgbe_unmap_rdata()
491 put_page(rdata->rx.hdr.pa.pages); in xgbe_unmap_rdata()
493 if (rdata->rx.hdr.pa_unmap.pages) { in xgbe_unmap_rdata()
497 put_page(rdata->rx.hdr.pa_unmap.pages); in xgbe_unmap_rdata()
500 if (rdata->rx.buf.pa.pages) in xgbe_unmap_rdata()
501 put_page(rdata->rx.buf.pa.pages); in xgbe_unmap_rdata()
503 if (rdata->rx.buf.pa_unmap.pages) { in xgbe_unmap_rdata()
507 put_page(rdata->rx.buf.pa_unmap.pages); in xgbe_unmap_rdata()