Home
last modified time | relevance | path

Searched refs:ARCH_PFN_OFFSET (Results 1 – 25 of 26) sorted by relevance

12

/linux-6.1.9/include/asm-generic/
Dmemory_model.h14 #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)
Dpage.h68 #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/
Dpage.h84 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/
Dinit.c152 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/
Dpage.h104 #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/
Dpage.h42 #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/
Dpage.h95 #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/
Dsetup.c94 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/
Dpage.h114 # 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/
Dpage.h162 #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/
Dpage.h46 #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/
Dpage.h41 #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/
Dmemory-model.rst51 使用FLATMEM,PFN和 `struct page` 之间的转换是直接的。 `PFN - ARCH_PFN_OFFSET`
54 `ARCH_PFN_OFFSET` 定义了物理内存起始地址不同于0的系统的第一个页框号。
/linux-6.1.9/arch/powerpc/include/asm/
Dpage.h119 #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/
Dinit.c89 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/
Dmem-layout.h39 #define ARCH_PFN_OFFSET PHYS_PFN_OFFSET macro
/linux-6.1.9/arch/mips/include/asm/mach-generic/
Dspaces.h26 # define PHYS_OFFSET ((unsigned long)PFN_PHYS(ARCH_PFN_OFFSET))
/linux-6.1.9/arch/m68k/include/asm/
Dpage_mm.h136 #define ARCH_PFN_OFFSET (m68k_memory[0].addr >> PAGE_SHIFT) macro
/linux-6.1.9/arch/sparc/include/asm/
Dpage_32.h130 #define ARCH_PFN_OFFSET (pfn_base) macro
/linux-6.1.9/arch/xtensa/mm/
Dinit.c117 max_mapnr = max_pfn - ARCH_PFN_OFFSET; in mem_init()
/linux-6.1.9/arch/sh/include/asm/
Dpage.h170 #define ARCH_PFN_OFFSET (PFN_START) macro
/linux-6.1.9/arch/arm/include/asm/
Dmemory.h381 #define ARCH_PFN_OFFSET PHYS_PFN_OFFSET macro
/linux-6.1.9/arch/arm64/include/asm/
Dmemory.h336 #define ARCH_PFN_OFFSET ((unsigned long)PHYS_PFN_OFFSET) macro
/linux-6.1.9/Documentation/mm/
Dmemory-model.rst56 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/
Dsetup.c309 early_memtest(PFN_PHYS(ARCH_PFN_OFFSET), PFN_PHYS(max_low_pfn)); in arch_mem_init()

12