Lines Matching refs:slb
38 if (!vcpu->arch.slb[i].valid) in kvmppc_mmu_book3s_64_find_slbe()
41 if (vcpu->arch.slb[i].tb) in kvmppc_mmu_book3s_64_find_slbe()
44 if (vcpu->arch.slb[i].esid == cmp_esid) in kvmppc_mmu_book3s_64_find_slbe()
45 return &vcpu->arch.slb[i]; in kvmppc_mmu_book3s_64_find_slbe()
51 if (vcpu->arch.slb[i].vsid) in kvmppc_mmu_book3s_64_find_slbe()
53 vcpu->arch.slb[i].valid ? 'v' : ' ', in kvmppc_mmu_book3s_64_find_slbe()
54 vcpu->arch.slb[i].large ? 'l' : ' ', in kvmppc_mmu_book3s_64_find_slbe()
55 vcpu->arch.slb[i].tb ? 't' : ' ', in kvmppc_mmu_book3s_64_find_slbe()
56 vcpu->arch.slb[i].esid, in kvmppc_mmu_book3s_64_find_slbe()
57 vcpu->arch.slb[i].vsid); in kvmppc_mmu_book3s_64_find_slbe()
73 static u64 kvmppc_slb_calc_vpn(struct kvmppc_slb *slb, gva_t eaddr) in kvmppc_slb_calc_vpn() argument
75 eaddr &= kvmppc_slb_offset_mask(slb); in kvmppc_slb_calc_vpn()
78 ((slb->vsid) << (kvmppc_slb_sid_shift(slb) - VPN_SHIFT)); in kvmppc_slb_calc_vpn()
84 struct kvmppc_slb *slb; in kvmppc_mmu_book3s_64_ea_to_vp() local
86 slb = kvmppc_mmu_book3s_64_find_slbe(vcpu, eaddr); in kvmppc_mmu_book3s_64_ea_to_vp()
87 if (!slb) in kvmppc_mmu_book3s_64_ea_to_vp()
90 return kvmppc_slb_calc_vpn(slb, eaddr); in kvmppc_mmu_book3s_64_ea_to_vp()
378 slbe = &vcpu->arch.slb[slb_nr]; in kvmppc_mmu_book3s_64_slbmte()
432 slbe = &vcpu->arch.slb[slb_nr]; in kvmppc_mmu_book3s_64_slbmfee()
444 slbe = &vcpu->arch.slb[slb_nr]; in kvmppc_mmu_book3s_64_slbmfev()
478 vcpu->arch.slb[i].valid = false; in kvmppc_mmu_book3s_64_slbia()
479 vcpu->arch.slb[i].orige = 0; in kvmppc_mmu_book3s_64_slbia()
480 vcpu->arch.slb[i].origv = 0; in kvmppc_mmu_book3s_64_slbia()
576 struct kvmppc_slb *slb; in kvmppc_mmu_book3s_64_esid_to_vsid() local
583 slb = kvmppc_mmu_book3s_64_find_slbe(vcpu, ea); in kvmppc_mmu_book3s_64_esid_to_vsid()
584 if (slb) { in kvmppc_mmu_book3s_64_esid_to_vsid()
585 gvsid = slb->vsid; in kvmppc_mmu_book3s_64_esid_to_vsid()
586 pagesize = slb->base_page_size; in kvmppc_mmu_book3s_64_esid_to_vsid()
587 if (slb->tb) { in kvmppc_mmu_book3s_64_esid_to_vsid()
606 if (!slb) in kvmppc_mmu_book3s_64_esid_to_vsid()