Searched refs:hptep (Results 1 – 4 of 4) sorted by relevance
/arch/powerpc/mm/ |
D | hash_native_64.c | 118 static inline void native_lock_hpte(struct hash_pte *hptep) in native_lock_hpte() argument 120 unsigned long *word = &hptep->v; in native_lock_hpte() 130 static inline void native_unlock_hpte(struct hash_pte *hptep) in native_unlock_hpte() argument 132 unsigned long *word = &hptep->v; in native_unlock_hpte() 141 struct hash_pte *hptep = htab_address + hpte_group; in native_hpte_insert() local 152 if (! (hptep->v & HPTE_V_VALID)) { in native_hpte_insert() 154 native_lock_hpte(hptep); in native_hpte_insert() 155 if (! (hptep->v & HPTE_V_VALID)) in native_hpte_insert() 157 native_unlock_hpte(hptep); in native_hpte_insert() 160 hptep++; in native_hpte_insert() [all …]
|
/arch/powerpc/kvm/ |
D | book3s_64_mmu_hv.c | 381 unsigned long *hptep; in kvmppc_mmu_book3s_64_hv_xlate() local 401 hptep = (unsigned long *)(kvm->arch.hpt_virt + (index << 4)); in kvmppc_mmu_book3s_64_hv_xlate() 402 v = hptep[0] & ~HPTE_V_HVLOCK; in kvmppc_mmu_book3s_64_hv_xlate() 407 hptep[0] = v; in kvmppc_mmu_book3s_64_hv_xlate() 509 unsigned long *hptep, hpte[3], r; in kvmppc_book3s_hv_page_fault() local 531 hptep = (unsigned long *)(kvm->arch.hpt_virt + (index << 4)); in kvmppc_book3s_hv_page_fault() 534 while (!try_lock_hpte(hptep, HPTE_V_HVLOCK)) in kvmppc_book3s_hv_page_fault() 536 hpte[0] = hptep[0] & ~HPTE_V_HVLOCK; in kvmppc_book3s_hv_page_fault() 537 hpte[1] = hptep[1]; in kvmppc_book3s_hv_page_fault() 540 hptep[0] = hpte[0]; in kvmppc_book3s_hv_page_fault() [all …]
|
D | book3s_hv_rm_mmu.c | 609 void kvmppc_invalidate_hpte(struct kvm *kvm, unsigned long *hptep, in kvmppc_invalidate_hpte() argument 614 hptep[0] &= ~HPTE_V_VALID; in kvmppc_invalidate_hpte() 615 rb = compute_tlbie_rb(hptep[0], hptep[1], pte_index); in kvmppc_invalidate_hpte() 626 void kvmppc_clear_ref_hpte(struct kvm *kvm, unsigned long *hptep, in kvmppc_clear_ref_hpte() argument 632 rb = compute_tlbie_rb(hptep[0], hptep[1], pte_index); in kvmppc_clear_ref_hpte() 633 rbyte = (hptep[1] & ~HPTE_R_R) >> 8; in kvmppc_clear_ref_hpte() 635 *((char *)hptep + 14) = rbyte; in kvmppc_clear_ref_hpte()
|
/arch/powerpc/include/asm/ |
D | kvm_book3s.h | 151 extern void kvmppc_invalidate_hpte(struct kvm *kvm, unsigned long *hptep, 153 void kvmppc_clear_ref_hpte(struct kvm *kvm, unsigned long *hptep,
|