Lines Matching refs:page
574 static struct page *alloc_dma_pages(gfp_t gfp, size_t bytes, u64 phys_limit) in alloc_dma_pages()
577 struct page *page; in alloc_dma_pages() local
581 page = alloc_pages(gfp, order); in alloc_dma_pages()
582 if (!page) in alloc_dma_pages()
585 paddr = page_to_phys(page); in alloc_dma_pages()
587 __free_pages(page, order); in alloc_dma_pages()
594 return page; in alloc_dma_pages()
599 __free_pages(page, order); in alloc_dma_pages()
612 static struct page *swiotlb_alloc_tlb(struct device *dev, size_t bytes, in swiotlb_alloc_tlb()
615 struct page *page; in swiotlb_alloc_tlb() local
637 while (IS_ERR(page = alloc_dma_pages(gfp, bytes, phys_limit))) { in swiotlb_alloc_tlb()
649 return page; in swiotlb_alloc_tlb()
689 struct page *tlb; in swiotlb_alloc_pool()
897 struct page *page; in swiotlb_bounce() local
905 page = pfn_to_page(pfn); in swiotlb_bounce()
907 memcpy_from_page(vaddr, page, offset, sz); in swiotlb_bounce()
909 memcpy_to_page(page, offset, vaddr, sz); in swiotlb_bounce()
1751 struct page *swiotlb_alloc(struct device *dev, size_t size) in swiotlb_alloc()
1778 bool swiotlb_free(struct device *dev, struct page *page, size_t size) in swiotlb_free() argument
1780 phys_addr_t tlb_addr = page_to_phys(page); in swiotlb_free()