max_mapnr 89 arch/alpha/include/asm/page.h #define pfn_valid(pfn) ((pfn) < max_mapnr) max_mapnr 88 arch/arc/include/asm/page.h #define pfn_valid(pfn) (((pfn) - ARCH_PFN_OFFSET) < max_mapnr) max_mapnr 102 arch/arc/mm/init.c max_mapnr = max_low_pfn - min_low_pfn; max_mapnr 383 arch/c6x/kernel/setup.c max_mapnr = max_low_pfn - min_low_pfn; max_mapnr 42 arch/csky/include/asm/page.h #define pfn_valid(pfn) ((pfn) >= ARCH_PFN_OFFSET && ((pfn) - ARCH_PFN_OFFSET) < max_mapnr) max_mapnr 44 arch/csky/mm/init.c max_mapnr = highend_pfn; max_mapnr 46 arch/csky/mm/init.c max_mapnr = max_low_pfn; max_mapnr 114 arch/h8300/include/asm/processor.h MAP_NR((tsk)->thread.esp0) < max_mapnr) \ max_mapnr 98 arch/h8300/mm/init.c max_mapnr = MAP_NR(high_memory); max_mapnr 99 arch/hexagon/include/asm/page.h #define pfn_valid(pfn) ((pfn) < max_mapnr) max_mapnr 118 arch/ia64/include/asm/page.h # define pfn_valid(pfn) (((pfn) < max_mapnr) && ia64_pfn_valid(pfn)) max_mapnr 31 arch/m68k/include/asm/page_no.h #define pfn_valid(pfn) ((pfn) < max_mapnr) max_mapnr 167 arch/microblaze/include/asm/page.h ((pfn) <= (min_low_pfn + max_mapnr))) max_mapnr 171 arch/microblaze/include/asm/page.h # define pfn_valid(pfn) ((pfn) < (max_mapnr + ARCH_PFN_OFFSET)) max_mapnr 163 arch/microblaze/mm/init.c max_mapnr = memory_size >> PAGE_SHIFT; max_mapnr 167 arch/microblaze/mm/init.c pr_info("%s: max_mapnr: %#lx\n", __func__, max_mapnr); max_mapnr 226 arch/mips/include/asm/page.h extern unsigned long max_mapnr; max_mapnr 229 arch/mips/include/asm/page.h return pfn >= pfn_offset && pfn < max_mapnr; max_mapnr 459 arch/mips/mm/init.c max_mapnr = highend_pfn ? highend_pfn : max_low_pfn; max_mapnr 461 arch/mips/mm/init.c max_mapnr = max_low_pfn; max_mapnr 82 arch/nds32/include/asm/memory.h #define pfn_valid(pfn) ((pfn) >= PHYS_PFN_OFFSET && (pfn) < (PHYS_PFN_OFFSET + max_mapnr)) max_mapnr 183 arch/nds32/mm/init.c max_mapnr = max_pfn; max_mapnr 92 arch/nios2/include/asm/page.h extern unsigned long max_mapnr; max_mapnr 95 arch/nios2/include/asm/page.h return pfn >= pfn_offset && pfn < max_mapnr; max_mapnr 166 arch/nios2/kernel/setup.c max_mapnr = max_low_pfn; max_mapnr 56 arch/nios2/mm/init.c zones_size[ZONE_NORMAL] = max_mapnr; max_mapnr 83 arch/openrisc/include/asm/page.h #define pfn_valid(pfn) ((pfn) < max_mapnr) max_mapnr 206 arch/openrisc/mm/init.c max_mapnr = max_low_pfn; max_mapnr 151 arch/parisc/include/asm/page.h #define pfn_valid(pfn) ((pfn) < max_mapnr) max_mapnr 121 arch/powerpc/include/asm/page.h extern unsigned long max_mapnr; max_mapnr 126 arch/powerpc/include/asm/page.h return pfn >= min_pfn && pfn < max_mapnr; max_mapnr 305 arch/powerpc/mm/mem.c for (pfn = highmem_mapnr; pfn < max_mapnr; ++pfn) { max_mapnr 115 arch/riscv/include/asm/page.h (((pfn) >= pfn_base) && (((pfn)-pfn_base) < max_mapnr)) max_mapnr 133 arch/sparc/include/asm/page_32.h #define pfn_valid(pfn) (((pfn) >= (pfn_base)) && (((pfn)-(pfn_base)) < max_mapnr)) max_mapnr 134 arch/sparc/include/asm/page_32.h #define virt_addr_valid(kaddr) ((((unsigned long)(kaddr)-PAGE_OFFSET)>>PAGE_SHIFT) < max_mapnr) max_mapnr 276 arch/sparc/mm/init_32.c max_mapnr = last_valid_pfn - pfn_base; max_mapnr 111 arch/um/include/asm/page.h #define pfn_valid(pfn) ((pfn) < max_mapnr) max_mapnr 38 arch/um/kernel/physmem.c max_mapnr = total_pages; max_mapnr 266 arch/unicore32/mm/init.c max_mapnr = pfn_to_page(max_pfn + PHYS_PFN_OFFSET) - mem_map; max_mapnr 19 arch/x86/include/asm/page_32.h #define pfn_valid(pfn) ((pfn) < max_mapnr) max_mapnr 699 arch/x86/mm/init_32.c max_mapnr = IS_ENABLED(CONFIG_HIGHMEM) ? highend_pfn : max_low_pfn; max_mapnr 182 arch/xtensa/include/asm/page.h ((pfn) >= ARCH_PFN_OFFSET && ((pfn) - ARCH_PFN_OFFSET) < max_mapnr) max_mapnr 152 arch/xtensa/mm/init.c max_mapnr = max_pfn - ARCH_PFN_OFFSET; max_mapnr 91 include/asm-generic/page.h #define pfn_valid(pfn) ((pfn) >= ARCH_PFN_OFFSET && ((pfn) - ARCH_PFN_OFFSET) < max_mapnr) max_mapnr 42 include/linux/mm.h extern unsigned long max_mapnr; max_mapnr 46 include/linux/mm.h max_mapnr = limit; max_mapnr 91 mm/memory.c unsigned long max_mapnr; max_mapnr 92 mm/memory.c EXPORT_SYMBOL(max_mapnr); max_mapnr 49 mm/nommu.c unsigned long max_mapnr; max_mapnr 50 mm/nommu.c EXPORT_SYMBOL(max_mapnr);