Lines Matching defs:base
67 * Find the offset of the base PFN from the specified align_order.
157 * @base: Base address of the reserved area
167 int __init cma_init_reserved_mem(phys_addr_t base, phys_addr_t size,
181 if (!size || !memblock_is_region_reserved(base, size))
192 if (ALIGN(base, alignment) != base || ALIGN(size, alignment) != size)
206 cma->base_pfn = PFN_DOWN(base);
218 * @base: Base address of the reserved area optional, use 0 for any
233 * If @fixed is true, reserve contiguous area at exactly @base. If false,
234 * reserve in range from @base to @limit.
236 int __init cma_declare_contiguous_nid(phys_addr_t base,
253 pr_debug("%s(size %pa, base %pa, limit %pa alignment %pa)\n",
254 __func__, &size, &base, &limit, &alignment);
275 if (fixed && base & (alignment - 1)) {
278 &base, &alignment);
281 base = ALIGN(base, alignment);
285 if (!base)
293 * If allocating at a fixed base the request region must not cross the
296 if (fixed && base < highmem_start && base + size > highmem_start) {
299 &base, &highmem_start);
311 if (base + size > limit) {
314 &size, &base, &limit);
320 if (memblock_is_region_reserved(base, size) ||
321 memblock_reserve(base, size) < 0) {
334 if (base < highmem_start && limit > highmem_start) {
341 addr = memblock_alloc_range_nid(size, alignment, base,
354 base = addr;
357 ret = cma_init_reserved_mem(base, size, order_per_bit, name, res_cma);
362 &base);
366 memblock_free(base, size);