Home
last modified time | relevance | path

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

/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()
476 ptr = (pud_t *)p4d_page_vaddr(p4dp_get(base_p4d + p4d_index(KASAN_SHADOW_END))); in create_tmp_mapping()
478 set_p4d(&base_p4d[p4d_index(KASAN_SHADOW_END)], in create_tmp_mapping()
H A Dinit.c614 uintptr_t p4d_index = p4d_index(va); in create_p4d_mapping() local
617 if (p4d_val(p4dp[p4d_index]) == 0) in create_p4d_mapping()
618 p4dp[p4d_index] = pfn_p4d(PFN_DOWN(pa), prot); in create_p4d_mapping()
622 if (p4d_val(p4dp[p4d_index]) == 0) { in create_p4d_mapping()
624 p4dp[p4d_index] = pfn_p4d(PFN_DOWN(next_phys), PAGE_TABLE); in create_p4d_mapping()
628 next_phys = PFN_PHYS(_p4d_pfn(p4dp[p4d_index])); in create_p4d_mapping()
1719 p4dp = p4d_base + p4d_index(addr); in remove_p4d_mapping()
H A Dpgtable.c56 return pgd_pgtable(pgdp_get(pgd)) + p4d_index(address); in p4d_offset()
/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()
/linux/arch/x86/mm/
H A Dkaslr.c190 p4d_tramp = p4d_page_tramp + p4d_index(paddr); in init_trampoline_kaslr()
H A Dident_map.c154 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()
695 p4d_t *p4d = p4d_page + p4d_index(vaddr); in phys_p4d_init()
1203 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()
/linux/arch/mips/include/asm/
H A Dpgtable-64.h215 #define p4d_index(address) (((address) >> P4D_SHIFT) & (PTRS_PER_P4D - 1)) macro
/linux/arch/arm64/include/asm/
H A Dpgtable.h1050 #define p4d_index(addr) (((addr) >> P4D_SHIFT) & (PTRS_PER_P4D - 1)) macro
1054 return (p4d_t *)PTR_ALIGN_DOWN(pgdp, PAGE_SIZE) + p4d_index(addr); in pgd_to_folded_p4d()
1061 return pgd_page_paddr(READ_ONCE(*pgdp)) + p4d_index(addr) * sizeof(p4d_t); in p4d_offset_phys()
1069 return (p4d_t *)__va(pgd_page_paddr(pgd)) + p4d_index(addr); in p4d_offset_lockless()
1112 #define p4d_index(addr) (((addr) >> P4D_SHIFT) & (PTRS_PER_P4D - 1)) macro
/linux/arch/riscv/include/asm/
H A Dpgtable-64.h396 #define p4d_index(addr) (((addr) >> P4D_SHIFT) & (PTRS_PER_P4D - 1)) macro
/linux/arch/x86/kernel/
H A Dhead64.c317 p4d_p += p4d_index(address); in __early_make_pgtable()
/linux/arch/x86/platform/efi/
H A Defi_64.c126 num_entries = p4d_index(EFI_VA_END); in efi_sync_low_kernel_mappings()
/linux/arch/x86/include/asm/
H A Dpgtable.h1177 static inline unsigned long p4d_index(unsigned long address) in p4d_index() function
1206 return (p4d_t *)pgd_page_vaddr(*pgd) + p4d_index(address); in p4d_offset()
/linux/arch/s390/include/asm/
H A Dpgtable.h1428 #define p4d_index(address) (((address) >> P4D_SHIFT) & (PTRS_PER_P4D-1)) macro
1494 return (p4d_t *) pgd_deref(pgd) + p4d_index(address); in p4d_offset_lockless()
/linux/arch/arm64/mm/
H A Dmmu.c403 p4dp += p4d_index(addr); in alloc_init_p4d()