Searched refs:rxpage (Results 1 – 2 of 2) sorted by relevance
133 static inline void *aq_buf_vaddr(struct aq_rxpage *rxpage) in aq_buf_vaddr() argument135 return page_to_virt(rxpage->page) + rxpage->pg_off; in aq_buf_vaddr()138 static inline dma_addr_t aq_buf_daddr(struct aq_rxpage *rxpage) in aq_buf_daddr() argument140 return rxpage->daddr + rxpage->pg_off; in aq_buf_daddr()
17 static inline void aq_free_rxpage(struct aq_rxpage *rxpage, struct device *dev) in aq_free_rxpage() argument19 unsigned int len = PAGE_SIZE << rxpage->order; in aq_free_rxpage()21 dma_unmap_page(dev, rxpage->daddr, len, DMA_FROM_DEVICE); in aq_free_rxpage()24 __free_pages(rxpage->page, rxpage->order); in aq_free_rxpage()25 rxpage->page = NULL; in aq_free_rxpage()28 static int aq_get_rxpage(struct aq_rxpage *rxpage, unsigned int order, in aq_get_rxpage() argument45 rxpage->page = page; in aq_get_rxpage()46 rxpage->daddr = daddr; in aq_get_rxpage()47 rxpage->order = order; in aq_get_rxpage()48 rxpage->pg_off = 0; in aq_get_rxpage()