/openbmc/linux/arch/powerpc/kvm/ |
H A D | trace_booke.h | 73 TP_PROTO(__u32 mas0, __u32 mas8, __u32 mas1, __u64 mas2, __u64 mas7_3), 74 TP_ARGS(mas0, mas8, mas1, mas2, mas7_3), 79 __field( __u32, mas1 ) 87 __entry->mas1 = mas1; 93 __entry->mas0, __entry->mas8, __entry->mas1, 98 TP_PROTO(__u32 mas0, __u32 mas1, __u64 mas2, __u64 mas7_3), 99 TP_ARGS(mas0, mas1, mas2, mas7_3), 103 __field( __u32, mas1 ) 110 __entry->mas1 = mas1; 116 __entry->mas0, __entry->mas1,
|
H A D | e500.h | 153 return (tlbe->mas1 >> 7) & 0x1f; in get_tlb_size() 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() 205 return (tlbe->mas1 & MAS1_TSIZE_MASK) >> MAS1_TSIZE_SHIFT; in get_tlb_tsize() 289 #define get_tlb_sts(gtlbe) (gtlbe->mas1 & MAS1_TS)
|
H A D | e500_mmu.c | 223 gtlbe->mas1 = 0; in kvmppc_e500_gtlbe_invalidate() 334 vcpu->arch.shared->mas1 = gtlbe->mas1; in kvmppc_e500_emul_tlbre() 362 vcpu->arch.shared->mas1 = gtlbe->mas1; in kvmppc_e500_emul_tlbsx() 375 vcpu->arch.shared->mas1 = in kvmppc_e500_emul_tlbsx() 410 gtlbe->mas1 = vcpu->arch.shared->mas1; in kvmppc_e500_emul_tlbwe() 439 gtlbe->mas1 &= ~MAS1_TSIZE(~0); in kvmppc_e500_emul_tlbwe() 440 gtlbe->mas1 |= MAS1_TSIZE(BOOK3E_PAGESZ_4K); in kvmppc_e500_emul_tlbwe() 570 sregs->u.e.mas1 = vcpu->arch.shared->mas1; in kvmppc_get_sregs_e500_tlb() 587 vcpu->arch.shared->mas1 = sregs->u.e.mas1; in kvmppc_set_sregs_e500_tlb() 608 *val = get_reg_val(id, vcpu->arch.shared->mas1); in kvmppc_get_one_reg_e500_tlb() [all …]
|
H A D | e500_mmu_host.c | 77 mtspr(SPRN_MAS1, stlbe->mas1); in __write_host_tlbe() 93 trace_kvm_booke206_stlb_write(mas0, stlbe->mas8, stlbe->mas1, in __write_host_tlbe() 151 stlbe->mas1 |= MAS1_TID(stid); in write_stlbe() 172 magic.mas1 = MAS1_VALID | MAS1_TS | MAS1_TID(stid) | in kvmppc_map_magic() 316 stlbe->mas1 = MAS1_TSIZE(tsize) | get_tlb_sts(gtlbe) | MAS1_VALID; in kvmppc_e500_setup_stlbe() 389 tsize = (gtlbe->mas1 & MAS1_TSIZE_MASK) >> in kvmppc_e500_shadow_map() 428 tsize = (gtlbe->mas1 & MAS1_TSIZE_MASK) >> in kvmppc_e500_shadow_map() 632 u32 mas1, mas2, mas3; in kvmppc_load_last_inst() local 651 mas1 = mfspr(SPRN_MAS1); in kvmppc_load_last_inst() 665 if (!(mas1 & MAS1_VALID)) in kvmppc_load_last_inst() [all …]
|
H A D | e500_emulate.c | 228 vcpu->arch.shared->mas1 = spr_val; in kvmppc_core_emulate_mtspr_e500() 341 *spr_val = vcpu->arch.shared->mas1; in kvmppc_core_emulate_mfspr_e500()
|
H A D | e500.c | 335 tlbe->mas1 = MAS1_VALID | MAS1_TSIZE(BOOK3E_PAGESZ_256M); in kvmppc_e500_tlb_setup() 341 tlbe->mas1 = MAS1_VALID | MAS1_TSIZE(BOOK3E_PAGESZ_4K); in kvmppc_e500_tlb_setup()
|
/openbmc/u-boot/arch/powerpc/cpu/mpc85xx/ |
H A D | cpu_init_early.c | 83 u32 mas0, mas1, mas2, mas3, mas7; in cpu_init_early_f() local 108 mas1 = MAS1_VALID | MAS1_TID(0) | MAS1_TS | MAS1_TSIZE(BOOKE_PAGESZ_1M); in cpu_init_early_f() 113 write_tlb(mas0, mas1, mas2, mas3, mas7); in cpu_init_early_f() 134 mas1 = MAS1_VALID | MAS1_TID(0) | MAS1_TS | in cpu_init_early_f() 140 write_tlb(mas0, mas1, mas2, mas3, mas7); in cpu_init_early_f()
|
H A D | tlb.c | 34 tlb_table[i].mas1, in init_tlbs()
|
/openbmc/qemu/target/ppc/ |
H A D | mmu_helper.c | 135 tlb[j].mas1 &= ~MAS1_VALID; in booke206_flush_tlb() 1079 if (tlb->mas1 & MAS1_VALID) { in helper_booke206_tlbwe() 1097 tlb->mas1 = env->spr[SPR_BOOKE_MAS1]; in helper_booke206_tlbwe() 1105 tlb->mas1 &= ~MAS1_TSIZE_MASK; in helper_booke206_tlbwe() 1128 tlb->mas1 &= ~MAS1_IPROT; in helper_booke206_tlbwe() 1143 env->spr[SPR_BOOKE_MAS1] = tlb->mas1; in booke206_tlb_to_mas() 1229 !(tlb->mas1 & MAS1_IPROT)) { in booke206_invalidate_ea_tlb() 1230 tlb->mas1 &= ~MAS1_VALID; in booke206_invalidate_ea_tlb() 1285 tlb[j].mas1 &= ~MAS1_VALID; in helper_booke206_tlbilx1() 1317 (tlb->mas1 & MAS1_IPROT) || in helper_booke206_tlbilx3() [all …]
|
H A D | mmu-booke.c | 214 tlbm_size = (tlb->mas1 & MAS1_TSIZE_MASK) >> MAS1_TSIZE_SHIFT; in booke206_tlb_to_page_size() 232 if (!(tlb->mas1 & MAS1_VALID)) { in ppcmas_tlb_check() 240 __func__, address, pid, tlb->mas1, tlb->mas2, mask, in ppcmas_tlb_check() 244 tlb_pid = (tlb->mas1 & MAS1_TID_MASK) >> MAS1_TID_SHIFT; in ppcmas_tlb_check() 354 if (as != ((tlb->mas1 & MAS1_TS) >> MAS1_TS_SHIFT)) { in mmubooke206_check_tlb()
|
H A D | mmu_common.c | 412 if (!(entry->mas1 & MAS1_VALID)) { in mmubooke206_dump_one_tlb() 416 tsize = (entry->mas1 & MAS1_TSIZE_MASK) >> MAS1_TSIZE_SHIFT; in mmubooke206_dump_one_tlb() 425 (entry->mas1 & MAS1_TID_MASK) >> MAS1_TID_SHIFT, in mmubooke206_dump_one_tlb() 426 (entry->mas1 & MAS1_TS) >> MAS1_TS_SHIFT, in mmubooke206_dump_one_tlb()
|
H A D | cpu.h | 372 uint32_t mas1; member 2881 tlb->mas1 &= ~MAS1_TSIZE_MASK; in booke206_fixed_size_tlbn() 2882 tlb->mas1 |= ((uint32_t)tsize) << MAS1_TSIZE_SHIFT; in booke206_fixed_size_tlbn()
|
/openbmc/linux/arch/powerpc/mm/nohash/ |
H A D | e500_hugetlbpage.c | 121 unsigned long mas1, mas2; in book3e_hugetlb_preload() local 154 mas1 = MAS1_VALID | MAS1_TID(mm->context.id) | MAS1_TSIZE(tsize); in book3e_hugetlb_preload() 162 mtspr(SPRN_MAS1, mas1); in book3e_hugetlb_preload()
|
/openbmc/u-boot/board/freescale/qemu-ppce500/ |
H A D | qemu-ppce500.c | 34 u32 mas0, mas1, mas2, mas3, mas7; in map_fdt_as() local 40 mas1 = MAS1_VALID | MAS1_TID(0) | MAS1_TS | MAS1_TSIZE(BOOKE_PAGESZ_1M); in map_fdt_as() 45 write_tlb(mas0, mas1, mas2, mas3, mas7); in map_fdt_as()
|
/openbmc/linux/arch/powerpc/include/asm/nohash/ |
H A D | mmu-e500.h | 66 #define MAS1_GET_TSIZE(mas1) (((mas1) & MAS1_TSIZE_MASK) >> MAS1_TSIZE_SHIFT) argument
|
/openbmc/linux/arch/powerpc/include/uapi/asm/ |
H A D | kvm_para.h | 53 __u32 mas1; member
|
H A D | kvm.h | 259 __u32 mas1; member 368 __u32 mas1; member
|
/openbmc/u-boot/arch/powerpc/include/asm/ |
H A D | mmu.h | 524 .mas1 = FSL_BOOKE_MAS1(1, _iprot, 0, _ts, _sz), \ 531 u32 mas1; member
|
/openbmc/qemu/hw/ppc/ |
H A D | ppce500_spin.c | 82 tlb->mas1 = MAS1_VALID | size; in mmubooke_create_initial_mapping()
|
/openbmc/linux/arch/powerpc/xmon/ |
H A D | xmon.c | 3907 u32 mas1 = MAS1_TSIZE(BOOK3E_PAGESZ_4K); in dump_tlb_book3e() local 3920 mtspr(SPRN_MAS1, mas1); in dump_tlb_book3e() 3923 mas1 = mfspr(SPRN_MAS1); in dump_tlb_book3e() 3928 if (!(mas1 & MAS1_VALID)) in dump_tlb_book3e() 3939 (mas1 >> 16) & 0x3fff, in dump_tlb_book3e() 3940 pgsz_names[(mas1 >> 7) & 0x1f], in dump_tlb_book3e() 3941 mas1 & MAS1_IND ? 'I' : ' ', in dump_tlb_book3e() 3942 mas1 & MAS1_IPROT ? 'P' : ' ', in dump_tlb_book3e() 3943 mas1 & MAS1_TS ? '1' : '0'); in dump_tlb_book3e() 3953 if (mas1 & MAS1_IND) in dump_tlb_book3e()
|
/openbmc/linux/tools/arch/powerpc/include/uapi/asm/ |
H A D | kvm.h | 259 __u32 mas1; member 368 __u32 mas1; member
|
/openbmc/qemu/linux-headers/asm-powerpc/ |
H A D | kvm.h | 258 __u32 mas1; member 367 __u32 mas1; member
|
/openbmc/linux/arch/powerpc/include/asm/ |
H A D | ptrace.h | 83 unsigned long mas1; member
|
/openbmc/linux/arch/powerpc/kernel/ |
H A D | kvm.c | 465 kvm_patch_ins_lwz(inst, magic_var(mas1), inst_rt); in kvm_check_ins() 567 kvm_patch_ins_stw(inst, magic_var(mas1), inst_rt); in kvm_check_ins()
|
H A D | asm-offsets.c | 311 STACK_PT_REGS_OFFSET(MAS1, mas1); in main() 413 OFFSET(VCPU_SHARED_MAS1, kvm_vcpu_arch_shared, mas1); in main()
|