Home
last modified time | relevance | path

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

/arch/powerpc/mm/
Dhash_native_64.c175 static inline void native_lock_hpte(struct hash_pte *hptep) in native_lock_hpte() argument
177 unsigned long *word = (unsigned long *)&hptep->v; in native_lock_hpte()
187 static inline void native_unlock_hpte(struct hash_pte *hptep) in native_unlock_hpte() argument
189 unsigned long *word = (unsigned long *)&hptep->v; in native_unlock_hpte()
198 struct hash_pte *hptep = htab_address + hpte_group; in native_hpte_insert() local
209 if (! (be64_to_cpu(hptep->v) & HPTE_V_VALID)) { in native_hpte_insert()
211 native_lock_hpte(hptep); in native_hpte_insert()
212 if (! (be64_to_cpu(hptep->v) & HPTE_V_VALID)) in native_hpte_insert()
214 native_unlock_hpte(hptep); in native_hpte_insert()
217 hptep++; in native_hpte_insert()
[all …]
/arch/powerpc/kvm/
Dbook3s_64_mmu_hv.c316 __be64 *hptep; in kvmppc_mmu_book3s_64_hv_xlate() local
339 hptep = (__be64 *)(kvm->arch.hpt_virt + (index << 4)); in kvmppc_mmu_book3s_64_hv_xlate()
340 v = be64_to_cpu(hptep[0]) & ~HPTE_V_HVLOCK; in kvmppc_mmu_book3s_64_hv_xlate()
343 unlock_hpte(hptep, v); in kvmppc_mmu_book3s_64_hv_xlate()
441 __be64 *hptep; in kvmppc_book3s_hv_page_fault() local
464 hptep = (__be64 *)(kvm->arch.hpt_virt + (index << 4)); in kvmppc_book3s_hv_page_fault()
467 while (!try_lock_hpte(hptep, HPTE_V_HVLOCK)) in kvmppc_book3s_hv_page_fault()
469 hpte[0] = be64_to_cpu(hptep[0]) & ~HPTE_V_HVLOCK; in kvmppc_book3s_hv_page_fault()
470 hpte[1] = be64_to_cpu(hptep[1]); in kvmppc_book3s_hv_page_fault()
472 unlock_hpte(hptep, hpte[0]); in kvmppc_book3s_hv_page_fault()
[all …]
Dtrace_hv.h272 TP_PROTO(struct kvm_vcpu *vcpu, unsigned long *hptep,
276 TP_ARGS(vcpu, hptep, memslot, ea, dsisr),
291 __entry->hpte_v = hptep[0];
292 __entry->hpte_r = hptep[1];
293 __entry->gpte_r = hptep[2];
308 TP_PROTO(struct kvm_vcpu *vcpu, unsigned long *hptep, long ret),
310 TP_ARGS(vcpu, hptep, ret),
321 __entry->hpte_v = hptep[0];
322 __entry->hpte_r = hptep[1];
Dbook3s_hv_rm_mmu.c799 void kvmppc_invalidate_hpte(struct kvm *kvm, __be64 *hptep, in kvmppc_invalidate_hpte() argument
804 hptep[0] &= ~cpu_to_be64(HPTE_V_VALID); in kvmppc_invalidate_hpte()
805 rb = compute_tlbie_rb(be64_to_cpu(hptep[0]), be64_to_cpu(hptep[1]), in kvmppc_invalidate_hpte()
811 void kvmppc_clear_ref_hpte(struct kvm *kvm, __be64 *hptep, in kvmppc_clear_ref_hpte() argument
817 rb = compute_tlbie_rb(be64_to_cpu(hptep[0]), be64_to_cpu(hptep[1]), in kvmppc_clear_ref_hpte()
819 rbyte = (be64_to_cpu(hptep[1]) & ~HPTE_R_R) >> 8; in kvmppc_clear_ref_hpte()
821 *((char *)hptep + 14) = rbyte; in kvmppc_clear_ref_hpte()
/arch/powerpc/include/asm/
Dkvm_book3s.h162 extern void kvmppc_invalidate_hpte(struct kvm *kvm, __be64 *hptep,
164 void kvmppc_clear_ref_hpte(struct kvm *kvm, __be64 *hptep,