Lines Matching refs:stlbe
69 static inline void __write_host_tlbe(struct kvm_book3e_206_tlb_entry *stlbe, in __write_host_tlbe() argument
77 mtspr(SPRN_MAS1, stlbe->mas1); in __write_host_tlbe()
78 mtspr(SPRN_MAS2, (unsigned long)stlbe->mas2); in __write_host_tlbe()
79 mtspr(SPRN_MAS3, (u32)stlbe->mas7_3); in __write_host_tlbe()
80 mtspr(SPRN_MAS7, (u32)(stlbe->mas7_3 >> 32)); in __write_host_tlbe()
93 trace_kvm_booke206_stlb_write(mas0, stlbe->mas8, stlbe->mas1, in __write_host_tlbe()
94 stlbe->mas2, stlbe->mas7_3); in __write_host_tlbe()
125 int tlbsel, int sesel, struct kvm_book3e_206_tlb_entry *stlbe) in write_host_tlbe() argument
130 mas0 = get_host_mas0(stlbe->mas2); in write_host_tlbe()
131 __write_host_tlbe(stlbe, mas0, vcpu_e500->vcpu.kvm->arch.lpid); in write_host_tlbe()
133 __write_host_tlbe(stlbe, in write_host_tlbe()
143 struct kvm_book3e_206_tlb_entry *stlbe, in write_stlbe() argument
151 stlbe->mas1 |= MAS1_TID(stid); in write_stlbe()
152 write_host_tlbe(vcpu_e500, stlbsel, sesel, stlbe); in write_stlbe()
308 struct kvm_book3e_206_tlb_entry *stlbe) in kvmppc_e500_setup_stlbe() argument
316 stlbe->mas1 = MAS1_TSIZE(tsize) | get_tlb_sts(gtlbe) | MAS1_VALID; in kvmppc_e500_setup_stlbe()
317 stlbe->mas2 = (gvaddr & MAS2_EPN) | (ref->flags & E500_TLB_MAS2_ATTR); in kvmppc_e500_setup_stlbe()
318 stlbe->mas7_3 = ((u64)pfn << PAGE_SHIFT) | in kvmppc_e500_setup_stlbe()
324 int tlbsel, struct kvm_book3e_206_tlb_entry *stlbe, in kvmppc_e500_shadow_map() argument
496 ref, gvaddr, stlbe); in kvmppc_e500_shadow_map()
512 struct kvm_book3e_206_tlb_entry *stlbe) in kvmppc_e500_tlb0_map() argument
525 gtlbe, 0, stlbe, ref); in kvmppc_e500_tlb0_map()
529 write_stlbe(vcpu_e500, gtlbe, stlbe, stlbsel, sesel); in kvmppc_e500_tlb0_map()
561 struct kvm_book3e_206_tlb_entry *stlbe, int esel) in kvmppc_e500_tlb1_map() argument
567 r = kvmppc_e500_shadow_map(vcpu_e500, gvaddr, gfn, gtlbe, 1, stlbe, in kvmppc_e500_tlb1_map()
573 if (get_tlb_tsize(stlbe) == BOOK3E_PAGESZ_4K) { in kvmppc_e500_tlb1_map()
575 write_stlbe(vcpu_e500, gtlbe, stlbe, 0, 0); in kvmppc_e500_tlb1_map()
581 write_stlbe(vcpu_e500, gtlbe, stlbe, 1, sesel); in kvmppc_e500_tlb1_map()
591 struct kvm_book3e_206_tlb_entry *gtlbe, stlbe; in kvmppc_mmu_map() local
603 kvmppc_e500_tlb0_map(vcpu_e500, esel, &stlbe); in kvmppc_mmu_map()
606 &priv->ref, eaddr, &stlbe); in kvmppc_mmu_map()
607 write_stlbe(vcpu_e500, gtlbe, &stlbe, 0, 0); in kvmppc_mmu_map()
613 kvmppc_e500_tlb1_map(vcpu_e500, eaddr, gfn, gtlbe, &stlbe, in kvmppc_mmu_map()