Home
last modified time | relevance | path

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

/openbmc/linux/arch/powerpc/kvm/
H A De500.h153 return (tlbe->mas1 >> 7) & 0x1f; in get_tlb_size()
158 return tlbe->mas2 & MAS2_EPN; in get_tlb_eaddr()
169 u64 bytes = get_tlb_bytes(tlbe); in get_tlb_end()
170 return get_tlb_eaddr(tlbe) + bytes - 1; in get_tlb_end()
175 return tlbe->mas7_3 & ~0xfffULL; in get_tlb_raddr()
181 return (tlbe->mas1 >> 16) & 0xff; in get_tlb_tid()
187 return (tlbe->mas1 >> 12) & 0x1; in get_tlb_ts()
193 return (tlbe->mas1 >> 31) & 0x1; in get_tlb_v()
199 return (tlbe->mas1 >> 30) & 0x1; in get_tlb_iprot()
257 if (!get_tlb_v(tlbe)) in tlbe_is_host_safe()
[all …]
H A De500.c331 struct kvm_book3e_206_tlb_entry *tlbe; in kvmppc_e500_tlb_setup() local
334 tlbe = get_entry(vcpu_e500, 1, 0); in kvmppc_e500_tlb_setup()
335 tlbe->mas1 = MAS1_VALID | MAS1_TSIZE(BOOK3E_PAGESZ_256M); in kvmppc_e500_tlb_setup()
336 tlbe->mas2 = 0; in kvmppc_e500_tlb_setup()
337 tlbe->mas7_3 = E500_TLB_SUPER_PERM_MASK; in kvmppc_e500_tlb_setup()
340 tlbe = get_entry(vcpu_e500, 1, 1); in kvmppc_e500_tlb_setup()
341 tlbe->mas1 = MAS1_VALID | MAS1_TSIZE(BOOK3E_PAGESZ_4K); in kvmppc_e500_tlb_setup()
342 tlbe->mas2 = (0xe0004500 & 0xFFFFF000) | MAS2_I | MAS2_G; in kvmppc_e500_tlb_setup()
343 tlbe->mas7_3 = (0xe0004500 & 0xFFFFF000) | E500_TLB_SUPER_PERM_MASK; in kvmppc_e500_tlb_setup()
H A De500_mmu.c100 struct kvm_book3e_206_tlb_entry *tlbe = in kvmppc_e500_tlb_index() local
104 if (eaddr < get_tlb_eaddr(tlbe)) in kvmppc_e500_tlb_index()
107 if (eaddr > get_tlb_end(tlbe)) in kvmppc_e500_tlb_index()
110 tid = get_tlb_tid(tlbe); in kvmppc_e500_tlb_index()
114 if (!get_tlb_v(tlbe)) in kvmppc_e500_tlb_index()
117 if (get_tlb_ts(tlbe) != as && as != -1) in kvmppc_e500_tlb_index()
166 if (!get_tlb_v(tlbe)) in kvmppc_recalc_tlb1map_range()
169 eaddr = get_tlb_eaddr(tlbe); in kvmppc_recalc_tlb1map_range()
173 eaddr = get_tlb_end(tlbe); in kvmppc_recalc_tlb1map_range()
278 struct kvm_book3e_206_tlb_entry *tlbe; in tlbilx_all() local
[all …]
H A De500_mmu_host.c240 static inline int tlbe_is_writable(struct kvm_book3e_206_tlb_entry *tlbe) in tlbe_is_writable() argument
242 return tlbe->mas7_3 & (MAS3_SW|MAS3_UW); in tlbe_is_writable()
/openbmc/qemu/hw/arm/
H A Dsmmu-common.c536 tlbe->entry.addr_mask = mask; in smmu_ptw_64_s1()
538 tlbe->entry.perm = tlbe->parent_perm; in smmu_ptw_64_s1()
539 tlbe->level = level; in smmu_ptw_64_s1()
540 tlbe->granule = granule_sz; in smmu_ptw_64_s1()
547 tlbe->entry.perm = IOMMU_NONE; in smmu_ptw_64_s1()
659 tlbe->parent_perm = s2ap; in smmu_ptw_64_s2()
660 tlbe->entry.perm = tlbe->parent_perm; in smmu_ptw_64_s2()
661 tlbe->level = level; in smmu_ptw_64_s2()
662 tlbe->granule = granule_sz; in smmu_ptw_64_s2()
671 tlbe->entry.perm = IOMMU_NONE; in smmu_ptw_64_s2()
[all …]
/openbmc/qemu/hw/ppc/
H A Dppc440_bamboo.c118 ppcemb_tlb_t *tlb = &env->tlb.tlbe[0]; in mmubooke_create_initial_mapping()
127 tlb = &env->tlb.tlbe[1]; in mmubooke_create_initial_mapping()
H A Dvirtex_ml507.c75 ppcemb_tlb_t *tlb = &env->tlb.tlbe[0]; in mmubooke_create_initial_mapping()
84 tlb = &env->tlb.tlbe[1]; in mmubooke_create_initial_mapping()
H A Dsam460ex.c219 ppcemb_tlb_t *tlb = &env->tlb.tlbe[0]; in mmubooke_create_initial_mapping_uboot()
238 ppcemb_tlb_t *tlb = &env->tlb.tlbe[0]; in mmubooke_create_initial_mapping()
/openbmc/qemu/target/ppc/
H A Dmmu_helper.c117 tlb = &env->tlb.tlbe[i]; in ppc4xx_tlb_invalidate_all()
691 tlb = &env->tlb.tlbe[entry]; in helper_4xx_tlbre_hi()
711 tlb = &env->tlb.tlbe[entry]; in helper_4xx_tlbre_lo()
750 tlb = &env->tlb.tlbe[entry]; in helper_4xx_tlbwe_hi()
801 tlb = &env->tlb.tlbe[entry]; in helper_4xx_tlbwe_lo()
861 tlb = &env->tlb.tlbe[entry]; in helper_440_tlbwe()
922 tlb = &env->tlb.tlbe[entry]; in helper_440_tlbre()
H A Dmmu-booke.c63 tlb = &env->tlb.tlbe[i]; in ppcemb_tlb_search()
81 tlb = &env->tlb.tlbe[i]; in mmu40x_get_physical_address()
196 tlb = &env->tlb.tlbe[i]; in mmubooke_get_physical_address()
H A Dmachine.c630 VMSTATE_STRUCT_VARRAY_POINTER_INT32(env.tlb.tlbe, PowerPCCPU,
H A Dmmu_common.c368 entry = &env->tlb.tlbe[0]; in mmubooke_dump_mmu()
H A Dcpu.h379 ppcemb_tlb_t *tlbe; member
H A Dcpu_init.c6922 env->tlb.tlbe = g_new0(ppcemb_tlb_t, env->nb_tlb); in init_ppc_proc()
/openbmc/qemu/include/hw/arm/
H A Dsmmu-common.h189 IOMMUAccessFlags perm, SMMUTLBEntry *tlbe,
/openbmc/qemu/accel/tcg/
H A Dcputlb.c1559 CPUTLBEntry *tlbe = tlb_entry(cpu, mmu_idx, addr); in tlb_plugin_lookup() local
1562 uint64_t tlb_addr = tlb_read_idx(tlbe, access_type); in tlb_plugin_lookup()
1802 CPUTLBEntry *tlbe; in atomic_mmu_lookup() local
1829 tlbe = tlb_entry(cpu, mmu_idx, addr); in atomic_mmu_lookup()
1832 tlb_addr = tlb_addr_write(tlbe); in atomic_mmu_lookup()
1839 tlbe = tlb_entry(cpu, mmu_idx, addr); in atomic_mmu_lookup()
1841 tlb_addr = tlb_addr_write(tlbe) & ~TLB_INVALID_MASK; in atomic_mmu_lookup()
1850 if (unlikely(tlbe->addr_read == -1)) { in atomic_mmu_lookup()
1861 tlb_addr |= tlbe->addr_read; in atomic_mmu_lookup()
1870 hostaddr = (void *)((uintptr_t)addr + tlbe->addend); in atomic_mmu_lookup()