Home
last modified time | relevance | path

Searched refs:SPRN_MMCR2 (Results 1 – 15 of 15) sorted by relevance

/linux-6.1.9/tools/testing/selftests/powerpc/pmu/ebb/
Dcycles_with_mmcr2_test.c59 mtspr(SPRN_MMCR2, expected[i % 2]); in cycles_with_mmcr2()
63 val = mfspr(SPRN_MMCR2); in cycles_with_mmcr2()
Debb.c236 mmcr0, decode_mmcr0(mmcr0), mfspr(SPRN_MMCR2), in dump_ebb_hw_state()
392 val |= mfspr(SPRN_MMCR2); in ebb_child()
/linux-6.1.9/arch/powerpc/kvm/
Dbook3s_hv_p9_perf.c61 host_os_sprs->mmcr2 = mfspr(SPRN_MMCR2); in switch_pmu_to_guest()
95 mtspr(SPRN_MMCR2, vcpu->arch.mmcr[2]); in switch_pmu_to_guest()
149 vcpu->arch.mmcr[2] = mfspr(SPRN_MMCR2); in switch_pmu_to_host()
202 mtspr(SPRN_MMCR2, host_os_sprs->mmcr2); in switch_pmu_to_host()
Dbook3s_hv_interrupts.S115 mfspr r8, SPRN_MMCR2
116 mtspr SPRN_MMCR2, r3 /* freeze all counters using MMCR2 */
Dbook3s_emulate.c837 case SPRN_MMCR2: in kvmppc_core_emulate_mtspr_pr()
1003 case SPRN_MMCR2: in kvmppc_core_emulate_mfspr_pr()
Dbook3s_hv_rmhandlers.S2801 mtspr SPRN_MMCR2, r5
2855 mtspr SPRN_MMCR2, r8
2892 mfspr r10, SPRN_MMCR2
2893 mtspr SPRN_MMCR2, r3
2954 mtspr SPRN_MMCR2, r3
/linux-6.1.9/tools/testing/selftests/powerpc/include/
Dreg.h22 #define SPRN_MMCR2 769 macro
/linux-6.1.9/arch/powerpc/perf/
Dperf_regs.c85 return mfspr(SPRN_MMCR2); in get_ext_regs_value()
Dcore-book3s.c97 #define SPRN_MMCRA SPRN_MMCR2
639 current->thread.mmcr2 = mfspr(SPRN_MMCR2) & MMCR2_USER_MASK; in ebb_switch_out()
683 mtspr(SPRN_MMCR2, cpuhw->mmcr.mmcr2 | current->thread.mmcr2); in ebb_switch_in()
760 mtspr(SPRN_MMCR2, 0); in pmao_restore_workaround()
947 mfspr(SPRN_MMCR2), mfspr(SPRN_EBBHR)); in perf_event_print_debug()
1514 mtspr(SPRN_MMCR2, cpuhw->mmcr.mmcr2); in power_pmu_enable()
/linux-6.1.9/arch/powerpc/kernel/
Dcpu_setup_power.c114 mtspr(SPRN_MMCR2, 0); in init_PMU()
Ddt_cpu_ftrs.c363 mtspr(SPRN_MMCR2, 0); in init_pmu_power8()
401 mtspr(SPRN_MMCR2, 0); in init_pmu_power9()
Dsysfs.c608 SYSFS_PMCSETUP(mmcr2, SPRN_MMCR2);
/linux-6.1.9/arch/powerpc/include/asm/
Dreg.h880 #define SPRN_MMCR2 785 macro
1054 #define SPRN_MMCR2 944 macro
/linux-6.1.9/arch/powerpc/platforms/powernv/
Didle.c674 sprs.mmcr2 = mfspr(SPRN_MMCR2); in power9_idle_stop()
790 mtspr(SPRN_MMCR2, sprs.mmcr2); in power9_idle_stop()
/linux-6.1.9/arch/powerpc/xmon/
Dxmon.c2073 mfspr(SPRN_MMCR0), mfspr(SPRN_MMCR1), mfspr(SPRN_MMCR2)); in dump_207_sprs()