Searched refs:hptep (Results 1 – 4 of 4) sorted by relevance
/arch/powerpc/mm/ |
D | hash_native_64.c | 167 static inline void native_lock_hpte(struct hash_pte *hptep) in native_lock_hpte() argument 169 unsigned long *word = &hptep->v; in native_lock_hpte() 179 static inline void native_unlock_hpte(struct hash_pte *hptep) in native_unlock_hpte() argument 181 unsigned long *word = &hptep->v; in native_unlock_hpte() 190 struct hash_pte *hptep = htab_address + hpte_group; in native_hpte_insert() local 201 if (! (hptep->v & HPTE_V_VALID)) { in native_hpte_insert() 203 native_lock_hpte(hptep); in native_hpte_insert() 204 if (! (hptep->v & HPTE_V_VALID)) in native_hpte_insert() 206 native_unlock_hpte(hptep); in native_hpte_insert() 209 hptep++; in native_hpte_insert() [all …]
|
/arch/powerpc/kvm/ |
D | book3s_64_mmu_hv.c | 461 unsigned long *hptep; in kvmppc_mmu_book3s_64_hv_xlate() local 481 hptep = (unsigned long *)(kvm->arch.hpt_virt + (index << 4)); in kvmppc_mmu_book3s_64_hv_xlate() 482 v = hptep[0] & ~HPTE_V_HVLOCK; in kvmppc_mmu_book3s_64_hv_xlate() 487 hptep[0] = v; in kvmppc_mmu_book3s_64_hv_xlate() 590 unsigned long *hptep, hpte[3], r; in kvmppc_book3s_hv_page_fault() local 612 hptep = (unsigned long *)(kvm->arch.hpt_virt + (index << 4)); in kvmppc_book3s_hv_page_fault() 615 while (!try_lock_hpte(hptep, HPTE_V_HVLOCK)) in kvmppc_book3s_hv_page_fault() 617 hpte[0] = hptep[0] & ~HPTE_V_HVLOCK; in kvmppc_book3s_hv_page_fault() 618 hpte[1] = hptep[1]; in kvmppc_book3s_hv_page_fault() 621 hptep[0] = hpte[0]; in kvmppc_book3s_hv_page_fault() [all …]
|
D | book3s_hv_rm_mmu.c | 684 void kvmppc_invalidate_hpte(struct kvm *kvm, unsigned long *hptep, in kvmppc_invalidate_hpte() argument 689 hptep[0] &= ~HPTE_V_VALID; in kvmppc_invalidate_hpte() 690 rb = compute_tlbie_rb(hptep[0], hptep[1], pte_index); in kvmppc_invalidate_hpte() 701 void kvmppc_clear_ref_hpte(struct kvm *kvm, unsigned long *hptep, in kvmppc_clear_ref_hpte() argument 707 rb = compute_tlbie_rb(hptep[0], hptep[1], pte_index); in kvmppc_clear_ref_hpte() 708 rbyte = (hptep[1] & ~HPTE_R_R) >> 8; in kvmppc_clear_ref_hpte() 710 *((char *)hptep + 14) = rbyte; in kvmppc_clear_ref_hpte()
|
/arch/powerpc/include/asm/ |
D | kvm_book3s.h | 155 extern void kvmppc_invalidate_hpte(struct kvm *kvm, unsigned long *hptep, 157 void kvmppc_clear_ref_hpte(struct kvm *kvm, unsigned long *hptep,
|