Lines Matching full:order
43 static inline u32 __alloc_dma_pages(int order) in __alloc_dma_pages() argument
49 pos = bitmap_find_free_region(dma_bitmap, dma_pages, order); in __alloc_dma_pages()
55 static void __free_dma_pages(u32 addr, int order) in __free_dma_pages() argument
60 if (addr < dma_base || (pos + (1 << order)) >= dma_pages) { in __free_dma_pages()
66 bitmap_release_region(dma_bitmap, pos, order); in __free_dma_pages()
79 int order; in arch_dma_alloc() local
84 order = get_count_order(((size - 1) >> PAGE_SHIFT) + 1); in arch_dma_alloc()
86 paddr = __alloc_dma_pages(order); in arch_dma_alloc()
95 memset(ret, 0, 1 << order); in arch_dma_alloc()
105 int order; in arch_dma_free() local
110 order = get_count_order(((size - 1) >> PAGE_SHIFT) + 1); in arch_dma_free()
112 __free_dma_pages(virt_to_phys(vaddr), order); in arch_dma_free()