Lines Matching full:order
26 * @order: order of the page
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()
39 * @order: order of the page
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()
50 * __iommu_alloc_pages - allocate a zeroed page of a given order.
52 * @order: page order
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()
70 * __iommu_free_pages - free page of a given order
72 * @order: page order
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()
84 * iommu_alloc_pages_node - allocate a zeroed page of a given order from
88 * @order: page order
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()
105 * iommu_alloc_pages - allocate a zeroed page of a given order
107 * @order: page order
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()
145 * iommu_free_pages - free page of a given order
147 * @order: page order
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()