Lines Matching refs:mmcr2
121 static inline int get_mmcr2_fcs(u64 mmcr2, int pmc) in get_mmcr2_fcs() argument
123 return ((mmcr2 & (1ull << (63 - (((pmc) - 1) * 9)))) >> (63 - (((pmc) - 1) * 9))); in get_mmcr2_fcs()
126 static inline int get_mmcr2_fcp(u64 mmcr2, int pmc) in get_mmcr2_fcp() argument
128 return ((mmcr2 & (1ull << (62 - (((pmc) - 1) * 9)))) >> (62 - (((pmc) - 1) * 9))); in get_mmcr2_fcp()
131 static inline int get_mmcr2_fcpc(u64 mmcr2, int pmc) in get_mmcr2_fcpc() argument
133 return ((mmcr2 & (1ull << (61 - (((pmc) - 1) * 9)))) >> (61 - (((pmc) - 1) * 9))); in get_mmcr2_fcpc()
136 static inline int get_mmcr2_fcm1(u64 mmcr2, int pmc) in get_mmcr2_fcm1() argument
138 return ((mmcr2 & (1ull << (60 - (((pmc) - 1) * 9)))) >> (60 - (((pmc) - 1) * 9))); in get_mmcr2_fcm1()
141 static inline int get_mmcr2_fcm0(u64 mmcr2, int pmc) in get_mmcr2_fcm0() argument
143 return ((mmcr2 & (1ull << (59 - (((pmc) - 1) * 9)))) >> (59 - (((pmc) - 1) * 9))); in get_mmcr2_fcm0()
146 static inline int get_mmcr2_fcwait(u64 mmcr2, int pmc) in get_mmcr2_fcwait() argument
148 return ((mmcr2 & (1ull << (58 - (((pmc) - 1) * 9)))) >> (58 - (((pmc) - 1) * 9))); in get_mmcr2_fcwait()
151 static inline int get_mmcr2_fch(u64 mmcr2, int pmc) in get_mmcr2_fch() argument
153 return ((mmcr2 & (1ull << (57 - (((pmc) - 1) * 9)))) >> (57 - (((pmc) - 1) * 9))); in get_mmcr2_fch()
156 static inline int get_mmcr2_fcti(u64 mmcr2, int pmc) in get_mmcr2_fcti() argument
158 return ((mmcr2 & (1ull << (56 - (((pmc) - 1) * 9)))) >> (56 - (((pmc) - 1) * 9))); in get_mmcr2_fcti()
161 static inline int get_mmcr2_fcta(u64 mmcr2, int pmc) in get_mmcr2_fcta() argument
163 return ((mmcr2 & (1ull << (55 - (((pmc) - 1) * 9)))) >> (55 - (((pmc) - 1) * 9))); in get_mmcr2_fcta()
166 static inline int get_mmcr2_l2l3(u64 mmcr2, int pmc) in get_mmcr2_l2l3() argument
169 return ((mmcr2 & 0xf8) >> 3); in get_mmcr2_l2l3()