Searched refs:SPRN_MMCR2 (Results 1 – 8 of 8) sorted by relevance
| /linux/arch/powerpc/kvm/ |
| H A 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()
|
| H A D | book3s_hv_interrupts.S | 116 mfspr r8, SPRN_MMCR2 117 mtspr SPRN_MMCR2, r3 /* freeze all counters using MMCR2 */
|
| H A D | book3s_emulate.c | 837 case SPRN_MMCR2: in kvmppc_core_emulate_mtspr_pr() 1003 case SPRN_MMCR2: in kvmppc_core_emulate_mfspr_pr()
|
| /linux/tools/testing/selftests/powerpc/pmu/ebb/ |
| H A 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()
|
| H A 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/tools/testing/selftests/powerpc/include/ |
| H A D | reg.h | 24 #define SPRN_MMCR2 769 macro
|
| /linux/arch/powerpc/perf/ |
| H A D | perf_regs.c | 85 return mfspr(SPRN_MMCR2); in get_ext_regs_value()
|
| /linux/arch/powerpc/kernel/ |
| H A D | dt_cpu_ftrs.c | 362 mtspr(SPRN_MMCR2, 0); in init_pmu_power8() 400 mtspr(SPRN_MMCR2, 0); in init_pmu_power9()
|