Lines Matching refs:page
42 struct page *page, *end, *free; in consistent_alloc() local
53 page = alloc_pages(gfp, order); in consistent_alloc()
54 if (!page) in consistent_alloc()
57 *dma_handle = page_to_bus(page); in consistent_alloc()
58 ret = __ioremap(page_to_pfn(page) << PAGE_SHIFT, size, 0); in consistent_alloc()
64 void *virt = page_address(page); in consistent_alloc()
81 free = page + (size >> PAGE_SHIFT); in consistent_alloc()
82 end = page + (1 << order); in consistent_alloc()
84 for (; page < end; page++) { in consistent_alloc()
85 set_page_count(page, 1); in consistent_alloc()
86 if (page >= free) in consistent_alloc()
87 __free_page(page); in consistent_alloc()
89 SetPageReserved(page); in consistent_alloc()
94 __free_pages(page, order); in consistent_alloc()
118 struct page *page, *end; in consistent_free() local
128 page = virt_to_page(bus_to_virt(handle)); in consistent_free()
129 end = page + (size >> PAGE_SHIFT); in consistent_free()
131 for (; page < end; page++) in consistent_free()
132 ClearPageReserved(page); in consistent_free()