Home
last modified time | relevance | path

Searched refs:hptep (Results 1 – 7 of 7) sorted by relevance

/linux-6.12.1/arch/powerpc/mm/book3s64/
Dhash_native.c242 static inline void native_lock_hpte(struct hash_pte *hptep) in native_lock_hpte() argument
244 unsigned long *word = (unsigned long *)&hptep->v; in native_lock_hpte()
257 static inline void native_unlock_hpte(struct hash_pte *hptep) in native_unlock_hpte() argument
259 unsigned long *word = (unsigned long *)&hptep->v; in native_unlock_hpte()
269 struct hash_pte *hptep = htab_address + hpte_group; in native_hpte_insert() local
283 if (! (be64_to_cpu(hptep->v) & HPTE_V_VALID)) { in native_hpte_insert()
285 native_lock_hpte(hptep); in native_hpte_insert()
286 if (! (be64_to_cpu(hptep->v) & HPTE_V_VALID)) in native_hpte_insert()
288 native_unlock_hpte(hptep); in native_hpte_insert()
291 hptep++; in native_hpte_insert()
[all …]
/linux-6.12.1/arch/powerpc/kvm/
Dbook3s_64_mmu_hv.c349 __be64 *hptep; in kvmppc_mmu_book3s_64_hv_xlate() local
375 hptep = (__be64 *)(kvm->arch.hpt.virt + (index << 4)); in kvmppc_mmu_book3s_64_hv_xlate()
376 v = orig_v = be64_to_cpu(hptep[0]) & ~HPTE_V_HVLOCK; in kvmppc_mmu_book3s_64_hv_xlate()
378 v = hpte_new_to_old_v(v, be64_to_cpu(hptep[1])); in kvmppc_mmu_book3s_64_hv_xlate()
381 unlock_hpte(hptep, orig_v); in kvmppc_mmu_book3s_64_hv_xlate()
512 __be64 *hptep; in kvmppc_book3s_hv_page_fault() local
554 hptep = (__be64 *)(kvm->arch.hpt.virt + (index << 4)); in kvmppc_book3s_hv_page_fault()
557 while (!try_lock_hpte(hptep, HPTE_V_HVLOCK)) in kvmppc_book3s_hv_page_fault()
559 hpte[0] = be64_to_cpu(hptep[0]) & ~HPTE_V_HVLOCK; in kvmppc_book3s_hv_page_fault()
560 hpte[1] = be64_to_cpu(hptep[1]); in kvmppc_book3s_hv_page_fault()
[all …]
Dtrace_hv.h293 TP_PROTO(struct kvm_vcpu *vcpu, unsigned long *hptep,
297 TP_ARGS(vcpu, hptep, memslot, ea, dsisr),
312 __entry->hpte_v = hptep[0];
313 __entry->hpte_r = hptep[1];
314 __entry->gpte_r = hptep[2];
329 TP_PROTO(struct kvm_vcpu *vcpu, unsigned long *hptep, long ret),
331 TP_ARGS(vcpu, hptep, ret),
342 __entry->hpte_v = hptep[0];
343 __entry->hpte_r = hptep[1];
Dbook3s_hv_rm_mmu.c1016 void kvmppc_invalidate_hpte(struct kvm *kvm, __be64 *hptep, in kvmppc_invalidate_hpte() argument
1022 hptep[0] &= ~cpu_to_be64(HPTE_V_VALID); in kvmppc_invalidate_hpte()
1023 hp0 = be64_to_cpu(hptep[0]); in kvmppc_invalidate_hpte()
1024 hp1 = be64_to_cpu(hptep[1]); in kvmppc_invalidate_hpte()
1034 void kvmppc_clear_ref_hpte(struct kvm *kvm, __be64 *hptep, in kvmppc_clear_ref_hpte() argument
1041 hp0 = be64_to_cpu(hptep[0]); in kvmppc_clear_ref_hpte()
1042 hp1 = be64_to_cpu(hptep[1]); in kvmppc_clear_ref_hpte()
1048 rbyte = (be64_to_cpu(hptep[1]) & ~HPTE_R_R) >> 8; in kvmppc_clear_ref_hpte()
1050 *((char *)hptep + 14) = rbyte; in kvmppc_clear_ref_hpte()
/linux-6.12.1/arch/powerpc/mm/ptdump/
Dhashpagetable.c209 struct hash_pte *hptep; in native_find() local
225 hptep = htab_address + hpte_group; in native_find()
226 hpte_v = be64_to_cpu(hptep->v); in native_find()
230 *v = be64_to_cpu(hptep->v); in native_find()
231 *r = be64_to_cpu(hptep->r); in native_find()
/linux-6.12.1/arch/powerpc/include/asm/book3s/64/
Dmmu-hash.h375 static inline unsigned long hpte_get_old_v(struct hash_pte *hptep) in hpte_get_old_v() argument
379 hpte_v = be64_to_cpu(hptep->v); in hpte_get_old_v()
381 hpte_v = hpte_new_to_old_v(hpte_v, be64_to_cpu(hptep->r)); in hpte_get_old_v()
/linux-6.12.1/arch/powerpc/include/asm/
Dkvm_book3s.h243 extern void kvmppc_invalidate_hpte(struct kvm *kvm, __be64 *hptep,
245 void kvmppc_clear_ref_hpte(struct kvm *kvm, __be64 *hptep,