Lines Matching refs:pa
286 struct xgbe_page_alloc *pa, int alloc_order, in xgbe_alloc_pages() argument
324 pa->pages = pages; in xgbe_alloc_pages()
325 pa->pages_len = PAGE_SIZE << order; in xgbe_alloc_pages()
326 pa->pages_offset = 0; in xgbe_alloc_pages()
327 pa->pages_dma = pages_dma; in xgbe_alloc_pages()
333 struct xgbe_page_alloc *pa, in xgbe_set_buffer_data() argument
336 get_page(pa->pages); in xgbe_set_buffer_data()
337 bd->pa = *pa; in xgbe_set_buffer_data()
339 bd->dma_base = pa->pages_dma; in xgbe_set_buffer_data()
340 bd->dma_off = pa->pages_offset; in xgbe_set_buffer_data()
343 pa->pages_offset += len; in xgbe_set_buffer_data()
344 if ((pa->pages_offset + len) > pa->pages_len) { in xgbe_set_buffer_data()
346 bd->pa_unmap = *pa; in xgbe_set_buffer_data()
349 pa->pages = NULL; in xgbe_set_buffer_data()
350 pa->pages_len = 0; in xgbe_set_buffer_data()
351 pa->pages_offset = 0; in xgbe_set_buffer_data()
352 pa->pages_dma = 0; in xgbe_set_buffer_data()
490 if (rdata->rx.hdr.pa.pages) in xgbe_unmap_rdata()
491 put_page(rdata->rx.hdr.pa.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()