Home
last modified time | relevance | path

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

/linux-6.6.21/tools/testing/selftests/powerpc/pmu/ebb/
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()
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()
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()
Dpmae_handling_test.c44 before = mfspr(SPRN_MMCR0); in syscall_ebb_callee()
49 after = mfspr(SPRN_MMCR0); in syscall_ebb_callee()
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()
Dno_handler_test.c48 val = mfspr(SPRN_MMCR0); in no_handler_test()
Dfork_cleanup_test.c59 mtspr(SPRN_MMCR0, MMCR0_FC); in fork_cleanup()
/linux-6.6.21/arch/powerpc/kernel/
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()
Dcpu_setup_power.c112 mtspr(SPRN_MMCR0, MMCR0_FC); in init_PMU()
126 mtspr(SPRN_MMCR0, MMCR0_FC | MMCR0_PMCCEXT); in init_PMU_ISA31()
Ddt_cpu_ftrs.c361 mtspr(SPRN_MMCR0, MMCR0_FC); in init_pmu_power8()
399 mtspr(SPRN_MMCR0, MMCR0_FC); in init_pmu_power9()
434 mtspr(SPRN_MMCR0, MMCR0_FC | MMCR0_PMCCEXT); in init_pmu_power10()
Dsysfs.c602 SYSFS_PMCSETUP(mmcr0, SPRN_MMCR0);
/linux-6.6.21/arch/powerpc/kvm/
Dbook3s_hv_p9_perf.c30 mtspr(SPRN_MMCR0, mmcr0); in freeze_pmu()
49 host_os_sprs->mmcr0 = mfspr(SPRN_MMCR0); in switch_pmu_to_guest()
108 mtspr(SPRN_MMCR0, vcpu->arch.mmcr[0]); in switch_pmu_to_guest()
137 vcpu->arch.mmcr[0] = mfspr(SPRN_MMCR0); in switch_pmu_to_host()
166 freeze_pmu(mfspr(SPRN_MMCR0), mfspr(SPRN_MMCRA)); in switch_pmu_to_host()
215 mtspr(SPRN_MMCR0, host_os_sprs->mmcr0); in switch_pmu_to_host()
Dbook3s_hv_interrupts.S122 mfspr r7, SPRN_MMCR0 /* save MMCR0 */
123 mtspr SPRN_MMCR0, r3 /* freeze all counters, disable interrupts */
Dbook3s_emulate.c835 case SPRN_MMCR0: in kvmppc_core_emulate_mtspr_pr()
1001 case SPRN_MMCR0: in kvmppc_core_emulate_mfspr_pr()
Dbook3s_hv_rmhandlers.S2777 mtspr SPRN_MMCR0, r3 /* freeze all counters, disable ints */
2818 mtspr SPRN_MMCR0, r3
2867 mtspr SPRN_MMCR0, r3
2908 mfspr r4, SPRN_MMCR0 /* save MMCR0 */
2909 mtspr SPRN_MMCR0, r3 /* freeze all counters, disable ints */
2968 mtspr SPRN_MMCR0, r3
/linux-6.6.21/arch/powerpc/perf/
Dcore-book3s.c766 mtspr(SPRN_MMCR0, MMCR0_PMXE | MMCR0_PMCjCE | MMCR0_PMAO); in pmao_restore_workaround()
769 mtspr(SPRN_MMCR0, MMCR0_FC | MMCR0_PMAO); in pmao_restore_workaround()
936 mfspr(SPRN_MMCR0), mfspr(SPRN_MMCR1), mfspr(SPRN_MMCRA)); in perf_event_print_debug()
1271 mtspr(SPRN_MMCR0, mmcr0); in write_mmcr0()
1285 "i" (SPRN_MMCR0), in write_mmcr0()
1298 mtspr(SPRN_MMCR0, mmcr0); in write_mmcr0()
1329 val = mmcr0 = mfspr(SPRN_MMCR0); in power_pmu_disable()
1510 mtspr(SPRN_MMCR0, (cpuhw->mmcr.mmcr0 & ~(MMCR0_PMC1CE | MMCR0_PMCjCE)) in power_pmu_enable()
2570 mtspr(SPRN_MMCR0, mfspr(SPRN_MMCR0) & ~MMCR0_FC); in do_pmu_override()
Dperf_regs.c81 return mfspr(SPRN_MMCR0); in get_ext_regs_value()
/linux-6.6.21/tools/testing/selftests/powerpc/include/
Dreg.h26 #define SPRN_MMCR0 779 macro
/linux-6.6.21/arch/powerpc/platforms/powernv/
Didle.c660 mmcr0 = mfspr(SPRN_MMCR0); in power9_idle_stop()
674 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-6.6.21/arch/powerpc/include/asm/
Dreg.h861 #define SPRN_MMCR0 795 macro
1045 #define SPRN_MMCR0 952 /* Monitor Mode Control Register 0 */ macro
/linux-6.6.21/arch/powerpc/xmon/
Dxmon.c2070 mfspr(SPRN_MMCR0), mfspr(SPRN_MMCR1), mfspr(SPRN_MMCR2)); in dump_207_sprs()