Home
last modified time | relevance | path

Searched refs:p4d_index (Results 1 – 14 of 14) sorted by relevance

/openbmc/linux/arch/riscv/mm/
H A Dkasan_init.c200 p4dp = base_p4d + p4d_index(vaddr); in kasan_early_clear_p4d()
284 p4dp = base_p4d + p4d_index(vaddr); in kasan_early_populate_p4d()
468 ptr = (pud_t *)p4d_page_vaddr(p4dp_get(base_p4d + p4d_index(KASAN_SHADOW_END))); in create_tmp_mapping()
470 set_p4d(&base_p4d[p4d_index(KASAN_SHADOW_END)], in create_tmp_mapping()
H A Dinit.c598 uintptr_t p4d_index = p4d_index(va); in create_p4d_mapping() local
601 if (p4d_val(p4dp[p4d_index]) == 0) in create_p4d_mapping()
602 p4dp[p4d_index] = pfn_p4d(PFN_DOWN(pa), prot); in create_p4d_mapping()
606 if (p4d_val(p4dp[p4d_index]) == 0) { in create_p4d_mapping()
608 p4dp[p4d_index] = pfn_p4d(PFN_DOWN(next_phys), PAGE_TABLE); in create_p4d_mapping()
612 next_phys = PFN_PHYS(_p4d_pfn(p4dp[p4d_index])); in create_p4d_mapping()
H A Dpgtable.c43 return pgd_pgtable(pgdp_get(pgd)) + p4d_index(address); in p4d_offset()
/openbmc/linux/arch/x86/power/
H A Dhibernate_64.c76 set_p4d(p4d + p4d_index(restore_jump_address), new_p4d); in set_up_temporary_text_mapping()
/openbmc/linux/arch/x86/mm/
H A Dkaslr.c190 p4d_tramp = p4d_page_tramp + p4d_index(paddr); in init_trampoline_kaslr()
H A Dident_map.c68 p4d_t *p4d = p4d_page + p4d_index(addr); in ident_p4d_init()
H A Dinit_64.c312 p4d_t *p4d = p4d_page + p4d_index(vaddr); in set_pte_vaddr_p4d()
689 p4d_t *p4d = p4d_page + p4d_index(vaddr); in phys_p4d_init()
1197 p4d = p4d_start + p4d_index(addr); in remove_p4d_table()
H A Dkasan_init_64.c201 return (p4d_t *)p4d + p4d_index(addr); in early_p4d_offset()
/openbmc/linux/arch/mips/include/asm/
H A Dpgtable-64.h215 #define p4d_index(address) (((address) >> P4D_SHIFT) & (PTRS_PER_P4D - 1)) macro
/openbmc/linux/arch/riscv/include/asm/
H A Dpgtable-64.h394 #define p4d_index(addr) (((addr) >> P4D_SHIFT) & (PTRS_PER_P4D - 1)) macro
/openbmc/linux/arch/x86/kernel/
H A Dhead64.c365 p4d_p += p4d_index(address); in __early_make_pgtable()
/openbmc/linux/arch/x86/include/asm/
H A Dpgtable.h1124 static inline unsigned long p4d_index(unsigned long address) in p4d_index() function
1153 return (p4d_t *)pgd_page_vaddr(*pgd) + p4d_index(address); in p4d_offset()
/openbmc/linux/arch/x86/platform/efi/
H A Defi_64.c126 num_entries = p4d_index(EFI_VA_END); in efi_sync_low_kernel_mappings()
/openbmc/linux/arch/s390/include/asm/
H A Dpgtable.h1382 #define p4d_index(address) (((address) >> P4D_SHIFT) & (PTRS_PER_P4D-1)) macro
1447 return (p4d_t *) pgd_deref(pgd) + p4d_index(address); in p4d_offset_lockless()