Home
last modified time | relevance | path

Searched refs:boot_mem_map (Results 1 – 10 of 10) sorted by relevance

/arch/mips/kernel/
Dsetup.c70 struct boot_mem_map boot_mem_map; variable
93 int x = boot_mem_map.nr_map; in add_memory_region()
105 for (i = 0; i < boot_mem_map.nr_map; i++) { in add_memory_region()
106 struct boot_mem_map_entry *entry = boot_mem_map.map + i; in add_memory_region()
125 if (boot_mem_map.nr_map == BOOT_MEM_MAP_MAX) { in add_memory_region()
130 boot_mem_map.map[x].addr = start; in add_memory_region()
131 boot_mem_map.map[x].size = size; in add_memory_region()
132 boot_mem_map.map[x].type = type; in add_memory_region()
133 boot_mem_map.nr_map++; in add_memory_region()
160 for (i = 0; i < boot_mem_map.nr_map; i++) { in memory_region_available()
[all …]
/arch/mips/mti-malta/
Dmalta-memory.c45 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()
/arch/mips/netlogic/xlp/
Dsetup.c72 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()
/arch/mips/fw/arc/
Dmemory.c152 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()
/arch/mips/include/asm/
Dbootinfo.h98 struct boot_mem_map { struct
107 extern struct boot_mem_map boot_mem_map; argument
/arch/mips/mm/
Dinit.c262 for (i = 0; i < boot_mem_map.nr_map; i++) { in platform_maar_init()
263 switch (boot_mem_map.map[i].type) { in platform_maar_init()
271 skip = 0x10000 - (boot_mem_map.map[i].addr & 0xffff); in platform_maar_init()
273 cfg[num_cfg].lower = boot_mem_map.map[i].addr; in platform_maar_init()
277 cfg[num_cfg].upper += boot_mem_map.map[i].size - 1; in platform_maar_init()
374 for (i = 0; i < boot_mem_map.nr_map; i++) { in page_is_ram()
377 switch (boot_mem_map.map[i].type) { in page_is_ram()
386 addr = PFN_UP(boot_mem_map.map[i].addr); in page_is_ram()
387 end = PFN_DOWN(boot_mem_map.map[i].addr + in page_is_ram()
388 boot_mem_map.map[i].size); in page_is_ram()
/arch/mips/pmcs-msp71xx/
Dmsp_prom.c410 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()
/arch/mips/sgi-ip22/
Dip28-berr.c309 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()
/arch/mips/cavium-octeon/
Ddma-octeon.c265 for (i = 0 ; i < boot_mem_map.nr_map; i++) { in plat_swiotlb_setup()
266 struct boot_mem_map_entry *e = &boot_mem_map.map[i]; in plat_swiotlb_setup()
Dsetup.c947 while ((boot_mem_map.nr_map < BOOT_MEM_MAP_MAX) in plat_mem_setup()