Lines Matching refs:order_per_bit
61 if (align_order <= cma->order_per_bit) in cma_bitmap_aligned_mask()
63 return (1UL << (align_order - cma->order_per_bit)) - 1; in cma_bitmap_aligned_mask()
74 >> cma->order_per_bit; in cma_bitmap_aligned_offset()
80 return ALIGN(pages, 1UL << cma->order_per_bit) >> cma->order_per_bit; in cma_bitmap_pages_to_bits()
89 bitmap_no = (pfn - cma->base_pfn) >> cma->order_per_bit; in cma_clear_bitmap()
175 unsigned int order_per_bit, in cma_init_reserved_mem() argument
207 cma->order_per_bit = order_per_bit; in cma_init_reserved_mem()
237 phys_addr_t alignment, unsigned int order_per_bit, in cma_declare_contiguous_nid() argument
285 if (!IS_ALIGNED(size >> PAGE_SHIFT, 1 << order_per_bit)) in cma_declare_contiguous_nid()
370 ret = cma_init_reserved_mem(base, size, order_per_bit, name, res_cma); in cma_declare_contiguous_nid()
402 nr_part = nr_zero << cma->order_per_bit; in cma_debug_show_areas()
472 pfn = cma->base_pfn + (bitmap_no << cma->order_per_bit); in cma_alloc()