Home
last modified time | relevance | path

Searched refs:va_pa_offset (Results 1 – 7 of 7) sorted by relevance

/linux-6.6.21/arch/riscv/mm/
Dphysaddr.c39 BUG_ON(!kernel_map.va_pa_offset); in linear_mapping_va_to_pa()
41 return ((unsigned long)(x) - kernel_map.va_pa_offset); in linear_mapping_va_to_pa()
47 BUG_ON(!kernel_map.va_pa_offset); in linear_mapping_pa_to_va()
49 return ((void *)((unsigned long)(x) + kernel_map.va_pa_offset)); in linear_mapping_pa_to_va()
Dinit.c234 kernel_map.va_pa_offset = PAGE_OFFSET - phys_ram_base; in setup_bootmem()
1096 kernel_map.va_pa_offset = IS_ENABLED(CONFIG_64BIT) ? in setup_vm()
/linux-6.6.21/arch/csky/include/asm/
Dpage.h71 extern unsigned long va_pa_offset;
73 #define ARCH_PFN_OFFSET PFN_DOWN(va_pa_offset + PHYS_OFFSET_OFFSET)
75 #define __pa(x) ((unsigned long)(x) - PAGE_OFFSET + va_pa_offset)
76 #define __va(x) ((void *)((unsigned long)(x) + PAGE_OFFSET - va_pa_offset))
/linux-6.6.21/arch/csky/kernel/
Dsetup.c102 unsigned long va_pa_offset; variable
103 EXPORT_SYMBOL(va_pa_offset);
122 va_pa_offset = read_mmu_msa() & ~(SSEG_SIZE - 1); in csky_start()
/linux-6.6.21/arch/riscv/include/asm/
Dpage.h113 unsigned long va_pa_offset; member
133 #define linear_mapping_pa_to_va(x) ((void *)((unsigned long)(x) + kernel_map.va_pa_offset))
146 #define linear_mapping_va_to_pa(x) ((unsigned long)(x) - kernel_map.va_pa_offset)
/linux-6.6.21/arch/riscv/kernel/
Dmachine_kexec.c237 this_hart_id, kernel_map.va_pa_offset); in machine_kexec()
/linux-6.6.21/arch/csky/mm/
Dinit.c143 set_pte(&kernel_pte_tables[i - PFN_DOWN(va_pa_offset)], pfn_pte(i, PAGE_KERNEL)); in mmu_init()