Lines Matching refs:boot_mem_map
86 struct boot_mem_map boot_mem_map; variable
145 int x = boot_mem_map.nr_map; in add_memory_region()
152 boot_mem_map.map[x].addr = start; in add_memory_region()
153 boot_mem_map.map[x].size = size; in add_memory_region()
154 boot_mem_map.map[x].type = type; in add_memory_region()
155 boot_mem_map.nr_map++; in add_memory_region()
162 for (i = 0; i < boot_mem_map.nr_map; i++) { in print_memory_map()
164 (u64) boot_mem_map.map[i].size, in print_memory_map()
165 (u64) boot_mem_map.map[i].addr); in print_memory_map()
167 switch (boot_mem_map.map[i].type) { in print_memory_map()
178 printk("type %lu\n", boot_mem_map.map[i].type); in print_memory_map()
210 boot_mem_map.nr_map = 0; in parse_mem_cmdline()
274 for (i = 0; i < boot_mem_map.nr_map; i++) { in bootmem_init()
277 if (boot_mem_map.map[i].type != BOOT_MEM_RAM) in bootmem_init()
280 start = PFN_UP(boot_mem_map.map[i].addr); in bootmem_init()
281 end = PFN_DOWN(boot_mem_map.map[i].addr in bootmem_init()
282 + boot_mem_map.map[i].size); in bootmem_init()
330 for (i = 0; i < boot_mem_map.nr_map; i++) { in bootmem_init()
336 if (boot_mem_map.map[i].type != BOOT_MEM_RAM) in bootmem_init()
342 curr_pfn = PFN_UP(boot_mem_map.map[i].addr); in bootmem_init()
351 last_pfn = PFN_DOWN(boot_mem_map.map[i].addr in bootmem_init()
352 + boot_mem_map.map[i].size); in bootmem_init()
418 for (i = 0; i < boot_mem_map.nr_map; i++) { in resource_init()
422 start = boot_mem_map.map[i].addr; in resource_init()
423 end = boot_mem_map.map[i].addr + boot_mem_map.map[i].size - 1; in resource_init()
430 switch (boot_mem_map.map[i].type) { in resource_init()