Lines Matching refs:mem_array
70 static unsigned __init gen_fdt_mem_array(__be32 *mem_array, unsigned long size, in gen_fdt_mem_array() argument
77 mem_array[0] = cpu_to_be32(PHYS_OFFSET); in gen_fdt_mem_array()
85 mem_array[1] = cpu_to_be32(size); in gen_fdt_mem_array()
90 mem_array[1] = cpu_to_be32(size_preio); in gen_fdt_mem_array()
109 mem_array[2] = cpu_to_be32(PHYS_OFFSET + SZ_512M); in gen_fdt_mem_array()
110 mem_array[3] = cpu_to_be32(size); in gen_fdt_mem_array()
122 mem_array[2] = cpu_to_be32(PHYS_OFFSET + SZ_2G + SZ_256M); in gen_fdt_mem_array()
123 mem_array[3] = cpu_to_be32(size); in gen_fdt_mem_array()
133 __be32 mem_array[2 * MAX_MEM_ARRAY_ENTRIES]; in append_memory() local
214 mem_entries = gen_fdt_mem_array(mem_array, physical_memsize, mem_map); in append_memory()
215 err = fdt_setprop(fdt, mem_off, "reg", mem_array, in append_memory()
216 mem_entries * 2 * sizeof(mem_array[0])); in append_memory()
220 mem_entries = gen_fdt_mem_array(mem_array, memsize, mem_map); in append_memory()
221 err = fdt_setprop(fdt, mem_off, "linux,usable-memory", mem_array, in append_memory()
222 mem_entries * 2 * sizeof(mem_array[0])); in append_memory()