Home
last modified time | relevance | path

Searched refs:pud_index (Results 1 – 25 of 25) sorted by relevance

/linux-6.12.1/arch/mips/kvm/
Dmmu.c204 int i_min = pud_index(start_gpa); in kvm_mips_flush_gpa_pud()
205 int i_max = pud_index(end_gpa); in kvm_mips_flush_gpa_pud()
331 int i_min = pud_index(start); \
332 int i_max = pud_index(end); \
/linux-6.12.1/arch/x86/include/asm/
Dpgtable_64.h276 #define pud_index(x) (((x) >> PUD_SHIFT) & (PTRS_PER_PUD - 1)) macro
281 L3_START_KERNEL = pud_index(__START_KERNEL_map)
/linux-6.12.1/arch/riscv/mm/
Dinit.c588 uintptr_t pud_index = pud_index(va); in create_pud_mapping() local
591 if (pud_val(pudp[pud_index]) == 0) in create_pud_mapping()
592 pudp[pud_index] = pfn_pud(PFN_DOWN(pa), prot); in create_pud_mapping()
596 if (pud_val(pudp[pud_index]) == 0) { in create_pud_mapping()
598 pudp[pud_index] = pfn_pud(PFN_DOWN(next_phys), PAGE_TABLE); in create_pud_mapping()
602 next_phys = PFN_PHYS(_pud_pfn(pudp[pud_index])); in create_pud_mapping()
1688 pudp = pud_base + pud_index(addr); in remove_pud_mapping()
Dpgtable.c48 return p4d_pgtable(p4dp_get(p4d)) + pud_index(address); in pud_offset()
Dkasan_init.c175 pudp = base_pud + pud_index(vaddr); in kasan_early_clear_pud()
246 pudp = base_pud + pud_index(vaddr); in kasan_early_populate_pud()
/linux-6.12.1/arch/x86/power/
Dhibernate_64.c70 set_pud(pud + pud_index(restore_jump_address), in set_up_temporary_text_mapping()
/linux-6.12.1/arch/x86/mm/
Dkaslr.c184 pud_tramp = pud_page_tramp + pud_index(paddr); in init_trampoline_kaslr()
Dinit_64.c320 pud_t *pud = pud_page + pud_index(vaddr); in set_pte_vaddr_pud()
602 int i = pud_index(vaddr); in phys_pud_init()
610 pud = pud_page + pud_index(vaddr); in phys_pud_init()
1169 pud = pud_start + pud_index(addr); in remove_pud_table()
Dident_map.c100 pud_t *pud = pud_page + pud_index(addr); in ident_pud_init()
/linux-6.12.1/include/linux/
Dpgtable.h80 #ifndef pud_index
81 static inline unsigned long pud_index(unsigned long address) in pud_index() function
85 #define pud_index pud_index macro
133 return p4d_pgtable(*p4d) + pud_index(address); in pud_offset()
/linux-6.12.1/tools/testing/selftests/kvm/lib/aarch64/
Dprocessor.c36 static uint64_t pud_index(struct kvm_vm *vm, vm_vaddr_t gva) in pud_index() function
154 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + pud_index(vm, vaddr) * 8; in _virt_pg_map()
193 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + pud_index(vm, gva) * 8; in virt_get_pte_hva()
/linux-6.12.1/arch/x86/kernel/
Despfix_64.c162 pud_p = &espfix_pud_page[pud_index(addr)]; in init_espfix_ap()
Dhead64.c332 pud_p += pud_index(address); in __early_make_pgtable()
/linux-6.12.1/drivers/pinctrl/samsung/
Dpinctrl-samsung.h76 enum pud_index { enum
/linux-6.12.1/arch/csky/mm/
Dinit.c166 j = pud_index(vaddr); in fixrange_init()
/linux-6.12.1/arch/x86/platform/efi/
Defi_64.c141 num_entries = pud_index(EFI_VA_END); in efi_sync_low_kernel_mappings()
147 num_entries = PTRS_PER_PUD - pud_index(EFI_VA_START); in efi_sync_low_kernel_mappings()
/linux-6.12.1/arch/sh/mm/
Dinit.c185 j = pud_index(vaddr); in page_table_range_init()
/linux-6.12.1/arch/riscv/include/asm/
Dpgtable-64.h338 #define pud_index(addr) (((addr) >> PUD_SHIFT) & (PTRS_PER_PUD - 1)) macro
/linux-6.12.1/arch/arm64/include/asm/
Dpgtable.h926 #define pud_index(addr) (((addr) >> PUD_SHIFT) & (PTRS_PER_PUD - 1)) macro
930 return (pud_t *)PTR_ALIGN_DOWN(p4dp, PAGE_SIZE) + pud_index(addr); in p4d_to_folded_pud()
942 return p4d_page_paddr(READ_ONCE(*p4dp)) + pud_index(addr) * sizeof(pud_t); in pud_offset_phys()
950 return (pud_t *)__va(p4d_page_paddr(p4d)) + pud_index(addr); in pud_offset_lockless()
/linux-6.12.1/arch/s390/include/asm/
Dpgtable.h1429 #define pud_index(address) (((address) >> PUD_SHIFT) & (PTRS_PER_PUD-1)) macro
1507 return (pud_t *) p4d_deref(p4d) + pud_index(address); in pud_offset_lockless()
1710 r3o = __pa(pudp) - pud_index(addr) * sizeof(pud_t); in __pudp_idte()
/linux-6.12.1/arch/mips/mm/
Dinit.c248 j = pud_index(vaddr); in fixrange_init()
/linux-6.12.1/arch/x86/xen/
Dmmu_pv.c573 nr = last ? pud_index(limit) + 1 : PTRS_PER_PUD; in xen_pud_walk()
1742 l2 = m2v(l3[pud_index(__START_KERNEL_map)].pud); in xen_setup_kernel_pagetable()
1861 pud = native_make_pud(xen_read_phys_ulong(pa + pud_index(vaddr) * in xen_early_virt_to_phys()
/linux-6.12.1/arch/powerpc/mm/book3s64/
Dradix_pgtable.c879 pud = pud_start + pud_index(addr); in remove_pud_table()
/linux-6.12.1/arch/arm64/mm/
Dmmu.c345 pudp += pud_index(addr); in alloc_init_pud()
/linux-6.12.1/mm/
Dvmscan.c3610 for (i = pud_index(start), addr = start; addr != end; i++, addr = next) { in walk_pud_range()