Searched refs:boot_mem_map (Results 1 – 10 of 10) sorted by relevance
65 struct boot_mem_map boot_mem_map; variable88 int x = boot_mem_map.nr_map; in add_memory_region()107 for (i = 0; i < boot_mem_map.nr_map; i++) { in add_memory_region()108 struct boot_mem_map_entry *entry = boot_mem_map.map + i; in add_memory_region()127 if (boot_mem_map.nr_map == BOOT_MEM_MAP_MAX) { in add_memory_region()132 boot_mem_map.map[x].addr = start; in add_memory_region()133 boot_mem_map.map[x].size = size; in add_memory_region()134 boot_mem_map.map[x].type = type; in add_memory_region()135 boot_mem_map.nr_map++; in add_memory_region()162 for (i = 0; i < boot_mem_map.nr_map; i++) { in memory_region_available()[all …]
45 for (i = 0; i < boot_mem_map.nr_map; i++) { in prom_free_prom_memory()46 if (boot_mem_map.map[i].type != BOOT_MEM_ROM_DATA) in prom_free_prom_memory()49 addr = boot_mem_map.map[i].addr; in prom_free_prom_memory()51 addr, addr + boot_mem_map.map[i].size); in prom_free_prom_memory()
153 for (i = 0; i < boot_mem_map.nr_map; i++) { in prom_free_prom_memory()154 if (boot_mem_map.map[i].type != BOOT_MEM_ROM_DATA) in prom_free_prom_memory()157 addr = boot_mem_map.map[i].addr; in prom_free_prom_memory()159 addr, addr + boot_mem_map.map[i].size); in prom_free_prom_memory()
72 for (i = 0; i < boot_mem_map.nr_map; i++) { in nlm_fixup_mem()73 if (boot_mem_map.map[i].type != BOOT_MEM_RAM) in nlm_fixup_mem()75 boot_mem_map.map[i].size -= pref_backup; in nlm_fixup_mem()113 if (boot_mem_map.nr_map == 0) { in plat_mem_setup()
98 struct boot_mem_map { struct107 extern struct boot_mem_map boot_mem_map; argument
267 for (i = 0; i < boot_mem_map.nr_map; i++) { in platform_maar_init()268 switch (boot_mem_map.map[i].type) { in platform_maar_init()277 cfg[num_cfg].lower = boot_mem_map.map[i].addr; in platform_maar_init()281 cfg[num_cfg].upper = boot_mem_map.map[i].addr + in platform_maar_init()282 boot_mem_map.map[i].size; in platform_maar_init()379 for (i = 0; i < boot_mem_map.nr_map; i++) { in page_is_ram()382 switch (boot_mem_map.map[i].type) { in page_is_ram()391 addr = PFN_UP(boot_mem_map.map[i].addr); in page_is_ram()392 end = PFN_DOWN(boot_mem_map.map[i].addr + in page_is_ram()393 boot_mem_map.map[i].size); in page_is_ram()
410 for (i = 0; i < boot_mem_map.nr_map; i++) { in prom_free_prom_memory()411 if (boot_mem_map.map[i].type != BOOT_MEM_ROM_DATA) in prom_free_prom_memory()414 addr = boot_mem_map.map[i].addr; in prom_free_prom_memory()416 addr, addr + boot_mem_map.map[i].size); in prom_free_prom_memory()
312 for (i = 0; i < boot_mem_map.nr_map; i++) { in addr_is_ram()313 unsigned long a = boot_mem_map.map[i].addr; in addr_is_ram()314 if (a <= addr && addr+sz <= a+boot_mem_map.map[i].size) in addr_is_ram()
260 for (i = 0 ; i < boot_mem_map.nr_map; i++) { in plat_swiotlb_setup()261 struct boot_mem_map_entry *e = &boot_mem_map.map[i]; in plat_swiotlb_setup()
1007 while ((boot_mem_map.nr_map < BOOT_MEM_MAP_MAX) in plat_mem_setup()