Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/powerpc/pmu/ebb/
H A Dcycles_with_mmcr2_test.c59 mtspr(SPRN_MMCR2, expected[i % 2]); in cycles_with_mmcr2()
63 val = mfspr(SPRN_MMCR2); in cycles_with_mmcr2()
H A Debb.c236 mmcr0, decode_mmcr0(mmcr0), mfspr(SPRN_MMCR2), in dump_ebb_hw_state()
392 val |= mfspr(SPRN_MMCR2); in ebb_child()
/linux/arch/powerpc/kvm/
H A 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()
H A Dbook3s_hv_interrupts.S116 mfspr r8, SPRN_MMCR2
117 mtspr SPRN_MMCR2, r3 /* freeze all counters using MMCR2 */
H A Dbook3s_emulate.c837 case SPRN_MMCR2: in kvmppc_core_emulate_mtspr_pr()
1003 case SPRN_MMCR2: in kvmppc_core_emulate_mfspr_pr()
/linux/tools/testing/selftests/powerpc/include/
H A Dreg.h24 #define SPRN_MMCR2 769 macro
/linux/arch/powerpc/perf/
H A Dperf_regs.c85 return mfspr(SPRN_MMCR2); in get_ext_regs_value()
/linux/arch/powerpc/kernel/
H A Dcpu_setup_power.c114 mtspr(SPRN_MMCR2, 0); in init_PMU()
/linux/arch/powerpc/include/asm/
H A Dreg.h887 #define SPRN_MMCR2 785 macro
1061 #define SPRN_MMCR2 944 macro
/linux/arch/powerpc/platforms/powernv/
H A Didle.c676 sprs.mmcr2 = mfspr(SPRN_MMCR2); in power9_idle_stop()
792 mtspr(SPRN_MMCR2, sprs.mmcr2); in power9_idle_stop()