Lines Matching refs:pages
20 return area->pages; in dma_common_find_pages()
23 static struct vm_struct *__dma_common_pages_remap(struct page **pages, in __dma_common_pages_remap() argument
32 if (map_vm_area(area, prot, pages)) { in __dma_common_pages_remap()
44 void *dma_common_pages_remap(struct page **pages, size_t size, in dma_common_pages_remap() argument
49 area = __dma_common_pages_remap(pages, size, prot, caller); in dma_common_pages_remap()
53 area->pages = pages; in dma_common_pages_remap()
66 struct page **pages; in dma_common_contiguous_remap() local
69 pages = kmalloc(sizeof(struct page *) << get_order(size), GFP_KERNEL); in dma_common_contiguous_remap()
70 if (!pages) in dma_common_contiguous_remap()
74 pages[i] = nth_page(page, i); in dma_common_contiguous_remap()
76 area = __dma_common_pages_remap(pages, size, prot, caller); in dma_common_contiguous_remap()
78 kfree(pages); in dma_common_contiguous_remap()