Home
last modified time | relevance | path

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

12

/linux-6.6.21/arch/powerpc/kvm/
Dbook3s_hv_rm_mmu.c69 unsigned long *rmap, long pte_index, int realmode) in kvmppc_add_revmap_chain() argument
84 tail->forw = pte_index; in kvmppc_add_revmap_chain()
85 head->back = pte_index; in kvmppc_add_revmap_chain()
87 rev->forw = rev->back = pte_index; in kvmppc_add_revmap_chain()
89 pte_index | KVMPPC_RMAP_PRESENT | KVMPPC_RMAP_HPT; in kvmppc_add_revmap_chain()
147 static void remove_revmap_chain(struct kvm *kvm, long pte_index, in remove_revmap_chain() argument
170 if (head == pte_index) { in remove_revmap_chain()
172 if (head == pte_index) in remove_revmap_chain()
185 long pte_index, unsigned long pteh, unsigned long ptel, in kvmppc_do_h_enter() argument
303 if (pte_index >= kvmppc_hpt_npte(&kvm->arch.hpt)) in kvmppc_do_h_enter()
[all …]
Dbook3s_pr_papr.c23 static unsigned long get_pteg_addr(struct kvm_vcpu *vcpu, long pte_index) in get_pteg_addr() argument
28 pte_index <<= 4; in get_pteg_addr()
29 pte_index &= ((1 << ((vcpu_book3s->sdr1 & 0x1f) + 11)) - 1) << 7 | 0x70; in get_pteg_addr()
31 pteg_addr |= pte_index; in get_pteg_addr()
39 long pte_index = kvmppc_get_gpr(vcpu, 5); in kvmppc_h_pr_enter() local
45 i = pte_index & 7; in kvmppc_h_pr_enter()
46 pte_index &= ~7UL; in kvmppc_h_pr_enter()
47 pteg_addr = get_pteg_addr(vcpu, pte_index); in kvmppc_h_pr_enter()
76 kvmppc_set_gpr(vcpu, 4, pte_index | i); in kvmppc_h_pr_enter()
89 unsigned long pte_index = kvmppc_get_gpr(vcpu, 5); in kvmppc_h_pr_remove() local
[all …]
Dbook3s_64_mmu_hv.c48 long pte_index, unsigned long pteh,
293 long pte_index, unsigned long pteh, in kvmppc_virtmode_do_h_enter() argument
299 ret = kvmppc_do_h_enter(kvm, flags, pte_index, pteh, ptel, in kvmppc_virtmode_do_h_enter()
/linux-6.6.21/tools/testing/selftests/kvm/lib/riscv/
Dprocessor.c46 static uint64_t pte_index(struct kvm_vm *vm, vm_vaddr_t gva, int level) in pte_index() function
88 ptep = addr_gpa2hva(vm, vm->pgd) + pte_index(vm, vaddr, level) * 8; in virt_arch_pg_map()
98 pte_index(vm, vaddr, level) * 8; in virt_arch_pg_map()
121 ptep = addr_gpa2hva(vm, vm->pgd) + pte_index(vm, gva, level) * 8; in addr_arch_gva2gpa()
128 pte_index(vm, gva, level) * 8; in addr_arch_gva2gpa()
/linux-6.6.21/arch/powerpc/include/asm/
Dkvm_book3s.h239 unsigned long *rmap, long pte_index, int realmode);
243 unsigned long pte_index);
245 unsigned long pte_index);
251 long pte_index, unsigned long pteh, unsigned long ptel,
254 unsigned long pte_index, unsigned long avpn,
Dkvm_ppc.h795 long pte_index, unsigned long pteh, unsigned long ptel);
797 unsigned long pte_index, unsigned long avpn);
800 unsigned long pte_index, unsigned long avpn);
802 unsigned long pte_index);
804 unsigned long pte_index);
806 unsigned long pte_index);
Dkvm_book3s_64.h299 unsigned long pte_index) in compute_tlbie_rb() argument
326 va_low = pte_index >> 3; in compute_tlbie_rb()
Dkvm_host.h472 unsigned long pte_index; member
/linux-6.6.21/arch/mips/kvm/
Dmmu.c157 int i_min = pte_index(start_gpa); in kvm_mips_flush_gpa_pte()
158 int i_max = pte_index(end_gpa); in kvm_mips_flush_gpa_pte()
282 int i_min = pte_index(start); \
283 int i_max = pte_index(end); \
/linux-6.6.21/drivers/iommu/
Drockchip-iommu.c536 u32 dte_index, pte_index, page_offset; in log_iova() local
548 pte_index = rk_iova_pte_index(iova); in log_iova()
561 pte_addr_phys = rk_ops->pt_address(dte) + (pte_index * 4); in log_iova()
573 &iova, dte_index, pte_index, page_offset); in log_iova()
826 u32 dte_index, pte_index; in rk_iommu_map() local
845 pte_index = rk_iova_pte_index(iova); in rk_iommu_map()
846 pte_addr = &page_table[pte_index]; in rk_iommu_map()
848 pte_dma = rk_ops->pt_address(dte_index) + pte_index * sizeof(u32); in rk_iommu_map()
Dsun50i-iommu.c596 u32 pte_index; in sun50i_iommu_map() local
606 pte_index = sun50i_iova_get_pte_index(iova); in sun50i_iommu_map()
607 pte_addr = &page_table[pte_index]; in sun50i_iommu_map()
/linux-6.6.21/tools/testing/selftests/kvm/lib/aarch64/
Dprocessor.c55 static uint64_t pte_index(struct kvm_vm *vm, vm_vaddr_t gva) in pte_index() function
144 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + pte_index(vm, vaddr) * 8; in _virt_pg_map()
183 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + pte_index(vm, gva) * 8; in virt_get_pte_hva()
/linux-6.6.21/arch/x86/power/
Dhibernate_32.c164 set_pte(pte + pte_index(restore_jump_address), in set_up_temporary_text_mapping()
/linux-6.6.21/arch/arm64/mm/
Dfixmap.c37 return &bm_pte[BM_PTE_TABLE_IDX(addr)][pte_index(addr)]; in fixmap_pte()
/linux-6.6.21/arch/x86/mm/
Dinit_32.c117 int pte_idx = pte_index(vaddr); in populate_extra_pte()
342 pte_ofs = pte_index((pfn<<PAGE_SHIFT) + PAGE_OFFSET); in kernel_physical_mapping_init()
Dinit_64.c462 pte = pte_page + pte_index(paddr); in phys_pte_init()
463 i = pte_index(paddr); in phys_pte_init()
1067 pte = pte_start + pte_index(addr); in remove_pte_table()
Dioremap.c869 return &bm_pte[pte_index(addr)]; in early_ioremap_pte()
/linux-6.6.21/arch/x86/boot/compressed/
Dident_map_64.c228 return pte + pte_index(__address); in split_large_pmd()
/linux-6.6.21/include/linux/
Dpgtable.h65 static inline unsigned long pte_index(unsigned long address) in pte_index() function
94 return (pte_t *)pmd_page_vaddr(*pmd) + pte_index(address); in pte_offset_kernel()
101 ((pte_t *)kmap_local_page(pmd_page(*(pmd))) + pte_index((address)))
/linux-6.6.21/mm/
Dhugetlb_vmemmap.c511 vmemmap_page = pmd_page(pmd) + pte_index(vaddr); in vmemmap_should_optimize()
/linux-6.6.21/arch/riscv/mm/
Dinit.c324 ptep = &fixmap_pte[pte_index(addr)]; in __set_fixmap()
375 uintptr_t pte_idx = pte_index(va); in create_pte_mapping()
/linux-6.6.21/arch/arm64/include/asm/
Dpgtable.h659 #define pte_offset_phys(dir,addr) (pmd_page_paddr(READ_ONCE(*(dir))) + pte_index(addr) * sizeof(pte…
/linux-6.6.21/arch/powerpc/mm/book3s64/
Dradix_pgtable.c729 pte = pte_start + pte_index(addr); in remove_pte_table()
/linux-6.6.21/arch/arm/mm/
Dmmu.c362 return &bm_pte[pte_index(addr)]; in pte_offset_early_fixmap()
/linux-6.6.21/arch/x86/xen/
Dmmu_pv.c1877 pte = native_make_pte(xen_read_phys_ulong(pa + pte_index(vaddr) * in xen_early_virt_to_phys()

12