/linux-6.1.9/include/asm-generic/ |
D | memory_model.h | 14 #ifndef ARCH_PFN_OFFSET 15 #define ARCH_PFN_OFFSET (0UL) macro 18 #define __pfn_to_page(pfn) (mem_map + ((pfn) - ARCH_PFN_OFFSET)) 20 ARCH_PFN_OFFSET)
|
D | page.h | 68 #ifndef ARCH_PFN_OFFSET 69 #define ARCH_PFN_OFFSET (PAGE_OFFSET >> PAGE_SHIFT) macro 87 #define pfn_valid(pfn) ((pfn) >= ARCH_PFN_OFFSET && ((pfn) - ARCH_PFN_OFFSET) < max_mapnr)
|
/linux-6.1.9/arch/mips/include/asm/ |
D | page.h | 84 extern unsigned long ARCH_PFN_OFFSET; 85 # define ARCH_PFN_OFFSET ARCH_PFN_OFFSET macro 87 # define ARCH_PFN_OFFSET PFN_UP(PHYS_OFFSET) macro 233 unsigned long pfn_offset = ARCH_PFN_OFFSET; in pfn_valid()
|
/linux-6.1.9/arch/hexagon/mm/ |
D | init.c | 152 bootmem_lastpg += ARCH_PFN_OFFSET; in setup_arch_memory() 159 (bootmem_lastpg - ARCH_PFN_OFFSET) << PAGE_SHIFT); in setup_arch_memory() 163 (bootmem_startpg - ARCH_PFN_OFFSET) << PAGE_SHIFT); in setup_arch_memory() 169 min_low_pfn = ARCH_PFN_OFFSET; in setup_arch_memory() 194 segtable += (bootmem_lastpg-ARCH_PFN_OFFSET)>>(22-PAGE_SHIFT); in setup_arch_memory()
|
/linux-6.1.9/arch/arc/include/asm/ |
D | page.h | 104 #define ARCH_PFN_OFFSET arch_pfn_offset macro 111 #define ARCH_PFN_OFFSET virt_to_pfn(CONFIG_LINUX_RAM_BASE) macro 112 #define pfn_valid(pfn) (((pfn) - ARCH_PFN_OFFSET) < max_mapnr)
|
/linux-6.1.9/arch/csky/include/asm/ |
D | page.h | 42 #define pfn_valid(pfn) ((pfn) >= ARCH_PFN_OFFSET && ((pfn) - ARCH_PFN_OFFSET) < max_mapnr) 77 #define ARCH_PFN_OFFSET PFN_DOWN(va_pa_offset + PHYS_OFFSET_OFFSET) macro
|
/linux-6.1.9/arch/riscv/include/asm/ |
D | page.h | 95 #define ARCH_PFN_OFFSET (riscv_pfn_base) macro 97 #define ARCH_PFN_OFFSET (PAGE_OFFSET >> PAGE_SHIFT) macro 176 (((pfn) >= ARCH_PFN_OFFSET) && (((pfn) - ARCH_PFN_OFFSET) < max_mapnr))
|
/linux-6.1.9/arch/mips/kernel/ |
D | setup.c | 94 unsigned long ARCH_PFN_OFFSET; variable 95 EXPORT_SYMBOL(ARCH_PFN_OFFSET); 290 ARCH_PFN_OFFSET = PFN_UP(ramstart); in bootmem_init() 298 if (PFN_UP(ramstart) > ARCH_PFN_OFFSET) { in bootmem_init() 300 (unsigned long)((PFN_UP(ramstart) - ARCH_PFN_OFFSET) * sizeof(struct page)), in bootmem_init() 301 (unsigned long)(PFN_UP(ramstart) - ARCH_PFN_OFFSET)); in bootmem_init() 305 min_low_pfn = ARCH_PFN_OFFSET; in bootmem_init() 691 early_memtest(PFN_PHYS(ARCH_PFN_OFFSET), PFN_PHYS(max_low_pfn)); in arch_mem_init()
|
/linux-6.1.9/arch/microblaze/include/asm/ |
D | page.h | 114 # define ARCH_PFN_OFFSET (memory_start >> PAGE_SHIFT) macro 115 # define pfn_valid(pfn) ((pfn) >= ARCH_PFN_OFFSET && (pfn) < (max_mapnr + ARCH_PFN_OFFSET))
|
/linux-6.1.9/arch/xtensa/include/asm/ |
D | page.h | 162 #define ARCH_PFN_OFFSET (PHYS_OFFSET >> PAGE_SHIFT) macro 193 ((pfn) >= ARCH_PFN_OFFSET && ((pfn) - ARCH_PFN_OFFSET) < max_mapnr)
|
/linux-6.1.9/arch/nios2/include/asm/ |
D | page.h | 46 #define ARCH_PFN_OFFSET PFN_UP(PHYS_OFFSET) macro 93 unsigned long pfn_offset = ARCH_PFN_OFFSET; in pfn_valid()
|
/linux-6.1.9/arch/loongarch/include/asm/ |
D | page.h | 41 #define ARCH_PFN_OFFSET PFN_UP(PHYS_OFFSET) macro 91 unsigned long pfn_offset = ARCH_PFN_OFFSET; in pfn_valid()
|
/linux-6.1.9/Documentation/translations/zh_CN/mm/ |
D | memory-model.rst | 51 使用FLATMEM,PFN和 `struct page` 之间的转换是直接的。 `PFN - ARCH_PFN_OFFSET` 54 `ARCH_PFN_OFFSET` 定义了物理内存起始地址不同于0的系统的第一个页框号。
|
/linux-6.1.9/arch/powerpc/include/asm/ |
D | page.h | 119 #define ARCH_PFN_OFFSET ((unsigned long)(MEMORY_START >> PAGE_SHIFT)) macro 124 unsigned long min_pfn = ARCH_PFN_OFFSET; in pfn_valid()
|
/linux-6.1.9/arch/csky/mm/ |
D | init.c | 89 set_max_mapnr(highend_pfn - ARCH_PFN_OFFSET); in mem_init() 91 set_max_mapnr(max_low_pfn - ARCH_PFN_OFFSET); in mem_init()
|
/linux-6.1.9/arch/hexagon/include/asm/ |
D | mem-layout.h | 39 #define ARCH_PFN_OFFSET PHYS_PFN_OFFSET macro
|
/linux-6.1.9/arch/mips/include/asm/mach-generic/ |
D | spaces.h | 26 # define PHYS_OFFSET ((unsigned long)PFN_PHYS(ARCH_PFN_OFFSET))
|
/linux-6.1.9/arch/m68k/include/asm/ |
D | page_mm.h | 136 #define ARCH_PFN_OFFSET (m68k_memory[0].addr >> PAGE_SHIFT) macro
|
/linux-6.1.9/arch/sparc/include/asm/ |
D | page_32.h | 130 #define ARCH_PFN_OFFSET (pfn_base) macro
|
/linux-6.1.9/arch/xtensa/mm/ |
D | init.c | 117 max_mapnr = max_pfn - ARCH_PFN_OFFSET; in mem_init()
|
/linux-6.1.9/arch/sh/include/asm/ |
D | page.h | 170 #define ARCH_PFN_OFFSET (PFN_START) macro
|
/linux-6.1.9/arch/arm/include/asm/ |
D | memory.h | 381 #define ARCH_PFN_OFFSET PHYS_PFN_OFFSET macro
|
/linux-6.1.9/arch/arm64/include/asm/ |
D | memory.h | 336 #define ARCH_PFN_OFFSET ((unsigned long)PHYS_PFN_OFFSET) macro
|
/linux-6.1.9/Documentation/mm/ |
D | memory-model.rst | 56 straightforward: `PFN - ARCH_PFN_OFFSET` is an index to the 59 The `ARCH_PFN_OFFSET` defines the first page frame number for
|
/linux-6.1.9/arch/loongarch/kernel/ |
D | setup.c | 309 early_memtest(PFN_PHYS(ARCH_PFN_OFFSET), PFN_PHYS(max_low_pfn)); in arch_mem_init()
|