Lines Matching refs:boot_mem_map

83 struct boot_mem_map boot_mem_map;  variable
146 int x = boot_mem_map.nr_map; in add_memory_region()
153 boot_mem_map.map[x].addr = start; in add_memory_region()
154 boot_mem_map.map[x].size = size; in add_memory_region()
155 boot_mem_map.map[x].type = type; in add_memory_region()
156 boot_mem_map.nr_map++; in add_memory_region()
163 for (i = 0; i < boot_mem_map.nr_map; i++) { in print_memory_map()
165 (unsigned long long) boot_mem_map.map[i].size, in print_memory_map()
166 (unsigned long long) 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()
271 for (i = 0; i < boot_mem_map.nr_map; i++) { in bootmem_init()
274 if (boot_mem_map.map[i].type != BOOT_MEM_RAM) in bootmem_init()
277 start = PFN_UP(boot_mem_map.map[i].addr); in bootmem_init()
278 end = PFN_DOWN(boot_mem_map.map[i].addr in bootmem_init()
279 + boot_mem_map.map[i].size); in bootmem_init()
293 for (i = 0; i < boot_mem_map.nr_map; i++) { in bootmem_init()
299 if (boot_mem_map.map[i].type != BOOT_MEM_RAM) in bootmem_init()
305 curr_pfn = PFN_UP(boot_mem_map.map[i].addr); in bootmem_init()
314 last_pfn = PFN_DOWN(boot_mem_map.map[i].addr in bootmem_init()
315 + boot_mem_map.map[i].size); in bootmem_init()
374 for (i = 0; i < boot_mem_map.nr_map; i++) { in resource_init()
378 switch (boot_mem_map.map[i].type) { in resource_init()
388 res->start = boot_mem_map.map[i].addr; in resource_init()
389 res->end = boot_mem_map.map[i].addr + in resource_init()
390 boot_mem_map.map[i].size - 1; in resource_init()