Searched refs:SPRN_MMCR2 (Results 1 – 15 of 15) sorted by relevance
/linux-6.1.9/tools/testing/selftests/powerpc/pmu/ebb/ |
D | cycles_with_mmcr2_test.c | 59 mtspr(SPRN_MMCR2, expected[i % 2]); in cycles_with_mmcr2() 63 val = mfspr(SPRN_MMCR2); in cycles_with_mmcr2()
|
D | ebb.c | 236 mmcr0, decode_mmcr0(mmcr0), mfspr(SPRN_MMCR2), in dump_ebb_hw_state() 392 val |= mfspr(SPRN_MMCR2); in ebb_child()
|
/linux-6.1.9/arch/powerpc/kvm/ |
D | book3s_hv_p9_perf.c | 61 host_os_sprs->mmcr2 = mfspr(SPRN_MMCR2); in switch_pmu_to_guest() 95 mtspr(SPRN_MMCR2, vcpu->arch.mmcr[2]); in switch_pmu_to_guest() 149 vcpu->arch.mmcr[2] = mfspr(SPRN_MMCR2); in switch_pmu_to_host() 202 mtspr(SPRN_MMCR2, host_os_sprs->mmcr2); in switch_pmu_to_host()
|
D | book3s_hv_interrupts.S | 115 mfspr r8, SPRN_MMCR2 116 mtspr SPRN_MMCR2, r3 /* freeze all counters using MMCR2 */
|
D | book3s_emulate.c | 837 case SPRN_MMCR2: in kvmppc_core_emulate_mtspr_pr() 1003 case SPRN_MMCR2: in kvmppc_core_emulate_mfspr_pr()
|
D | book3s_hv_rmhandlers.S | 2801 mtspr SPRN_MMCR2, r5 2855 mtspr SPRN_MMCR2, r8 2892 mfspr r10, SPRN_MMCR2 2893 mtspr SPRN_MMCR2, r3 2954 mtspr SPRN_MMCR2, r3
|
/linux-6.1.9/tools/testing/selftests/powerpc/include/ |
D | reg.h | 22 #define SPRN_MMCR2 769 macro
|
/linux-6.1.9/arch/powerpc/perf/ |
D | perf_regs.c | 85 return mfspr(SPRN_MMCR2); in get_ext_regs_value()
|
D | core-book3s.c | 97 #define SPRN_MMCRA SPRN_MMCR2 639 current->thread.mmcr2 = mfspr(SPRN_MMCR2) & MMCR2_USER_MASK; in ebb_switch_out() 683 mtspr(SPRN_MMCR2, cpuhw->mmcr.mmcr2 | current->thread.mmcr2); in ebb_switch_in() 760 mtspr(SPRN_MMCR2, 0); in pmao_restore_workaround() 947 mfspr(SPRN_MMCR2), mfspr(SPRN_EBBHR)); in perf_event_print_debug() 1514 mtspr(SPRN_MMCR2, cpuhw->mmcr.mmcr2); in power_pmu_enable()
|
/linux-6.1.9/arch/powerpc/kernel/ |
D | cpu_setup_power.c | 114 mtspr(SPRN_MMCR2, 0); in init_PMU()
|
D | dt_cpu_ftrs.c | 363 mtspr(SPRN_MMCR2, 0); in init_pmu_power8() 401 mtspr(SPRN_MMCR2, 0); in init_pmu_power9()
|
D | sysfs.c | 608 SYSFS_PMCSETUP(mmcr2, SPRN_MMCR2);
|
/linux-6.1.9/arch/powerpc/include/asm/ |
D | reg.h | 880 #define SPRN_MMCR2 785 macro 1054 #define SPRN_MMCR2 944 macro
|
/linux-6.1.9/arch/powerpc/platforms/powernv/ |
D | idle.c | 674 sprs.mmcr2 = mfspr(SPRN_MMCR2); in power9_idle_stop() 790 mtspr(SPRN_MMCR2, sprs.mmcr2); in power9_idle_stop()
|
/linux-6.1.9/arch/powerpc/xmon/ |
D | xmon.c | 2073 mfspr(SPRN_MMCR0), mfspr(SPRN_MMCR1), mfspr(SPRN_MMCR2)); in dump_207_sprs()
|