Home
last modified time | relevance | path

Searched refs:kernel_map (Results 1 – 11 of 11) sorted by relevance

/linux-6.6.21/arch/riscv/mm/
Dinit.c39 struct kernel_mapping kernel_map __ro_after_init;
40 EXPORT_SYMBOL(kernel_map);
42 #define kernel_map (*(struct kernel_mapping *)XIP_FIXUP(&kernel_map)) macro
153 print_ml("kernel", (unsigned long)kernel_map.virt_addr, in print_vm_layout()
234 kernel_map.va_pa_offset = PAGE_OFFSET - phys_ram_base; in setup_bootmem()
434 BUG_ON((va - kernel_map.virt_addr) >> PUD_SHIFT); in alloc_pmd_early()
498 BUG_ON((va - kernel_map.virt_addr) >> PGDIR_SHIFT); in alloc_pud_early()
536 BUG_ON((va - kernel_map.virt_addr) >> PGDIR_SHIFT); in alloc_p4d_early()
743 kernel_map.page_offset = PAGE_OFFSET_L4; in disable_pgtable_l5()
750 kernel_map.page_offset = PAGE_OFFSET_L3; in disable_pgtable_l4()
[all …]
Dphysaddr.c24 unsigned long kernel_start = kernel_map.virt_addr; in __phys_addr_symbol()
25 unsigned long kernel_end = kernel_start + kernel_map.size; in __phys_addr_symbol()
39 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()
Dptdump.c382 address_markers[KERNEL_MAPPING_NR].start_address = kernel_map.virt_addr; in ptdump_init()
/linux-6.6.21/arch/riscv/include/asm/
Dpage.h31 #define PAGE_OFFSET kernel_map.page_offset
123 extern struct kernel_mapping kernel_map;
127 ((x) >= kernel_map.virt_addr && (x) < (kernel_map.virt_addr + kernel_map.size))
133 #define linear_mapping_pa_to_va(x) ((void *)((unsigned long)(x) + kernel_map.va_pa_offset))
140 (void *)(_y + kernel_map.va_kernel_xip_pa_offset) : \
141 (void *)(_y + kernel_map.va_kernel_pa_offset + XIP_OFFSET); \
146 #define linear_mapping_va_to_pa(x) ((unsigned long)(x) - kernel_map.va_pa_offset)
152 (IS_ENABLED(CONFIG_XIP_KERNEL) && _y < kernel_map.virt_addr + XIP_OFFSET) ? \
153 (_y - kernel_map.va_kernel_xip_pa_offset) : \
154 (_y - kernel_map.va_kernel_pa_offset - XIP_OFFSET); \
/linux-6.6.21/arch/riscv/kernel/
Dcrash_core.c24 kernel_map.va_kernel_pa_offset); in arch_crash_save_vmcoreinfo()
Dmachine_kexec.c237 this_hart_id, kernel_map.va_pa_offset); in machine_kexec()
Dsetup.c343 kernel_map.virt_offset, in dump_kernel_offset()
Dhead.S76 la a1, kernel_map
/linux-6.6.21/tools/perf/
Dbuiltin-report.c606 struct map *kernel_map = machine__kernel_map(&rep->session->machines.host); in report__warn_kptr_restrict() local
607 struct kmap *kernel_kmap = kernel_map ? map__kmap(kernel_map) : NULL; in report__warn_kptr_restrict()
612 if (kernel_map == NULL || in report__warn_kptr_restrict()
613 (map__dso(kernel_map)->hit && in report__warn_kptr_restrict()
620 if (kernel_map && map__has_symbols(kernel_map)) { in report__warn_kptr_restrict()
Dbuiltin-kmem.c346 struct map *kernel_map; in build_alloc_func_list() local
363 kernel_map = machine__kernel_map(machine); in build_alloc_func_list()
364 if (map__load(kernel_map) < 0) { in build_alloc_func_list()
369 map__for_each_symbol(kernel_map, sym, node) { in build_alloc_func_list()
/linux-6.6.21/tools/perf/util/
Dmap.c543 struct map *kernel_map = machine__kernel_map(machine); in map__rip_2objdump() local
545 if (kernel_map) in map__rip_2objdump()
546 map = kernel_map; in map__rip_2objdump()