Lines Matching refs:tlbe

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