Home
last modified time | relevance | path

Searched refs:tlbe (Results 1 – 4 of 4) sorted by relevance

/arch/powerpc/kvm/
De500.h154 get_tlb_size(const struct kvm_book3e_206_tlb_entry *tlbe) in get_tlb_size() argument
156 return (tlbe->mas1 >> 7) & 0x1f; in get_tlb_size()
159 static inline gva_t get_tlb_eaddr(const struct kvm_book3e_206_tlb_entry *tlbe) in get_tlb_eaddr() argument
161 return tlbe->mas2 & MAS2_EPN; in get_tlb_eaddr()
164 static inline u64 get_tlb_bytes(const struct kvm_book3e_206_tlb_entry *tlbe) in get_tlb_bytes() argument
166 unsigned int pgsize = get_tlb_size(tlbe); in get_tlb_bytes()
170 static inline gva_t get_tlb_end(const struct kvm_book3e_206_tlb_entry *tlbe) in get_tlb_end() argument
172 u64 bytes = get_tlb_bytes(tlbe); in get_tlb_end()
173 return get_tlb_eaddr(tlbe) + bytes - 1; in get_tlb_end()
176 static inline u64 get_tlb_raddr(const struct kvm_book3e_206_tlb_entry *tlbe) in get_tlb_raddr() argument
[all …]
De500.c335 struct kvm_book3e_206_tlb_entry *tlbe; in kvmppc_e500_tlb_setup() local
338 tlbe = get_entry(vcpu_e500, 1, 0); in kvmppc_e500_tlb_setup()
339 tlbe->mas1 = MAS1_VALID | MAS1_TSIZE(BOOK3E_PAGESZ_256M); in kvmppc_e500_tlb_setup()
340 tlbe->mas2 = 0; in kvmppc_e500_tlb_setup()
341 tlbe->mas7_3 = E500_TLB_SUPER_PERM_MASK; in kvmppc_e500_tlb_setup()
344 tlbe = get_entry(vcpu_e500, 1, 1); in kvmppc_e500_tlb_setup()
345 tlbe->mas1 = MAS1_VALID | MAS1_TSIZE(BOOK3E_PAGESZ_4K); in kvmppc_e500_tlb_setup()
346 tlbe->mas2 = (0xe0004500 & 0xFFFFF000) | MAS2_I | MAS2_G; in kvmppc_e500_tlb_setup()
347 tlbe->mas7_3 = (0xe0004500 & 0xFFFFF000) | E500_TLB_SUPER_PERM_MASK; in kvmppc_e500_tlb_setup()
De500_mmu.c103 struct kvm_book3e_206_tlb_entry *tlbe = in kvmppc_e500_tlb_index() local
107 if (eaddr < get_tlb_eaddr(tlbe)) in kvmppc_e500_tlb_index()
110 if (eaddr > get_tlb_end(tlbe)) in kvmppc_e500_tlb_index()
113 tid = get_tlb_tid(tlbe); in kvmppc_e500_tlb_index()
117 if (!get_tlb_v(tlbe)) in kvmppc_e500_tlb_index()
120 if (get_tlb_ts(tlbe) != as && as != -1) in kvmppc_e500_tlb_index()
166 struct kvm_book3e_206_tlb_entry *tlbe = in kvmppc_recalc_tlb1map_range() local
169 if (!get_tlb_v(tlbe)) in kvmppc_recalc_tlb1map_range()
172 eaddr = get_tlb_eaddr(tlbe); in kvmppc_recalc_tlb1map_range()
176 eaddr = get_tlb_end(tlbe); in kvmppc_recalc_tlb1map_range()
[all …]
De500_mmu_host.c242 static inline int tlbe_is_writable(struct kvm_book3e_206_tlb_entry *tlbe) in tlbe_is_writable() argument
244 return tlbe->mas7_3 & (MAS3_SW|MAS3_UW); in tlbe_is_writable()