Home
last modified time | relevance | path

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

/linux/arch/riscv/mm/
H A 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()
H A Dinit.c251 kernel_map.va_pa_offset = PAGE_OFFSET - phys_ram_base; in setup_bootmem()
1134 kernel_map.va_pa_offset = IS_ENABLED(CONFIG_64BIT) ? in setup_vm()
/linux/arch/riscv/include/asm/
H A Dpage.h111 unsigned long va_pa_offset; member
133 #define linear_mapping_pa_to_va(x) ((void *)((unsigned long)(x) + kernel_map.va_pa_offset))
152 #define linear_mapping_va_to_pa(x) ((unsigned long)(x) - kernel_map.va_pa_offset)
/linux/arch/riscv/kernel/
H A Dmachine_kexec.c203 this_hart_id, kernel_map.va_pa_offset); in machine_kexec()
/linux/arch/csky/mm/
H A Dinit.c143 set_pte(&kernel_pte_tables[i - PFN_DOWN(va_pa_offset)], pfn_pte(i, PAGE_KERNEL)); in mmu_init()