Lines Matching defs:memory
35 * of_fdt_limit_memory - limit the number of regions in the /memory node
39 * memory entries in the /memory node. This function may be called
44 int memory;
70 memory = fdt_path_offset(initial_boot_params, "/memory");
71 if (memory > 0) {
72 val = fdt_getprop(initial_boot_params, memory, "reg", &len);
76 fdt_setprop(initial_boot_params, memory, "reg", val,
355 * @dt_alloc: An allocator that provides a virtual address to memory
363 * Return: NULL on failure or the memory chunk containing the unflattened
400 /* Allocate memory for the expanded device tree */
444 * Return: NULL on failure or the memory chunk containing the unflattened
473 * __reserved_mem_reserve_reg() - reserve all memory described in 'reg' property
490 pr_err("Reserved memory: invalid reg property in '%s', skipping node.\n",
503 pr_debug("Reserved memory: reserved region for node '%s': base %pa, size %lu MiB\n",
506 pr_info("Reserved memory: failed to reserve memory for node '%s': base %pa, size %lu MiB\n",
520 * in /reserved-memory matches the values supported by the current implementation,
542 * fdt_scan_reserved_mem() - scan a single FDT node for reserved memory
550 if (!found && depth == 1 && strcmp(uname, "reserved-memory") == 0) {
552 pr_err("Reserved memory: unsupported node format, ignoring\n");
563 /* scanning of /reserved-memory has been finished */
579 * early_init_fdt_scan_reserved_mem() - create reserved memory regions
581 * This function grabs memory from early allocator for device exclusive use
606 * early_init_fdt_reserve_self() - reserve the memory used by the FDT blob
625 * used to extract the memory information at boot before we can
989 * early_init_dt_scan_memory - Look for and parse memory nodes
999 /* We are scanning "memory" nodes only */
1000 if (type == NULL || strcmp(type, "memory") != 0)
1003 reg = of_get_flat_dt_prop(node, "linux,usable-memory", &l);
1012 pr_debug("memory scan node %s, reg size %d,\n", uname, l);
1106 pr_warn("Ignoring memory block 0x%llx - 0x%llx\n",
1118 pr_warn("Ignoring memory block 0x%llx - 0x%llx\n",
1124 pr_warn("Ignoring memory range 0x%llx - 0x%llx\n",
1130 pr_warn("Ignoring memory block 0x%llx - 0x%llx\n",
1135 pr_warn("Ignoring memory range 0x%llx - 0x%llx\n",
1153 * If the memory is already reserved (by another region), we
1204 /* Setup memory, calling early_init_dt_add_memory_arch */
1245 * can be used. This should only be used when the FDT memory has not been
1247 * section. If the FDT memory is reserved already then unflatten_device_tree