Home
last modified time | relevance | path

Searched refs:SPRN_MMCR0 (Results 1 – 20 of 20) sorted by relevance

/linux/tools/testing/selftests/powerpc/pmu/ebb/
A Dcycles_with_freeze_test.c39 val = mfspr(SPRN_MMCR0); in ebb_callee()
40 trace_log_reg(ebb_state.trace, SPRN_MMCR0, val); in ebb_callee()
84 mtspr(SPRN_MMCR0, mfspr(SPRN_MMCR0) & ~MMCR0_FC); in cycles_with_freeze()
90 mtspr(SPRN_MMCR0, mfspr(SPRN_MMCR0) | MMCR0_FC); in cycles_with_freeze()
92 val = mfspr(SPRN_MMCR0); in cycles_with_freeze()
A Debb.c39 val = mfspr(SPRN_MMCR0); in reset_ebb_with_clear_mask()
40 mtspr(SPRN_MMCR0, (val & ~mmcr0_clear_mask) | MMCR0_PMAE); in reset_ebb_with_clear_mask()
61 val = mfspr(SPRN_MMCR0); in ebb_check_mmcr0()
113 val = mfspr(SPRN_MMCR0); in standard_ebb_callee()
114 trace_log_reg(ebb_state.trace, SPRN_MMCR0, val); in standard_ebb_callee()
221 mmcr0 = mfspr(SPRN_MMCR0); in dump_ebb_hw_state()
296 mtspr(SPRN_MMCR0, mfspr(SPRN_MMCR0) | MMCR0_FC); in ebb_freeze_pmcs()
303 mtspr(SPRN_MMCR0, mfspr(SPRN_MMCR0) & ~MMCR0_FC); in ebb_unfreeze_pmcs()
393 val |= mfspr(SPRN_MMCR0); in ebb_child()
A Dinstruction_count_test.c35 mtspr(SPRN_MMCR0, mfspr(SPRN_MMCR0) & ~MMCR0_FC); in do_count_loop()
41 mtspr(SPRN_MMCR0, mfspr(SPRN_MMCR0) | MMCR0_FC); in do_count_loop()
128 mtspr(SPRN_MMCR0, mfspr(SPRN_MMCR0) & ~MMCR0_FC); in instruction_count()
A Dpmae_handling_test.c44 before = mfspr(SPRN_MMCR0); in syscall_ebb_callee()
49 after = mfspr(SPRN_MMCR0); in syscall_ebb_callee()
A Dback_to_back_ebbs_test.c58 val = mfspr(SPRN_MMCR0); in ebb_callee()
59 trace_log_reg(ebb_state.trace, SPRN_MMCR0, val); in ebb_callee()
A Dno_handler_test.c48 val = mfspr(SPRN_MMCR0); in no_handler_test()
A Dfork_cleanup_test.c59 mtspr(SPRN_MMCR0, MMCR0_FC); in fork_cleanup()
/linux/arch/powerpc/kernel/
A Dpmc.c30 mtspr(SPRN_MMCR0, mfspr(SPRN_MMCR0) & ~(MMCR0_PMXE|MMCR0_PMAO)); in dummy_perf()
32 mtspr(SPRN_MMCR0, mfspr(SPRN_MMCR0) & ~MMCR0_PMXE); in dummy_perf()
A Dcpu_setup_power.c112 mtspr(SPRN_MMCR0, 0); in init_PMU()
126 mtspr(SPRN_MMCR0, MMCR0_PMCCEXT); in init_PMU_ISA31()
A Ddt_cpu_ftrs.c354 mtspr(SPRN_MMCR0, 0); in init_pmu_power8()
393 mtspr(SPRN_MMCR0, 0); in init_pmu_power9()
429 mtspr(SPRN_MMCR0, MMCR0_PMCCEXT); in init_pmu_power10()
A Dsysfs.c597 SYSFS_PMCSETUP(mmcr0, SPRN_MMCR0);
/linux/arch/powerpc/kvm/
A Dbook3s_hv_interrupts.S118 mfspr r7, SPRN_MMCR0 /* save MMCR0 */
119 mtspr SPRN_MMCR0, r3 /* freeze all counters, disable interrupts */
A Dbook3s_hv_rmhandlers.S2789 mtspr SPRN_MMCR0, r3 /* freeze all counters, disable ints */
2840 mtspr SPRN_MMCR0, r3
2895 mtspr SPRN_MMCR0, r3
2934 mfspr r4, SPRN_MMCR0 /* save MMCR0 */
2935 mtspr SPRN_MMCR0, r3 /* freeze all counters, disable ints */
3003 mtspr SPRN_MMCR0, r3
A Dbook3s_emulate.c835 case SPRN_MMCR0: in kvmppc_core_emulate_mtspr_pr()
1001 case SPRN_MMCR0: in kvmppc_core_emulate_mfspr_pr()
/linux/arch/powerpc/perf/
A Dcore-book3s.c765 mtspr(SPRN_MMCR0, MMCR0_PMXE | MMCR0_PMCjCE | MMCR0_PMAO); in pmao_restore_workaround()
768 mtspr(SPRN_MMCR0, MMCR0_FC | MMCR0_PMAO); in pmao_restore_workaround()
894 mfspr(SPRN_MMCR0), mfspr(SPRN_MMCR1), mfspr(SPRN_MMCRA)); in perf_event_print_debug()
1229 mtspr(SPRN_MMCR0, mmcr0); in write_mmcr0()
1243 "i" (SPRN_MMCR0), in write_mmcr0()
1256 mtspr(SPRN_MMCR0, mmcr0); in write_mmcr0()
1285 val = mmcr0 = mfspr(SPRN_MMCR0); in power_pmu_disable()
1435 mtspr(SPRN_MMCR0, (cpuhw->mmcr.mmcr0 & ~(MMCR0_PMC1CE | MMCR0_PMCjCE)) in power_pmu_enable()
A Dperf_regs.c81 return mfspr(SPRN_MMCR0); in get_ext_regs_value()
/linux/tools/testing/selftests/powerpc/include/
A Dreg.h24 #define SPRN_MMCR0 779 macro
/linux/arch/powerpc/platforms/powernv/
A Didle.c659 mmcr0 = mfspr(SPRN_MMCR0); in power9_idle_stop()
673 sprs.mmcr0 = mfspr(SPRN_MMCR0); in power9_idle_stop()
721 mtspr(SPRN_MMCR0, mmcr0); in power9_idle_stop()
790 mtspr(SPRN_MMCR0, sprs.mmcr0); in power9_idle_stop()
/linux/arch/powerpc/include/asm/
A Dreg.h853 #define SPRN_MMCR0 795 macro
1037 #define SPRN_MMCR0 952 /* Monitor Mode Control Register 0 */ macro
/linux/arch/powerpc/xmon/
A Dxmon.c2075 mfspr(SPRN_MMCR0), mfspr(SPRN_MMCR1), mfspr(SPRN_MMCR2)); in dump_207_sprs()

Completed in 39 milliseconds