Lines Matching full:pmc
63 static inline int get_mmcr0_fc56(u64 mmcr0, int pmc) in get_mmcr0_fc56() argument
68 static inline int get_mmcr0_pmccext(u64 mmcr0, int pmc) in get_mmcr0_pmccext() argument
73 static inline int get_mmcr0_pmao(u64 mmcr0, int pmc) in get_mmcr0_pmao() argument
78 static inline int get_mmcr0_cc56run(u64 mmcr0, int pmc) in get_mmcr0_cc56run() argument
83 static inline int get_mmcr0_pmcjce(u64 mmcr0, int pmc) in get_mmcr0_pmcjce() argument
88 static inline int get_mmcr0_pmc1ce(u64 mmcr0, int pmc) in get_mmcr0_pmc1ce() argument
93 static inline int get_mmcr0_pmae(u64 mmcr0, int pmc) in get_mmcr0_pmae() argument
98 static inline int get_mmcr1_pmcxsel(u64 mmcr1, int pmc) in get_mmcr1_pmcxsel() argument
100 return ((mmcr1 >> ((24 - (((pmc) - 1) * 8))) & 0xff)); in get_mmcr1_pmcxsel()
103 static inline int get_mmcr1_unit(u64 mmcr1, int pmc) in get_mmcr1_unit() argument
105 return ((mmcr1 >> ((60 - (4 * ((pmc) - 1))))) & 0xf); in get_mmcr1_unit()
108 static inline int get_mmcr1_comb(u64 mmcr1, int pmc) in get_mmcr1_comb() argument
110 return ((mmcr1 >> (38 - ((pmc - 1) * 2))) & 0x3); in get_mmcr1_comb()
113 static inline int get_mmcr1_cache(u64 mmcr1, int pmc) in get_mmcr1_cache() argument
118 static inline int get_mmcr1_rsq(u64 mmcr1, int pmc) in get_mmcr1_rsq() argument
123 static inline int get_mmcr2_fcs(u64 mmcr2, int pmc) in get_mmcr2_fcs() argument
125 return ((mmcr2 & (1ull << (63 - (((pmc) - 1) * 9)))) >> (63 - (((pmc) - 1) * 9))); in get_mmcr2_fcs()
128 static inline int get_mmcr2_fcp(u64 mmcr2, int pmc) in get_mmcr2_fcp() argument
130 return ((mmcr2 & (1ull << (62 - (((pmc) - 1) * 9)))) >> (62 - (((pmc) - 1) * 9))); in get_mmcr2_fcp()
133 static inline int get_mmcr2_fcpc(u64 mmcr2, int pmc) in get_mmcr2_fcpc() argument
135 return ((mmcr2 & (1ull << (61 - (((pmc) - 1) * 9)))) >> (61 - (((pmc) - 1) * 9))); in get_mmcr2_fcpc()
138 static inline int get_mmcr2_fcm1(u64 mmcr2, int pmc) in get_mmcr2_fcm1() argument
140 return ((mmcr2 & (1ull << (60 - (((pmc) - 1) * 9)))) >> (60 - (((pmc) - 1) * 9))); in get_mmcr2_fcm1()
143 static inline int get_mmcr2_fcm0(u64 mmcr2, int pmc) in get_mmcr2_fcm0() argument
145 return ((mmcr2 & (1ull << (59 - (((pmc) - 1) * 9)))) >> (59 - (((pmc) - 1) * 9))); in get_mmcr2_fcm0()
148 static inline int get_mmcr2_fcwait(u64 mmcr2, int pmc) in get_mmcr2_fcwait() argument
150 return ((mmcr2 & (1ull << (58 - (((pmc) - 1) * 9)))) >> (58 - (((pmc) - 1) * 9))); in get_mmcr2_fcwait()
153 static inline int get_mmcr2_fch(u64 mmcr2, int pmc) in get_mmcr2_fch() argument
155 return ((mmcr2 & (1ull << (57 - (((pmc) - 1) * 9)))) >> (57 - (((pmc) - 1) * 9))); in get_mmcr2_fch()
158 static inline int get_mmcr2_fcti(u64 mmcr2, int pmc) in get_mmcr2_fcti() argument
160 return ((mmcr2 & (1ull << (56 - (((pmc) - 1) * 9)))) >> (56 - (((pmc) - 1) * 9))); in get_mmcr2_fcti()
163 static inline int get_mmcr2_fcta(u64 mmcr2, int pmc) in get_mmcr2_fcta() argument
165 return ((mmcr2 & (1ull << (55 - (((pmc) - 1) * 9)))) >> (55 - (((pmc) - 1) * 9))); in get_mmcr2_fcta()
168 static inline int get_mmcr2_l2l3(u64 mmcr2, int pmc) in get_mmcr2_l2l3() argument
175 static inline int get_mmcr3_src(u64 mmcr3, int pmc) in get_mmcr3_src() argument
179 return ((mmcr3 >> ((49 - (15 * ((pmc) - 1))))) & 0x7fff); in get_mmcr3_src()
182 static inline int get_mmcra_thd_cmp(u64 mmcra, int pmc) in get_mmcra_thd_cmp() argument
189 static inline int get_mmcra_sm(u64 mmcra, int pmc) in get_mmcra_sm() argument
194 static inline u64 get_mmcra_bhrb_disable(u64 mmcra, int pmc) in get_mmcra_bhrb_disable() argument
201 static inline int get_mmcra_ifm(u64 mmcra, int pmc) in get_mmcra_ifm() argument
206 static inline int get_mmcra_thd_sel(u64 mmcra, int pmc) in get_mmcra_thd_sel() argument
211 static inline int get_mmcra_thd_start(u64 mmcra, int pmc) in get_mmcra_thd_start() argument
216 static inline int get_mmcra_thd_stop(u64 mmcra, int pmc) in get_mmcra_thd_stop() argument
221 static inline int get_mmcra_rand_samp_elig(u64 mmcra, int pmc) in get_mmcra_rand_samp_elig() argument
226 static inline int get_mmcra_sample_mode(u64 mmcra, int pmc) in get_mmcra_sample_mode() argument
231 static inline int get_mmcra_marked(u64 mmcra, int pmc) in get_mmcra_marked() argument