Home
last modified time | relevance | path

Searched refs:mmcr2 (Results 1 – 8 of 8) sorted by relevance

/linux/tools/testing/selftests/powerpc/pmu/sampling_tests/
H A Dmisc.h125 static inline int get_mmcr2_fcs(u64 mmcr2, int pmc)
127 return ((mmcr2 & (1ull << (63 - (((pmc) - 1) * 9)))) >> (63 - (((pmc) - 1) * 9))); in get_mmcr2_fcp()
130 static inline int get_mmcr2_fcp(u64 mmcr2, int pmc)
132 return ((mmcr2 & (1ull << (62 - (((pmc) - 1) * 9)))) >> (62 - (((pmc) - 1) * 9))); in get_mmcr2_fcpc()
135 static inline int get_mmcr2_fcpc(u64 mmcr2, int pmc)
137 return ((mmcr2 & (1ull << (61 - (((pmc) - 1) * 9)))) >> (61 - (((pmc) - 1) * 9))); in get_mmcr2_fcm1()
140 static inline int get_mmcr2_fcm1(u64 mmcr2, int pmc)
142 return ((mmcr2 & (1ull << (60 - (((pmc) - 1) * 9)))) >> (60 - (((pmc) - 1) * 9))); in get_mmcr2_fcm0()
145 static inline int get_mmcr2_fcm0(u64 mmcr2, int pmc)
147 return ((mmcr2 in get_mmcr2_fcwait()
121 get_mmcr2_fcs(u64 mmcr2,int pmc) get_mmcr2_fcs() argument
126 get_mmcr2_fcp(u64 mmcr2,int pmc) get_mmcr2_fcp() argument
131 get_mmcr2_fcpc(u64 mmcr2,int pmc) get_mmcr2_fcpc() argument
136 get_mmcr2_fcm1(u64 mmcr2,int pmc) get_mmcr2_fcm1() argument
141 get_mmcr2_fcm0(u64 mmcr2,int pmc) get_mmcr2_fcm0() argument
146 get_mmcr2_fcwait(u64 mmcr2,int pmc) get_mmcr2_fcwait() argument
151 get_mmcr2_fch(u64 mmcr2,int pmc) get_mmcr2_fch() argument
156 get_mmcr2_fcti(u64 mmcr2,int pmc) get_mmcr2_fcti() argument
161 get_mmcr2_fcta(u64 mmcr2,int pmc) get_mmcr2_fcta() argument
166 get_mmcr2_l2l3(u64 mmcr2,int pmc) get_mmcr2_l2l3() argument
[all...]
/linux/arch/powerpc/perf/
H A Dmpc7450-pmu.c268 u32 mmcr0 = 0, mmcr1 = 0, mmcr2 = 0; in mpc7450_compute_mmcr() local
307 mmcr2 = 0x80000000; in mpc7450_compute_mmcr()
327 mmcr->mmcr2 = mmcr2; in mpc7450_compute_mmcr()
334 mmcr->mmcra = mmcr2; in mpc7450_compute_mmcr()
/linux/arch/powerpc/kvm/
H A Dbook3s_hv_p9_perf.c61 host_os_sprs->mmcr2 = mfspr(SPRN_MMCR2); in switch_pmu_to_guest()
202 mtspr(SPRN_MMCR2, host_os_sprs->mmcr2); in switch_pmu_to_host()
H A Dbook3s_hv.h20 unsigned long mmcr2; member
/linux/arch/powerpc/kernel/ptrace/
H A Dptrace-view.c409 BUILD_BUG_ON(TSO(sier) + sizeof(unsigned long) != TSO(mmcr2)); in pmu_get()
410 BUILD_BUG_ON(TSO(mmcr2) + sizeof(unsigned long) != TSO(mmcr0)); in pmu_get()
427 BUILD_BUG_ON(TSO(sier) + sizeof(unsigned long) != TSO(mmcr2)); in pmu_set()
428 BUILD_BUG_ON(TSO(mmcr2) + sizeof(unsigned long) != TSO(mmcr0)); in pmu_set()
448 &target->thread.mmcr2, 3 * sizeof(unsigned long), in pmu_set()
/linux/arch/powerpc/include/asm/
H A Dswitch_to.h119 t->thread.mmcr2 = 0; in clear_task_ebb()
H A Dprocessor.h255 unsigned long mmcr2; member
/linux/arch/powerpc/platforms/powernv/
H A Didle.c599 u64 mmcr2; member
676 sprs.mmcr2 = mfspr(SPRN_MMCR2); in power9_idle_stop()
792 mtspr(SPRN_MMCR2, sprs.mmcr2); in power9_idle_stop()