Home
last modified time | relevance | path

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

/arch/powerpc/mm/
Dhash_native_64.c222 static inline void native_lock_hpte(struct hash_pte *hptep) in native_lock_hpte() argument
224 unsigned long *word = (unsigned long *)&hptep->v; in native_lock_hpte()
236 static inline void native_unlock_hpte(struct hash_pte *hptep) in native_unlock_hpte() argument
238 unsigned long *word = (unsigned long *)&hptep->v; in native_unlock_hpte()
247 struct hash_pte *hptep = htab_address + hpte_group; in native_hpte_insert() local
258 if (! (be64_to_cpu(hptep->v) & HPTE_V_VALID)) { in native_hpte_insert()
260 native_lock_hpte(hptep); in native_hpte_insert()
261 if (! (be64_to_cpu(hptep->v) & HPTE_V_VALID)) in native_hpte_insert()
263 native_unlock_hpte(hptep); in native_hpte_insert()
266 hptep++; in native_hpte_insert()
[all …]
Ddump_hashpagetable.c215 struct hash_pte *hptep; in native_find() local
231 hptep = htab_address + hpte_group; in native_find()
232 hpte_v = be64_to_cpu(hptep->v); in native_find()
236 *v = be64_to_cpu(hptep->v); in native_find()
237 *r = be64_to_cpu(hptep->r); in native_find()
/arch/powerpc/kvm/
Dbook3s_64_mmu_hv.c357 __be64 *hptep; in kvmppc_mmu_book3s_64_hv_xlate() local
380 hptep = (__be64 *)(kvm->arch.hpt.virt + (index << 4)); in kvmppc_mmu_book3s_64_hv_xlate()
381 v = orig_v = be64_to_cpu(hptep[0]) & ~HPTE_V_HVLOCK; in kvmppc_mmu_book3s_64_hv_xlate()
383 v = hpte_new_to_old_v(v, be64_to_cpu(hptep[1])); in kvmppc_mmu_book3s_64_hv_xlate()
386 unlock_hpte(hptep, orig_v); in kvmppc_mmu_book3s_64_hv_xlate()
485 __be64 *hptep; in kvmppc_book3s_hv_page_fault() local
525 hptep = (__be64 *)(kvm->arch.hpt.virt + (index << 4)); in kvmppc_book3s_hv_page_fault()
528 while (!try_lock_hpte(hptep, HPTE_V_HVLOCK)) in kvmppc_book3s_hv_page_fault()
530 hpte[0] = be64_to_cpu(hptep[0]) & ~HPTE_V_HVLOCK; in kvmppc_book3s_hv_page_fault()
531 hpte[1] = be64_to_cpu(hptep[1]); in kvmppc_book3s_hv_page_fault()
[all …]
Dtrace_hv.h273 TP_PROTO(struct kvm_vcpu *vcpu, unsigned long *hptep,
277 TP_ARGS(vcpu, hptep, memslot, ea, dsisr),
292 __entry->hpte_v = hptep[0];
293 __entry->hpte_r = hptep[1];
294 __entry->gpte_r = hptep[2];
309 TP_PROTO(struct kvm_vcpu *vcpu, unsigned long *hptep, long ret),
311 TP_ARGS(vcpu, hptep, ret),
322 __entry->hpte_v = hptep[0];
323 __entry->hpte_r = hptep[1];
Dbook3s_hv_rm_mmu.c899 void kvmppc_invalidate_hpte(struct kvm *kvm, __be64 *hptep, in kvmppc_invalidate_hpte() argument
905 hptep[0] &= ~cpu_to_be64(HPTE_V_VALID); in kvmppc_invalidate_hpte()
906 hp0 = be64_to_cpu(hptep[0]); in kvmppc_invalidate_hpte()
907 hp1 = be64_to_cpu(hptep[1]); in kvmppc_invalidate_hpte()
917 void kvmppc_clear_ref_hpte(struct kvm *kvm, __be64 *hptep, in kvmppc_clear_ref_hpte() argument
924 hp0 = be64_to_cpu(hptep[0]); in kvmppc_clear_ref_hpte()
925 hp1 = be64_to_cpu(hptep[1]); in kvmppc_clear_ref_hpte()
931 rbyte = (be64_to_cpu(hptep[1]) & ~HPTE_R_R) >> 8; in kvmppc_clear_ref_hpte()
933 *((char *)hptep + 14) = rbyte; in kvmppc_clear_ref_hpte()
/arch/powerpc/include/asm/
Dkvm_book3s.h220 extern void kvmppc_invalidate_hpte(struct kvm *kvm, __be64 *hptep,
222 void kvmppc_clear_ref_hpte(struct kvm *kvm, __be64 *hptep,