Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/powerpc/pmu/ebb/
A Dcycles_with_mmcr2_test.c58 mtspr(SPRN_MMCR2, expected[i % 2]); in cycles_with_mmcr2()
62 val = mfspr(SPRN_MMCR2); in cycles_with_mmcr2()
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/
A Dbook3s_hv_interrupts.S112 mfspr r8, SPRN_MMCR2
113 mtspr SPRN_MMCR2, r3 /* freeze all counters using MMCR2 */
A Dbook3s_emulate.c837 case SPRN_MMCR2: in kvmppc_core_emulate_mtspr_pr()
1003 case SPRN_MMCR2: in kvmppc_core_emulate_mfspr_pr()
A Dbook3s_hv_rmhandlers.S2829 mtspr SPRN_MMCR2, r5
2884 mtspr SPRN_MMCR2, r8
2928 mfspr r10, SPRN_MMCR2
2929 mtspr SPRN_MMCR2, r3
3000 mtspr SPRN_MMCR2, r3
/linux/tools/testing/selftests/powerpc/include/
A Dreg.h22 #define SPRN_MMCR2 769 macro
/linux/arch/powerpc/perf/
A Dperf_regs.c85 return mfspr(SPRN_MMCR2); in get_ext_regs_value()
A Dcore-book3s.c96 #define SPRN_MMCRA SPRN_MMCR2
638 current->thread.mmcr2 = mfspr(SPRN_MMCR2) & MMCR2_USER_MASK; in ebb_switch_out()
682 mtspr(SPRN_MMCR2, cpuhw->mmcr.mmcr2 | current->thread.mmcr2); in ebb_switch_in()
759 mtspr(SPRN_MMCR2, 0); in pmao_restore_workaround()
905 mfspr(SPRN_MMCR2), mfspr(SPRN_EBBHR)); in perf_event_print_debug()
1438 mtspr(SPRN_MMCR2, cpuhw->mmcr.mmcr2); in power_pmu_enable()
/linux/arch/powerpc/kernel/
A Dcpu_setup_power.c114 mtspr(SPRN_MMCR2, 0); in init_PMU()
A Ddt_cpu_ftrs.c356 mtspr(SPRN_MMCR2, 0); in init_pmu_power8()
395 mtspr(SPRN_MMCR2, 0); in init_pmu_power9()
A Dsysfs.c608 SYSFS_PMCSETUP(mmcr2, SPRN_MMCR2);
/linux/arch/powerpc/include/asm/
A Dreg.h883 #define SPRN_MMCR2 785 macro
1057 #define SPRN_MMCR2 944 macro
/linux/arch/powerpc/platforms/powernv/
A Didle.c675 sprs.mmcr2 = mfspr(SPRN_MMCR2); in power9_idle_stop()
792 mtspr(SPRN_MMCR2, sprs.mmcr2); in power9_idle_stop()
/linux/arch/powerpc/xmon/
A Dxmon.c2075 mfspr(SPRN_MMCR0), mfspr(SPRN_MMCR1), mfspr(SPRN_MMCR2)); in dump_207_sprs()

Completed in 32 milliseconds