Searched refs:boot_mem_map (Results 1 – 11 of 11) sorted by relevance
60 struct boot_mem_map boot_mem_map; variable81 int x = boot_mem_map.nr_map; in add_memory_region()82 struct boot_mem_map_entry *prev = boot_mem_map.map + x - 1; in add_memory_region()104 boot_mem_map.map[x].addr = start; in add_memory_region()105 boot_mem_map.map[x].size = size; in add_memory_region()106 boot_mem_map.map[x].type = type; in add_memory_region()107 boot_mem_map.nr_map++; in add_memory_region()115 for (i = 0; i < boot_mem_map.nr_map; i++) { in print_memory_map()117 field, (unsigned long long) boot_mem_map.map[i].size, in print_memory_map()118 field, (unsigned long long) boot_mem_map.map[i].addr); in print_memory_map()[all …]
107 for (i = 0; i < boot_mem_map.nr_map; i++) { in prom_free_prom_memory()108 if (boot_mem_map.map[i].type != BOOT_MEM_ROM_DATA) in prom_free_prom_memory()111 addr = boot_mem_map.map[i].addr; in prom_free_prom_memory()113 addr, addr + boot_mem_map.map[i].size); in prom_free_prom_memory()
95 struct boot_mem_map { struct104 extern struct boot_mem_map boot_mem_map; argument
152 for (i = 0; i < boot_mem_map.nr_map; i++) { in prom_free_prom_memory()153 if (boot_mem_map.map[i].type != BOOT_MEM_ROM_DATA) in prom_free_prom_memory()156 addr = boot_mem_map.map[i].addr; in prom_free_prom_memory()158 addr, addr + boot_mem_map.map[i].size); in prom_free_prom_memory()
170 for (i = 0; i < boot_mem_map.nr_map; i++) { in prom_free_prom_memory()171 if (boot_mem_map.map[i].type != BOOT_MEM_ROM_DATA) in prom_free_prom_memory()174 addr = boot_mem_map.map[i].addr; in prom_free_prom_memory()176 addr, addr + boot_mem_map.map[i].size); in prom_free_prom_memory()
346 for (i = 0; i < boot_mem_map.nr_map; i++) { in prom_free_prom_memory()347 if (boot_mem_map.map[i].type != BOOT_MEM_ROM_DATA) in prom_free_prom_memory()350 addr = boot_mem_map.map[i].addr; in prom_free_prom_memory()352 addr, addr + boot_mem_map.map[i].size); in prom_free_prom_memory()
304 for (i = 0; i < boot_mem_map.nr_map; i++) { in page_is_ram()307 switch (boot_mem_map.map[i].type) { in page_is_ram()316 addr = PFN_UP(boot_mem_map.map[i].addr); in page_is_ram()317 end = PFN_DOWN(boot_mem_map.map[i].addr + in page_is_ram()318 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()
309 for (i = 0; i < boot_mem_map.nr_map; i++) { in addr_is_ram()310 unsigned long a = boot_mem_map.map[i].addr; in addr_is_ram()311 if (a <= addr && addr+sz <= a+boot_mem_map.map[i].size) in addr_is_ram()
273 for (i = 0 ; i < boot_mem_map.nr_map; i++) { in plat_swiotlb_setup()274 struct boot_mem_map_entry *e = &boot_mem_map.map[i]; in plat_swiotlb_setup()
661 while ((boot_mem_map.nr_map < BOOT_MEM_MAP_MAX) in plat_mem_setup()