Home
last modified time | relevance | path

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

/Linux-v4.19/tools/testing/selftests/powerpc/pmu/ebb/
Dcycles_with_mmcr2_test.c58 mtspr(SPRN_MMCR2, expected[i % 2]); in cycles_with_mmcr2()
62 val = mfspr(SPRN_MMCR2); in cycles_with_mmcr2()
Debb.c236 mmcr0, decode_mmcr0(mmcr0), mfspr(SPRN_MMCR2), in dump_ebb_hw_state()
392 val |= mfspr(SPRN_MMCR2); in ebb_child()
/Linux-v4.19/arch/powerpc/kvm/
Dbook3s_hv_interrupts.S71 mfspr r8, SPRN_MMCR2
72 mtspr SPRN_MMCR2, r3 /* freeze all counters using MMCR2 */
Dbook3s_emulate.c835 case SPRN_MMCR2: in kvmppc_core_emulate_mtspr_pr()
998 case SPRN_MMCR2: in kvmppc_core_emulate_mfspr_pr()
Dbook3s_hv_rmhandlers.S149 mtspr SPRN_MMCR2, r8
844 mtspr SPRN_MMCR2, r5
1825 mfspr r10, SPRN_MMCR2
1826 mtspr SPRN_MMCR2, r3
3434 mtspr SPRN_MMCR2, r3
/Linux-v4.19/tools/testing/selftests/powerpc/include/
Dreg.h21 #define SPRN_MMCR2 769 macro
/Linux-v4.19/arch/powerpc/oprofile/
Dop_model_7450.c90 mtspr(SPRN_MMCR2, mmcr2_val); in fsl7450_cpu_setup()
/Linux-v4.19/arch/powerpc/perf/
Dcore-book3s.c91 #define SPRN_MMCRA SPRN_MMCR2
584 current->thread.mmcr2 = mfspr(SPRN_MMCR2) & MMCR2_USER_MASK; in ebb_switch_out()
623 mtspr(SPRN_MMCR2, cpuhw->mmcr[3] | current->thread.mmcr2); in ebb_switch_in()
694 mtspr(SPRN_MMCR2, 0); in pmao_restore_workaround()
840 mfspr(SPRN_MMCR2), mfspr(SPRN_EBBHR)); in perf_event_print_debug()
1340 mtspr(SPRN_MMCR2, cpuhw->mmcr[3]); in power_pmu_enable()
/Linux-v4.19/arch/powerpc/kernel/
Dcpu_setup_power.S212 mtspr SPRN_MMCR2,r5
Didle_book3s.S122 mfspr r4, SPRN_MMCR2
150 mtspr SPRN_MMCR2, r3
Ddt_cpu_ftrs.c376 mtspr(SPRN_MMCR2, 0); in init_pmu_power8()
415 mtspr(SPRN_MMCR2, 0); in init_pmu_power9()
Dsysfs.c478 SYSFS_PMCSETUP(mmcr2, SPRN_MMCR2);
/Linux-v4.19/arch/powerpc/include/asm/
Dreg.h844 #define SPRN_MMCR2 785 macro
1011 #define SPRN_MMCR2 944 macro
/Linux-v4.19/arch/powerpc/xmon/
Dxmon.c1845 mfspr(SPRN_MMCR0), mfspr(SPRN_MMCR1), mfspr(SPRN_MMCR2)); in dump_207_sprs()