Lines Matching refs:order
28 static inline void __iommu_alloc_account(struct page *page, int order) in __iommu_alloc_account() argument
30 const long pgcnt = 1l << order; in __iommu_alloc_account()
41 static inline void __iommu_free_account(struct page *page, int order) in __iommu_free_account() argument
43 const long pgcnt = 1l << order; in __iommu_free_account()
56 static inline struct page *__iommu_alloc_pages(gfp_t gfp, int order) in __iommu_alloc_pages() argument
60 page = alloc_pages(gfp | __GFP_ZERO, order); in __iommu_alloc_pages()
64 __iommu_alloc_account(page, order); in __iommu_alloc_pages()
74 static inline void __iommu_free_pages(struct page *page, int order) in __iommu_free_pages() argument
79 __iommu_free_account(page, order); in __iommu_free_pages()
80 __free_pages(page, order); in __iommu_free_pages()
92 static inline void *iommu_alloc_pages_node(int nid, gfp_t gfp, int order) in iommu_alloc_pages_node() argument
94 struct page *page = alloc_pages_node(nid, gfp | __GFP_ZERO, order); in iommu_alloc_pages_node()
99 __iommu_alloc_account(page, order); in iommu_alloc_pages_node()
111 static inline void *iommu_alloc_pages(gfp_t gfp, int order) in iommu_alloc_pages() argument
113 struct page *page = __iommu_alloc_pages(gfp, order); in iommu_alloc_pages()
149 static inline void iommu_free_pages(void *virt, int order) in iommu_free_pages() argument
154 __iommu_free_pages(virt_to_page(virt), order); in iommu_free_pages()