Lines Matching refs:page
157 struct page *page; in __dma_alloc_coherent() local
198 page = alloc_pages(gfp, order); in __dma_alloc_coherent()
199 if (!page) in __dma_alloc_coherent()
207 unsigned long kaddr = (unsigned long)page_address(page); in __dma_alloc_coherent()
208 memset(page_address(page), 0, size); in __dma_alloc_coherent()
219 struct page *end = page + (1 << order); in __dma_alloc_coherent()
221 split_page(page, order); in __dma_alloc_coherent()
226 *handle = page_to_phys(page); in __dma_alloc_coherent()
229 SetPageReserved(page); in __dma_alloc_coherent()
230 map_page(vaddr, page_to_phys(page), in __dma_alloc_coherent()
232 page++; in __dma_alloc_coherent()
239 while (page < end) { in __dma_alloc_coherent()
240 __free_page(page); in __dma_alloc_coherent()
241 page++; in __dma_alloc_coherent()
247 if (page) in __dma_alloc_coherent()
248 __free_pages(page, order); in __dma_alloc_coherent()
290 struct page *page = pfn_to_page(pfn); in __dma_free_coherent() local
291 __free_reserved_page(page); in __dma_free_coherent()
355 static inline void __dma_sync_page_highmem(struct page *page, in __dma_sync_page_highmem() argument
367 start = (unsigned long)kmap_atomic(page + seg_nr) + seg_offset; in __dma_sync_page_highmem()
390 void __dma_sync_page(struct page *page, unsigned long offset, in __dma_sync_page() argument
394 __dma_sync_page_highmem(page, offset, size, direction); in __dma_sync_page()
396 unsigned long start = (unsigned long)page_address(page) + offset; in __dma_sync_page()