Lines Matching full:alignment
185 /* ensure minimal alignment required by mm core */ in cma_init_reserved_mem()
215 * @alignment: Alignment for the CMA area, should be power of 2 or zero
232 phys_addr_t alignment, unsigned int order_per_bit, in cma_declare_contiguous_nid() argument
247 pr_debug("%s(size %pa, base %pa, limit %pa alignment %pa)\n", in cma_declare_contiguous_nid()
248 __func__, &size, &base, &limit, &alignment); in cma_declare_contiguous_nid()
258 if (alignment && !is_power_of_2(alignment)) in cma_declare_contiguous_nid()
265 alignment = max_t(phys_addr_t, alignment, CMA_MIN_ALIGNMENT_BYTES); in cma_declare_contiguous_nid()
266 if (fixed && base & (alignment - 1)) { in cma_declare_contiguous_nid()
269 &base, &alignment); in cma_declare_contiguous_nid()
272 base = ALIGN(base, alignment); in cma_declare_contiguous_nid()
273 size = ALIGN(size, alignment); in cma_declare_contiguous_nid()
274 limit &= ~(alignment - 1); in cma_declare_contiguous_nid()
330 addr = memblock_alloc_range_nid(size, alignment, SZ_4G, in cma_declare_contiguous_nid()
343 addr = memblock_alloc_range_nid(size, alignment, in cma_declare_contiguous_nid()
349 addr = memblock_alloc_range_nid(size, alignment, base, in cma_declare_contiguous_nid()
509 * @align: Requested alignment of pages (in PAGE_SIZE order).