| /kernel/linux/linux-6.6/arch/xtensa/include/asm/ |
| H A D | page.h | 31 #define PHYS_OFFSET XCHAL_KSEG_PADDR macro 36 #define PHYS_OFFSET _AC(CONFIG_DEFAULT_MEM_START, UL) macro 164 #define ARCH_PFN_OFFSET (PHYS_OFFSET >> PAGE_SHIFT) 175 return off + PHYS_OFFSET; in ___pa() 178 return off + PHYS_OFFSET; in ___pa() 190 ((unsigned long) (x) - PAGE_OFFSET + PHYS_OFFSET) 193 ((void *)((unsigned long) (x) - PHYS_OFFSET + PAGE_OFFSET))
|
| /kernel/linux/linux-5.10/arch/nds32/include/asm/ |
| H A D | memory.h | 14 #ifndef PHYS_OFFSET 15 #define PHYS_OFFSET (0x0) macro 32 #define __virt_to_phys(x) ((x) - PAGE_OFFSET + PHYS_OFFSET) 33 #define __phys_to_virt(x) ((x) - PHYS_OFFSET + PAGE_OFFSET) 57 #define PHYS_PFN_OFFSET (PHYS_OFFSET >> PAGE_SHIFT)
|
| /kernel/linux/linux-5.10/arch/xtensa/include/asm/ |
| H A D | page.h | 29 #define PHYS_OFFSET XCHAL_KSEG_PADDR macro 34 #define PHYS_OFFSET _AC(CONFIG_DEFAULT_MEM_START, UL) macro 162 #define ARCH_PFN_OFFSET (PHYS_OFFSET >> PAGE_SHIFT) 173 return off + PHYS_OFFSET; in ___pa() 176 return off + PHYS_OFFSET; in ___pa() 188 ((unsigned long) (x) - PAGE_OFFSET + PHYS_OFFSET) 191 ((void *)((unsigned long) (x) - PHYS_OFFSET + PAGE_OFFSET))
|
| /kernel/linux/linux-5.10/arch/hexagon/include/asm/ |
| H A D | mem-layout.h | 24 * an actual PHYS_OFFSET. Should be set up in head.S. 31 #define PHYS_OFFSET __phys_offset macro 34 #ifndef PHYS_OFFSET 35 #define PHYS_OFFSET 0 macro 38 #define PHYS_PFN_OFFSET (PHYS_OFFSET >> PAGE_SHIFT)
|
| H A D | page.h | 84 * also, check if we need a PHYS_OFFSET. 86 #define __pa(x) ((unsigned long)(x) - PAGE_OFFSET + PHYS_OFFSET) 87 #define __va(x) ((void *)((unsigned long)(x) - PHYS_OFFSET + PAGE_OFFSET))
|
| /kernel/linux/linux-6.6/arch/arm/boot/bootp/ |
| H A D | Makefile | 10 ifdef PHYS_OFFSET 13 # If PHYS_OFFSET is set, INITRD_PHYS and PARAMS_PHYS can be derived, 20 PARAMS_PHYS := $(call add_hex, $(PHYS_OFFSET), 0x100) 28 INITRD_PHYS := $(call add_hex, $(PHYS_OFFSET), $(INITRD_OFFSET)) 36 (echo bootpImage: You must specify PHYS_OFFSET of PARAMS_PHYS ; exit -1)
|
| /kernel/linux/linux-6.6/arch/hexagon/include/asm/ |
| H A D | mem-layout.h | 24 * an actual PHYS_OFFSET. Should be set up in head.S. 31 #define PHYS_OFFSET __phys_offset macro 34 #ifndef PHYS_OFFSET 35 #define PHYS_OFFSET 0 macro 38 #define PHYS_PFN_OFFSET (PHYS_OFFSET >> PAGE_SHIFT)
|
| /kernel/linux/linux-5.10/arch/mips/include/asm/mach-generic/ |
| H A D | spaces.h | 26 # define PHYS_OFFSET ((unsigned long)PFN_PHYS(ARCH_PFN_OFFSET)) macro 27 # elif !defined(PHYS_OFFSET) 28 # define PHYS_OFFSET _AC(0, UL) macro 99 #define PAGE_OFFSET (CAC_BASE + PHYS_OFFSET)
|
| /kernel/linux/linux-6.6/arch/mips/include/asm/mach-generic/ |
| H A D | spaces.h | 26 # define PHYS_OFFSET ((unsigned long)PFN_PHYS(ARCH_PFN_OFFSET)) macro 27 # elif !defined(PHYS_OFFSET) 28 # define PHYS_OFFSET _AC(0, UL) macro 91 #define PAGE_OFFSET (CAC_BASE + PHYS_OFFSET)
|
| /kernel/linux/linux-5.10/arch/arm/mach-ixp4xx/ |
| H A D | common-pci.c | 351 *PCI_AHBMEMBASE = (PHYS_OFFSET & 0xFF000000) + in ixp4xx_pci_preinit() 352 ((PHYS_OFFSET & 0xFF000000) >> 8) + in ixp4xx_pci_preinit() 353 ((PHYS_OFFSET & 0xFF000000) >> 16) + in ixp4xx_pci_preinit() 354 ((PHYS_OFFSET & 0xFF000000) >> 24) + in ixp4xx_pci_preinit() 366 local_write_config(PCI_BASE_ADDRESS_0, 4, PHYS_OFFSET); in ixp4xx_pci_preinit() 367 local_write_config(PCI_BASE_ADDRESS_1, 4, PHYS_OFFSET + SZ_16M); in ixp4xx_pci_preinit() 368 local_write_config(PCI_BASE_ADDRESS_2, 4, PHYS_OFFSET + SZ_32M); in ixp4xx_pci_preinit() 370 PHYS_OFFSET + SZ_32M + SZ_16M); in ixp4xx_pci_preinit() 376 local_write_config(PCI_BASE_ADDRESS_4, 4, PHYS_OFFSET + SZ_64M); in ixp4xx_pci_preinit()
|
| /kernel/linux/linux-5.10/arch/nios2/include/asm/ |
| H A D | page.h | 39 #define PHYS_OFFSET CONFIG_NIOS2_MEM_BASE macro 46 #define ARCH_PFN_OFFSET PFN_UP(PHYS_OFFSET) 80 ((unsigned long)(x) - PAGE_OFFSET + PHYS_OFFSET) 82 ((void *)((unsigned long)(x) + PAGE_OFFSET - PHYS_OFFSET))
|
| /kernel/linux/linux-6.6/arch/nios2/include/asm/ |
| H A D | page.h | 39 #define PHYS_OFFSET CONFIG_NIOS2_MEM_BASE macro 46 #define ARCH_PFN_OFFSET PFN_UP(PHYS_OFFSET) 80 ((unsigned long)(x) - PAGE_OFFSET + PHYS_OFFSET) 82 ((void *)((unsigned long)(x) + PAGE_OFFSET - PHYS_OFFSET))
|
| /kernel/linux/linux-5.10/arch/loongarch/include/asm/ |
| H A D | addrspace.h | 16 #ifndef PHYS_OFFSET 17 #define PHYS_OFFSET _UL(0) macro 52 #define PAGE_OFFSET (CACHE_BASE + PHYS_OFFSET)
|
| /kernel/linux/linux-6.6/arch/loongarch/include/asm/ |
| H A D | addrspace.h | 21 #ifndef PHYS_OFFSET 22 #define PHYS_OFFSET _UL(0) macro 57 #define PAGE_OFFSET (CACHE_BASE + PHYS_OFFSET)
|
| /kernel/linux/linux-5.10/arch/arm/include/asm/ |
| H A D | memory.h | 149 * PLAT_PHYS_OFFSET and not PHYS_OFFSET. 208 #define PHYS_OFFSET ((phys_addr_t)__pv_phys_pfn_offset << PAGE_SHIFT) macro 291 #define PHYS_OFFSET PLAT_PHYS_OFFSET macro 292 #define PHYS_PFN_OFFSET ((unsigned long)(PHYS_OFFSET >> PAGE_SHIFT)) 296 return (phys_addr_t)x - PAGE_OFFSET + PHYS_OFFSET; in __virt_to_phys_nodebug() 301 return x - PHYS_OFFSET + PAGE_OFFSET; in __phys_to_virt()
|
| /kernel/linux/linux-6.6/arch/arm/include/asm/ |
| H A D | memory.h | 160 * PLAT_PHYS_OFFSET and not PHYS_OFFSET. 198 #define PHYS_OFFSET ((phys_addr_t)__pv_phys_pfn_offset << PAGE_SHIFT) macro 281 #define PHYS_OFFSET PLAT_PHYS_OFFSET macro 282 #define PHYS_PFN_OFFSET ((unsigned long)(PHYS_OFFSET >> PAGE_SHIFT)) 286 return (phys_addr_t)x - PAGE_OFFSET + PHYS_OFFSET; in __virt_to_phys_nodebug() 291 return x - PHYS_OFFSET + PAGE_OFFSET; in __phys_to_virt()
|
| /kernel/linux/linux-5.10/arch/arm/mach-footbridge/include/mach/ |
| H A D | memory.h | 45 #define __pfn_to_bus(x) (__pfn_to_phys(x) + (BUS_OFFSET - PHYS_OFFSET)) 46 #define __bus_to_pfn(x) __phys_to_pfn((x) - (BUS_OFFSET - PHYS_OFFSET))
|
| /kernel/linux/linux-5.10/arch/xtensa/mm/ |
| H A D | init.c | 42 /* Reserve all memory below PHYS_OFFSET, as memory in bootmem_init() 45 * If PHYS_OFFSET is zero reserve page at address 0: in bootmem_init() 48 memblock_reserve(0, PHYS_OFFSET ? PHYS_OFFSET : 1); in bootmem_init() 56 min_low_pfn = max(min_low_pfn, PFN_UP(PHYS_OFFSET)); in bootmem_init()
|
| /kernel/linux/linux-5.10/arch/hexagon/mm/ |
| H A D | init.c | 21 #define bootmem_startpg (PFN_UP(((unsigned long) _end) - PAGE_OFFSET + PHYS_OFFSET)) 161 memblock_add(PHYS_OFFSET, in setup_arch_memory() 165 memblock_reserve(PHYS_OFFSET, in setup_arch_memory()
|
| /kernel/linux/linux-5.10/arch/arm64/include/asm/ |
| H A D | memory.h | 173 /* PHYS_OFFSET - the physical address of the start of memory. */ 174 #define PHYS_OFFSET ({ VM_BUG_ON(memstart_addr & 1); memstart_addr; }) macro 201 #define PHYS_PFN_OFFSET (PHYS_OFFSET >> PAGE_SHIFT) 247 #define __lm_to_phys(addr) (((addr) & ~PAGE_OFFSET) + PHYS_OFFSET) 265 #define __phys_to_virt(x) ((unsigned long)((x) - PHYS_OFFSET) | PAGE_OFFSET)
|
| /kernel/linux/linux-5.10/arch/mips/include/asm/ |
| H A D | page.h | 87 # define ARCH_PFN_OFFSET PFN_UP(PHYS_OFFSET) 196 return x - PAGE_OFFSET + PHYS_OFFSET; in ___pa() 199 #define __va(x) ((void *)((unsigned long)(x) + PAGE_OFFSET - PHYS_OFFSET))
|
| /kernel/linux/linux-6.6/arch/mips/include/asm/ |
| H A D | page.h | 87 # define ARCH_PFN_OFFSET PFN_UP(PHYS_OFFSET) 196 return x - PAGE_OFFSET + PHYS_OFFSET; in ___pa() 199 #define __va(x) ((void *)((unsigned long)(x) + PAGE_OFFSET - PHYS_OFFSET))
|
| /kernel/linux/linux-6.6/arch/hexagon/mm/ |
| H A D | init.c | 21 #define bootmem_startpg (PFN_UP(((unsigned long) _end) - PAGE_OFFSET + PHYS_OFFSET)) 158 memblock_add(PHYS_OFFSET, in setup_arch_memory() 162 memblock_reserve(PHYS_OFFSET, in setup_arch_memory()
|
| /kernel/linux/linux-6.6/arch/xtensa/mm/ |
| H A D | init.c | 42 /* Reserve all memory below PHYS_OFFSET, as memory in bootmem_init() 45 * If PHYS_OFFSET is zero reserve page at address 0: in bootmem_init() 48 memblock_reserve(0, PHYS_OFFSET ? PHYS_OFFSET : 1); in bootmem_init() 56 min_low_pfn = max(min_low_pfn, PFN_UP(PHYS_OFFSET)); in bootmem_init()
|
| /kernel/linux/linux-5.10/arch/arm/mach-integrator/ |
| H A D | core.c | 95 memblock_reserve(PHYS_OFFSET, __pa(swapper_pg_dir) - PHYS_OFFSET); in integrator_reserve()
|