Searched refs:pmd_index (Results 1 – 20 of 20) sorted by relevance
/linux/arch/x86/boot/startup/ |
H A D | map_kernel.c | 66 i = pmd_index(paddr - p2v_offset); in sme_postprocess_startup() 204 for (i = 0; i < pmd_index(va_text); i++) in __startup_64() 208 for (; i <= pmd_index(va_end); i++) in __startup_64()
|
/linux/arch/x86/mm/ |
H A D | init_32.c | 110 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()
|
H A D | ident_map.c | 85 pmd_t *pmd = pmd_page + pmd_index(addr); in ident_pmd_init()
|
H A D | init_64.c | 514 int i = pmd_index(paddr); in phys_pmd_init() 517 pmd_t *pmd = pmd_page + pmd_index(paddr); in phys_pmd_init() 1134 pmd = pmd_start + pmd_index(addr); in remove_pmd_table()
|
/linux/arch/arm/mm/ |
H A D | pgd.c | 77 (pmd_index(MODULES_VADDR) - pmd_index(TASK_SIZE)) in pgd_alloc()
|
H A D | idmap.c | 44 pmd += pmd_index(addr); in idmap_add_pmd()
|
/linux/arch/mips/kvm/ |
H A D | mmu.c | 176 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/arch/x86/power/ |
H A D | hibernate_64.c | 68 set_pmd(pmd + pmd_index(restore_jump_address), in set_up_temporary_text_mapping()
|
H A D | hibernate_32.c | 158 set_pmd(pmd + pmd_index(restore_jump_address), in set_up_temporary_text_mapping()
|
/linux/include/linux/ |
H A D | pgtable.h | 72 #ifndef pmd_index 73 static inline unsigned long pmd_index(unsigned long address) in pmd_index() function 77 #define pmd_index pmd_index macro 146 return pud_pgtable(*pud) + pmd_index(address); in pmd_offset()
|
/linux/arch/csky/mm/ |
H A D | init.c | 100 k = pmd_index(vaddr); in fixrange_init()
|
/linux/tools/testing/selftests/kvm/lib/arm64/ |
H A D | processor.c | 47 static uint64_t pmd_index(struct kvm_vm *vm, vm_vaddr_t gva) in pmd_index() function 162 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + pmd_index(vm, vaddr) * 8; in _virt_pg_map() 206 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + pmd_index(vm, gva) * 8; in virt_get_pte_hva()
|
/linux/arch/sh/mm/ |
H A D | init.c | 180 k = pmd_index(vaddr); in page_table_range_init()
|
/linux/arch/riscv/mm/ |
H A D | init.c | 541 uintptr_t pmd_idx = pmd_index(va); in create_pmd_mapping() 1243 fix_bmap_spmd = fixmap_pmd[pmd_index(__fix_to_virt(FIX_BTMAP_BEGIN))]; in setup_vm() 1244 fix_bmap_epmd = fixmap_pmd[pmd_index(__fix_to_virt(FIX_BTMAP_END))]; in setup_vm() 1683 pmdp = pmd_base + pmd_index(addr); in remove_pmd_mapping()
|
/linux/arch/arm64/mm/ |
H A D | mmu.c | 309 pmdp += pmd_index(addr); in alloc_init_cont_pmd() 328 pmdp += pmd_index(next) - pmd_index(addr); in alloc_init_cont_pmd()
|
/linux/arch/mips/mm/ |
H A D | init.c | 241 k = pmd_index(vaddr); in fixrange_init()
|
/linux/arch/x86/xen/ |
H A D | mmu_pv.c | 602 nr = last ? pmd_index(limit) + 1 : PTRS_PER_PMD; in xen_pmd_walk() 1065 pmd_t *pmd = level2_kernel_pgt + pmd_index(vaddr); in xen_cleanhighmap() 1919 pmd = native_make_pmd(xen_read_phys_ulong(pa + pmd_index(vaddr) * in xen_early_virt_to_phys()
|
/linux/arch/powerpc/mm/book3s64/ |
H A D | radix_pgtable.c | 827 pmd = pmd_start + pmd_index(addr); in remove_pmd_table()
|
/linux/mm/ |
H A D | vmscan.c | 3623 i = addr == -1 ? 0 : pmd_index(addr) - pmd_index(*first); in walk_pmd_range_locked() 3712 for (i = pmd_index(start), addr = start; addr != end; i++, addr = next) { in walk_pmd_range()
|
H A D | hugetlb.c | 7471 if (pmd_index(addr) != pmd_index(saddr) || in page_table_shareable()
|