Searched refs:rxpage (Results 1 – 2 of 2) sorted by relevance
163 static inline void *aq_buf_vaddr(struct aq_rxpage *rxpage) in aq_buf_vaddr() argument165 return page_to_virt(rxpage->page) + rxpage->pg_off; in aq_buf_vaddr()168 static inline dma_addr_t aq_buf_daddr(struct aq_rxpage *rxpage) in aq_buf_daddr() argument170 return rxpage->daddr + rxpage->pg_off; in aq_buf_daddr()
41 static inline void aq_free_rxpage(struct aq_rxpage *rxpage, struct device *dev) in aq_free_rxpage() argument43 unsigned int len = PAGE_SIZE << rxpage->order; in aq_free_rxpage()45 dma_unmap_page(dev, rxpage->daddr, len, DMA_FROM_DEVICE); in aq_free_rxpage()48 __free_pages(rxpage->page, rxpage->order); in aq_free_rxpage()49 rxpage->page = NULL; in aq_free_rxpage()52 static int aq_alloc_rxpages(struct aq_rxpage *rxpage, struct aq_ring_s *rx_ring) in aq_alloc_rxpages() argument70 rxpage->page = page; in aq_alloc_rxpages()71 rxpage->daddr = daddr; in aq_alloc_rxpages()72 rxpage->order = order; in aq_alloc_rxpages()73 rxpage->pg_off = rx_ring->page_offset; in aq_alloc_rxpages()