Lines Matching refs:esel
36 #define to_htlb1_esel(esel) (host_tlb_params[1].entries - (esel) - 1) argument
378 int tlbsel, int esel) in inval_gtlbe_on_host() argument
381 get_entry(vcpu_e500, tlbsel, esel); in inval_gtlbe_on_host()
454 int esel = get_tlb_esel_bit(vcpu); in get_tlb_esel() local
457 esel &= vcpu_e500->gtlb_params[0].ways - 1; in get_tlb_esel()
458 esel += gtlb0_set_base(vcpu_e500, vcpu->arch.shared->mas2); in get_tlb_esel()
460 esel &= vcpu_e500->gtlb_params[tlbsel].entries - 1; in get_tlb_esel()
463 return esel; in get_tlb_esel()
744 int esel, in kvmppc_e500_tlb0_map() argument
750 gtlbe = get_entry(vcpu_e500, 0, esel); in kvmppc_e500_tlb0_map()
751 ref = &vcpu_e500->gtlb_priv[0][esel].ref; in kvmppc_e500_tlb0_map()
789 int tlbsel, int esel) in kvmppc_e500_gtlbe_invalidate() argument
792 get_entry(vcpu_e500, tlbsel, esel); in kvmppc_e500_gtlbe_invalidate()
804 int esel; in kvmppc_e500_emul_mt_mmucsr0() local
807 for (esel = 0; esel < vcpu_e500->gtlb_params[0].entries; esel++) in kvmppc_e500_emul_mt_mmucsr0()
808 kvmppc_e500_gtlbe_invalidate(vcpu_e500, 0, esel); in kvmppc_e500_emul_mt_mmucsr0()
810 for (esel = 0; esel < vcpu_e500->gtlb_params[1].entries; esel++) in kvmppc_e500_emul_mt_mmucsr0()
811 kvmppc_e500_gtlbe_invalidate(vcpu_e500, 1, esel); in kvmppc_e500_emul_mt_mmucsr0()
823 int esel, tlbsel; in kvmppc_e500_emul_tlbivax() local
835 for (esel = 0; esel < vcpu_e500->gtlb_params[tlbsel].entries; in kvmppc_e500_emul_tlbivax()
836 esel++) in kvmppc_e500_emul_tlbivax()
837 kvmppc_e500_gtlbe_invalidate(vcpu_e500, tlbsel, esel); in kvmppc_e500_emul_tlbivax()
840 esel = kvmppc_e500_tlb_index(vcpu_e500, ea, tlbsel, in kvmppc_e500_emul_tlbivax()
842 if (esel >= 0) in kvmppc_e500_emul_tlbivax()
843 kvmppc_e500_gtlbe_invalidate(vcpu_e500, tlbsel, esel); in kvmppc_e500_emul_tlbivax()
855 int tlbsel, esel; in kvmppc_e500_emul_tlbre() local
859 esel = get_tlb_esel(vcpu, tlbsel); in kvmppc_e500_emul_tlbre()
861 gtlbe = get_entry(vcpu_e500, tlbsel, esel); in kvmppc_e500_emul_tlbre()
876 int esel, tlbsel; in kvmppc_e500_emul_tlbsx() local
883 esel = kvmppc_e500_tlb_index(vcpu_e500, ea, tlbsel, pid, as); in kvmppc_e500_emul_tlbsx()
884 if (esel >= 0) { in kvmppc_e500_emul_tlbsx()
885 gtlbe = get_entry(vcpu_e500, tlbsel, esel); in kvmppc_e500_emul_tlbsx()
891 esel &= vcpu_e500->gtlb_params[tlbsel].ways - 1; in kvmppc_e500_emul_tlbsx()
893 vcpu->arch.shared->mas0 = MAS0_TLBSEL(tlbsel) | MAS0_ESEL(esel) in kvmppc_e500_emul_tlbsx()
945 int tlbsel, esel; in kvmppc_e500_emul_tlbwe() local
948 esel = get_tlb_esel(vcpu, tlbsel); in kvmppc_e500_emul_tlbwe()
950 gtlbe = get_entry(vcpu_e500, tlbsel, esel); in kvmppc_e500_emul_tlbwe()
953 inval_gtlbe_on_host(vcpu_e500, tlbsel, esel); in kvmppc_e500_emul_tlbwe()
976 kvmppc_e500_tlb0_map(vcpu_e500, esel, &stlbe); in kvmppc_e500_emul_tlbwe()
1058 int esel = esel_of(index); in kvmppc_mmu_map() local
1061 gtlbe = get_entry(vcpu_e500, tlbsel, esel); in kvmppc_mmu_map()
1067 priv = &vcpu_e500->gtlb_priv[tlbsel][esel]; in kvmppc_mmu_map()
1094 int esel, tlbsel; in kvmppc_e500_tlb_search() local
1097 esel = kvmppc_e500_tlb_index(vcpu_e500, eaddr, tlbsel, pid, as); in kvmppc_e500_tlb_search()
1098 if (esel >= 0) in kvmppc_e500_tlb_search()
1099 return index_of(tlbsel, esel); in kvmppc_e500_tlb_search()