Home
last modified time | relevance | path

Searched refs:MMCR0_FC (Results 1 – 13 of 13) sorted by relevance

/openbmc/linux/tools/testing/selftests/powerpc/pmu/ebb/
H A Dcycles_with_freeze_test.c28 mask = MMCR0_PMAO | MMCR0_FC; in ebb_callee()
45 mask &= ~MMCR0_FC; 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()
93 if (! (val & MMCR0_FC)) { in cycles_with_freeze()
H 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()
H A Debb.c53 reset_ebb_with_clear_mask(MMCR0_PMAO | MMCR0_FC); in reset_ebb()
62 if ((val & (MMCR0_FC | MMCR0_PMAO)) == MMCR0_FC) { in ebb_check_mmcr0()
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()
H A Dfork_cleanup_test.c59 mtspr(SPRN_MMCR0, MMCR0_FC); in fork_cleanup()
/openbmc/linux/arch/powerpc/kernel/
H A Dcpu_setup_power.c112 mtspr(SPRN_MMCR0, MMCR0_FC); in init_PMU()
126 mtspr(SPRN_MMCR0, MMCR0_FC | MMCR0_PMCCEXT); in init_PMU_ISA31()
H A 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()
/openbmc/linux/arch/powerpc/kvm/
H A Dbook3s_hv_p9_perf.c10 if (!(mmcr0 & MMCR0_FC)) in freeze_pmu()
23 mmcr0 = MMCR0_FC; in freeze_pmu()
H A Dbook3s_hv.c2925 kvmppc_set_mmcr_hv(vcpu, 0, MMCR0_FC); in kvmppc_core_vcpu_create_hv()
/openbmc/qemu/target/ppc/
H A Dpower8-pmu.c45 if (mmcr0 & MMCR0_FC) { in pmu_update_summaries()
341 env->spr[SPR_POWER_MMCR0] |= MMCR0_FC; in perfm_alert()
H A Dcpu.h525 #define MMCR0_FC PPC_BIT(32) /* Freeze Counters */ macro
541 #define MMCR0_UREG_MASK (MMCR0_FC | MMCR0_PMAO | MMCR0_PMAE)
/openbmc/linux/tools/testing/selftests/powerpc/include/
H A Dreg.h29 #define MMCR0_FC 0x80000000 macro
/openbmc/linux/arch/powerpc/perf/
H A Dcore-book3s.c769 mtspr(SPRN_MMCR0, MMCR0_FC | MMCR0_PMAO); in pmao_restore_workaround()
1288 if (mmcr0 & MMCR0_FC) in write_mmcr0()
1330 val |= MMCR0_FC; in power_pmu_disable()
1511 | MMCR0_FC); in power_pmu_enable()
2500 cpuhw->mmcr.mmcr0 = MMCR0_FC; in power_pmu_prepare_cpu()
2570 mtspr(SPRN_MMCR0, mfspr(SPRN_MMCR0) & ~MMCR0_FC); in do_pmu_override()
/openbmc/linux/arch/powerpc/include/asm/
H A Dreg.h862 #define MMCR0_FC 0x80000000UL /* freeze counters */ macro
950 #define MMCR0_USER_MASK (MMCR0_FC | MMCR0_PMXE | MMCR0_PMAO)
1046 #define MMCR0_FC 0x80000000UL /* freeze counters */ macro