Lines Matching refs:tlbe
151 get_tlb_size(const struct kvm_book3e_206_tlb_entry *tlbe)
153 return (tlbe->mas1 >> 7) & 0x1f;
156 static inline gva_t get_tlb_eaddr(const struct kvm_book3e_206_tlb_entry *tlbe)
158 return tlbe->mas2 & MAS2_EPN;
161 static inline u64 get_tlb_bytes(const struct kvm_book3e_206_tlb_entry *tlbe)
163 unsigned int pgsize = get_tlb_size(tlbe);
167 static inline gva_t get_tlb_end(const struct kvm_book3e_206_tlb_entry *tlbe)
169 u64 bytes = get_tlb_bytes(tlbe);
170 return get_tlb_eaddr(tlbe) + bytes - 1;
173 static inline u64 get_tlb_raddr(const struct kvm_book3e_206_tlb_entry *tlbe)
175 return tlbe->mas7_3 & ~0xfffULL;
179 get_tlb_tid(const struct kvm_book3e_206_tlb_entry *tlbe)
181 return (tlbe->mas1 >> 16) & 0xff;
185 get_tlb_ts(const struct kvm_book3e_206_tlb_entry *tlbe)
187 return (tlbe->mas1 >> 12) & 0x1;
191 get_tlb_v(const struct kvm_book3e_206_tlb_entry *tlbe)
193 return (tlbe->mas1 >> 31) & 0x1;
197 get_tlb_iprot(const struct kvm_book3e_206_tlb_entry *tlbe)
199 return (tlbe->mas1 >> 30) & 0x1;
203 get_tlb_tsize(const struct kvm_book3e_206_tlb_entry *tlbe)
205 return (tlbe->mas1 & MAS1_TSIZE_MASK) >> MAS1_TSIZE_SHIFT;
253 const struct kvm_book3e_206_tlb_entry *tlbe)
257 if (!get_tlb_v(tlbe))
263 if (get_tlb_ts(tlbe) != !!(vcpu->arch.shared->msr & MSR_IS))
267 gpa = get_tlb_raddr(tlbe);