Home
last modified time | relevance | path

Searched refs:pmd_index (Results 1 – 23 of 23) sorted by relevance

/linux-6.6.21/arch/x86/mm/
Dinit_32.c110 int pmd_idx = pmd_index(vaddr); in populate_extra_pmd()
139 pmd_idx = pmd_index(vaddr); in page_table_range_init_count()
219 pmd_idx = pmd_index(vaddr); in page_table_range_init()
224 pmd = pmd + pmd_index(vaddr); in page_table_range_init()
299 pmd_idx = pmd_index((pfn<<PAGE_SHIFT) + PAGE_OFFSET); in kernel_physical_mapping_init()
Dident_map.c12 pmd_t *pmd = pmd_page + pmd_index(addr); in ident_pmd_init()
Dinit_64.c514 int i = pmd_index(paddr); in phys_pmd_init()
517 pmd_t *pmd = pmd_page + pmd_index(paddr); in phys_pmd_init()
1110 pmd = pmd_start + pmd_index(addr); in remove_pmd_table()
/linux-6.6.21/arch/x86/kernel/
Dhead64.c161 i = pmd_index(vaddr); in sme_postprocess_startup()
301 for (i = 0; i < pmd_index((unsigned long)_text); i++) in __startup_64()
305 for (; i <= pmd_index((unsigned long)_end); i++) in __startup_64()
396 pmd_p[pmd_index(address)] = pmd; in __early_make_pgtable()
/linux-6.6.21/arch/arm/mm/
Dpgd.c79 (pmd_index(MODULES_VADDR) - pmd_index(TASK_SIZE)) in pgd_alloc()
Didmap.c44 pmd += pmd_index(addr); in idmap_add_pmd()
/linux-6.6.21/arch/mips/kvm/
Dmmu.c176 int i_min = pmd_index(start_gpa); in kvm_mips_flush_gpa_pmd()
177 int i_max = pmd_index(end_gpa); in kvm_mips_flush_gpa_pmd()
308 int i_min = pmd_index(start); \
309 int i_max = pmd_index(end); \
/linux-6.6.21/arch/x86/power/
Dhibernate_64.c68 set_pmd(pmd + pmd_index(restore_jump_address), in set_up_temporary_text_mapping()
Dhibernate_32.c158 set_pmd(pmd + pmd_index(restore_jump_address), in set_up_temporary_text_mapping()
/linux-6.6.21/include/linux/
Dpgtable.h70 #ifndef pmd_index
71 static inline unsigned long pmd_index(unsigned long address) in pmd_index() function
75 #define pmd_index pmd_index macro
123 return pud_pgtable(*pud) + pmd_index(address); in pmd_offset()
/linux-6.6.21/tools/testing/selftests/kvm/lib/aarch64/
Dprocessor.c44 static uint64_t pmd_index(struct kvm_vm *vm, vm_vaddr_t gva) in pmd_index() function
139 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + pmd_index(vm, vaddr) * 8; in _virt_pg_map()
178 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + pmd_index(vm, gva) * 8; in virt_get_pte_hva()
/linux-6.6.21/arch/csky/mm/
Dinit.c167 k = pmd_index(vaddr); in fixrange_init()
/linux-6.6.21/arch/um/kernel/
Dmem.c123 j = pmd_index(vaddr); in fixrange_init()
/linux-6.6.21/arch/sh/mm/
Dinit.c186 k = pmd_index(vaddr); in page_table_range_init()
/linux-6.6.21/arch/riscv/include/asm/
Dpgtable-64.h247 #define pmd_index(addr) (((addr) >> PMD_SHIFT) & (PTRS_PER_PMD - 1)) macro
/linux-6.6.21/arch/riscv/mm/
Dinit.c458 uintptr_t pmd_idx = pmd_index(va); in create_pmd_mapping()
1195 fix_bmap_spmd = fixmap_pmd[pmd_index(__fix_to_virt(FIX_BTMAP_BEGIN))]; in setup_vm()
1196 fix_bmap_epmd = fixmap_pmd[pmd_index(__fix_to_virt(FIX_BTMAP_END))]; in setup_vm()
/linux-6.6.21/arch/s390/include/asm/
Dpgtable.h1374 #define pmd_index(address) (((address) >> PMD_SHIFT) & (PTRS_PER_PMD-1)) macro
1464 return (pmd_t *) pud_deref(pud) + pmd_index(address); in pmd_offset_lockless()
1627 sto = __pa(pmdp) - pmd_index(addr) * sizeof(pmd_t); in __pmdp_idte()
/linux-6.6.21/arch/mips/mm/
Dinit.c247 k = pmd_index(vaddr); in fixrange_init()
/linux-6.6.21/arch/x86/xen/
Dmmu_pv.c560 nr = last ? pmd_index(limit) + 1 : PTRS_PER_PMD; in xen_pmd_walk()
1016 pmd_t *pmd = level2_kernel_pgt + pmd_index(vaddr); in xen_cleanhighmap()
1869 pmd = native_make_pmd(xen_read_phys_ulong(pa + pmd_index(vaddr) * in xen_early_virt_to_phys()
/linux-6.6.21/arch/arm64/include/asm/
Dpgtable.h722 #define pmd_offset_phys(dir, addr) (pud_page_paddr(READ_ONCE(*(dir))) + pmd_index(addr) * sizeof(pm…
/linux-6.6.21/arch/powerpc/mm/book3s64/
Dradix_pgtable.c763 pmd = pmd_start + pmd_index(addr); in remove_pmd_table()
/linux-6.6.21/mm/
Dvmscan.c4094 i = addr == -1 ? 0 : pmd_index(addr) - pmd_index(*first); in walk_pmd_range_locked()
4181 for (i = pmd_index(start), addr = start; addr != end; i++, addr = next) { in walk_pmd_range()
Dhugetlb.c6931 if (pmd_index(addr) != pmd_index(saddr) || in page_table_shareable()