Lines Matching defs:memory

36  * of_fdt_limit_memory - limit the number of regions in the /memory node
40 * memory entries in the /memory node. This function may be called
45 int memory;
71 memory = fdt_path_offset(initial_boot_params, "/memory");
72 if (memory > 0) {
73 val = fdt_getprop(initial_boot_params, memory, "reg", &len);
77 fdt_setprop(initial_boot_params, memory, "reg", val,
354 * @dt_alloc: An allocator that provides a virtual address to memory
362 * Return: NULL on failure or the memory chunk containing the unflattened
403 /* Allocate memory for the expanded device tree */
451 * Return: NULL on failure or the memory chunk containing the unflattened
484 * If the memory is already reserved (by another region), we
486 * if the region isn't memory as it won't be mapped.
488 if (memblock_overlaps_region(&memblock.memory, base, size) &&
498 * __reserved_mem_reserve_reg() - reserve all memory described in 'reg' property
515 pr_err("Reserved memory: invalid reg property in '%s', skipping node.\n",
528 pr_debug("Reserved memory: reserved region for node '%s': base %pa, size %lu MiB\n",
531 pr_err("Reserved memory: failed to reserve memory for node '%s': base %pa, size %lu MiB\n",
545 * in /reserved-memory matches the values supported by the current implementation,
567 * fdt_scan_reserved_mem() - scan a single FDT node for reserved memory
574 node = fdt_path_offset(fdt, "/reserved-memory");
579 pr_err("Reserved memory: unsupported node format, ignoring\n");
600 * fdt_reserve_elfcorehdr() - reserves memory for elf core header
602 * This function reserves the memory occupied by an elf core header
605 * capture kernel to access the system memory on primary kernel.
619 pr_info("Reserving %llu KiB of memory at 0x%llx for elfcorehdr\n",
624 * early_init_fdt_scan_reserved_mem() - create reserved memory regions
626 * This function grabs memory from early allocator for device exclusive use
653 * early_init_fdt_reserve_self() - reserve the memory used by the FDT blob
671 * used to extract the memory information at boot before we can
967 * The main usage of linux,usable-memory-range is for crash dump kernel.
968 * Originally, the number of usable-memory regions is one. Now there may
971 * region is always the last range of linux,usable-memory-range if exist.
976 * early_init_dt_check_for_usable_mem_range - Decode usable memory range
989 pr_debug("Looking for usable-memory-range property... ");
991 prop = of_get_flat_dt_prop(node, "linux,usable-memory-range", &len);
1096 * early_init_dt_scan_memory - Look for and parse memory nodes
1109 /* We are scanning "memory" nodes only */
1110 if (type == NULL || strcmp(type, "memory") != 0)
1116 reg = of_get_flat_dt_prop(node, "linux,usable-memory", &l);
1125 pr_debug("memory scan node %s, reg size %d,\n",
1225 pr_warn("Ignoring memory block 0x%llx - 0x%llx\n",
1237 pr_warn("Ignoring memory block 0x%llx - 0x%llx\n",
1243 pr_warn("Ignoring memory range 0x%llx - 0x%llx\n",
1249 pr_warn("Ignoring memory block 0x%llx - 0x%llx\n",
1254 pr_warn("Ignoring memory range 0x%llx - 0x%llx\n",
1302 /* Setup memory, calling early_init_dt_add_memory_arch */
1305 /* Handle linux,usable-memory-range property */
1346 * can be used. This should only be used when the FDT memory has not been
1348 * section. If the FDT memory is reserved already then unflatten_device_tree