Lines Matching defs:base
296 void *base = mem;
297 bool dryrun = !base;
327 return mem - base;
347 return mem - base;
479 phys_addr_t base, size;
498 base = dt_mem_next_cell(dt_root_addr_cells, &prop);
502 early_init_dt_reserve_memory_arch(base, size, nomap) == 0)
503 pr_debug("Reserved memory: reserved region for node '%s': base %pa, size %lu MiB\n",
504 uname, &base, (unsigned long)(size / SZ_1M));
506 pr_info("Reserved memory: failed to reserve memory for node '%s': base %pa, size %lu MiB\n",
507 uname, &base, (unsigned long)(size / SZ_1M));
511 fdt_reserved_mem_save_node(node, uname, base, size);
588 u64 base, size;
595 fdt_get_mem_rsv(initial_boot_params, n, &base, &size);
598 early_init_dt_reserve_memory_arch(base, size, false);
1015 u64 base, size;
1017 base = dt_mem_next_cell(dt_root_addr_cells, ®);
1022 pr_debug(" - %llx , %llx\n", (unsigned long long)base,
1025 early_init_dt_add_memory_arch(base, size);
1030 if (early_init_dt_mark_hotplug_memory_arch(base, size))
1032 base, base + size);
1101 void __init __weak early_init_dt_add_memory_arch(u64 base, u64 size)
1105 if (size < PAGE_SIZE - (base & ~PAGE_MASK)) {
1107 base, base + size);
1111 if (!PAGE_ALIGNED(base)) {
1112 size -= PAGE_SIZE - (base & ~PAGE_MASK);
1113 base = PAGE_ALIGN(base);
1117 if (base > MAX_MEMBLOCK_ADDR) {
1119 base, base + size);
1123 if (base + size - 1 > MAX_MEMBLOCK_ADDR) {
1125 ((u64)MAX_MEMBLOCK_ADDR) + 1, base + size);
1126 size = MAX_MEMBLOCK_ADDR - base + 1;
1129 if (base + size < phys_offset) {
1131 base, base + size);
1134 if (base < phys_offset) {
1136 base, phys_offset);
1137 size -= phys_offset - base;
1138 base = phys_offset;
1140 memblock_add(base, size);
1143 int __init __weak early_init_dt_mark_hotplug_memory_arch(u64 base, u64 size)
1145 return memblock_mark_hotplug(base, size);
1148 int __init __weak early_init_dt_reserve_memory_arch(phys_addr_t base,
1156 if (memblock_is_region_reserved(base, size))
1159 return memblock_mark_nomap(base, size);
1161 return memblock_reserve(base, size);