/openbmc/linux/include/asm-generic/ |
H A D | memory_model.h | 26 extern unsigned long max_mapnr; in pfn_valid() 29 return pfn >= pfn_offset && (pfn - pfn_offset) < max_mapnr; in pfn_valid()
|
/openbmc/qemu/include/sysemu/ |
H A D | dump.h | 74 uint32_t max_mapnr; /* = max_mapnr , member 92 uint32_t max_mapnr; /* = max_mapnr, member 192 uint64_t max_mapnr; /* the biggest guest's phys-mem's number */ member
|
/openbmc/u-boot/arch/arm/include/asm/ |
H A D | memory.h | 73 #define pfn_valid(pfn) ((pfn) >= PHYS_PFN_OFFSET && (pfn) < (PHYS_PFN_OFFSET + max_mapnr)) 80 #define VALID_PAGE(page) ((page - mem_map) < max_mapnr)
|
/openbmc/linux/arch/microblaze/mm/ |
H A D | init.c | 113 max_mapnr = memory_size >> PAGE_SHIFT; in setup_memory() 117 pr_info("%s: max_mapnr: %#lx\n", __func__, max_mapnr); in setup_memory()
|
/openbmc/linux/arch/nios2/kernel/ |
H A D | setup.c | 164 max_mapnr = max_low_pfn; in setup_arch()
|
/openbmc/linux/arch/nios2/mm/ |
H A D | init.c | 53 max_zone_pfn[ZONE_NORMAL] = max_mapnr; in paging_init()
|
/openbmc/linux/arch/arc/mm/ |
H A D | init.c | 160 max_mapnr = max_low_pfn - min_low_pfn; in setup_arch_memory()
|
/openbmc/linux/arch/sparc/include/asm/ |
H A D | page_32.h | 133 #define virt_addr_valid(kaddr) ((((unsigned long)(kaddr)-PAGE_OFFSET)>>PAGE_SHIFT) < max_mapnr)
|
/openbmc/qemu/dump/ |
H A D | dump.c | 988 dh->max_mapnr = cpu_to_dump32(s, MIN(s->max_mapnr, UINT_MAX)); in create_header32() 1019 kh->max_mapnr_64 = cpu_to_dump64(s, s->max_mapnr); in create_header32() 1099 dh->max_mapnr = cpu_to_dump32(s, MIN(s->max_mapnr, UINT_MAX)); in create_header64() 1130 kh->max_mapnr_64 = cpu_to_dump64(s, s->max_mapnr); in create_header64() 1704 s->max_mapnr = dump_paddr_to_pfn(s, last_block->target_end); in get_max_mapnr() 1924 tmp = DIV_ROUND_UP(DIV_ROUND_UP(s->max_mapnr, CHAR_BIT), in dump_init()
|
/openbmc/linux/arch/mips/mm/ |
H A D | init.c | 426 max_mapnr = highend_pfn ? highend_pfn : max_low_pfn; in paging_init() 428 max_mapnr = max_low_pfn; in paging_init()
|
/openbmc/linux/arch/um/kernel/ |
H A D | physmem.c | 38 max_mapnr = total_pages; in mem_total_pages()
|
/openbmc/linux/arch/xtensa/mm/ |
H A D | init.c | 117 max_mapnr = max_pfn - ARCH_PFN_OFFSET; in mem_init()
|
/openbmc/linux/arch/openrisc/mm/ |
H A D | init.c | 196 max_mapnr = max_low_pfn; in mem_init()
|
/openbmc/linux/arch/loongarch/mm/ |
H A D | init.c | 80 max_mapnr = max_low_pfn; in mem_init()
|
/openbmc/linux/arch/powerpc/mm/ |
H A D | mem.c | 299 for (pfn = highmem_mapnr; pfn < max_mapnr; ++pfn) { in mem_init()
|
/openbmc/linux/arch/sparc/mm/ |
H A D | init_32.c | 278 max_mapnr = last_valid_pfn - pfn_base; in mem_init()
|
/openbmc/linux/mm/ |
H A D | nommu.c | 48 unsigned long max_mapnr; variable 49 EXPORT_SYMBOL(max_mapnr);
|
H A D | memory.c | 99 unsigned long max_mapnr; variable 100 EXPORT_SYMBOL(max_mapnr);
|
/openbmc/linux/arch/x86/mm/ |
H A D | init_32.c | 654 max_mapnr = IS_ENABLED(CONFIG_HIGHMEM) ? highend_pfn : max_low_pfn; in initmem_init()
|
/openbmc/linux/include/linux/ |
H A D | mm.h | 46 extern unsigned long max_mapnr; 50 max_mapnr = limit; in set_max_mapnr()
|