Lines Matching full:order
27 struct folio *hugetlb_cma_alloc_frozen_folio(int order, gfp_t gfp_mask, in hugetlb_cma_alloc_frozen_folio() argument
38 page = cma_alloc_frozen_compound(hugetlb_cma[nid], order); in hugetlb_cma_alloc_frozen_folio()
45 page = cma_alloc_frozen_compound(hugetlb_cma[node], order); in hugetlb_cma_alloc_frozen_folio()
145 unsigned long size, reserved, per_node, order; in hugetlb_cma_reserve() local
152 order = arch_hugetlb_cma_order(); in hugetlb_cma_reserve()
153 if (!order) { in hugetlb_cma_reserve()
164 VM_WARN_ON(order <= MAX_PAGE_ORDER); in hugetlb_cma_reserve()
179 if (hugetlb_cma_size_in_node[nid] < (PAGE_SIZE << order)) { in hugetlb_cma_reserve()
181 nid, (PAGE_SIZE << order) / SZ_1M); in hugetlb_cma_reserve()
193 if (hugetlb_cma_size < (PAGE_SIZE << order)) { in hugetlb_cma_reserve()
195 (PAGE_SIZE << order) / SZ_1M); in hugetlb_cma_reserve()
207 per_node = round_up(per_node, PAGE_SIZE << order); in hugetlb_cma_reserve()
226 size = round_up(size, PAGE_SIZE << order); in hugetlb_cma_reserve()
230 * Note that 'order per bit' is based on smallest size that in hugetlb_cma_reserve()
234 res = cma_declare_contiguous_multi(size, PAGE_SIZE << order, in hugetlb_cma_reserve()