• Home
  • Raw
  • Download

Lines Matching refs:event

41 static int mpc7450_classify_event(u32 event)  in mpc7450_classify_event()  argument
45 pmc = (event >> PM_PMC_SH) & PM_PMC_MSK; in mpc7450_classify_event()
51 event &= PM_PMCSEL_MSK; in mpc7450_classify_event()
52 if (event <= 1) in mpc7450_classify_event()
54 if (event <= 7) in mpc7450_classify_event()
56 if (event <= 13) in mpc7450_classify_event()
58 if (event <= 22) in mpc7450_classify_event()
81 static int mpc7450_threshold_use(u32 event) in mpc7450_threshold_use() argument
85 pmc = (event >> PM_PMC_SH) & PM_PMC_MSK; in mpc7450_threshold_use()
86 sel = event & PM_PMCSEL_MSK; in mpc7450_threshold_use()
154 static int mpc7450_get_constraint(u64 event, unsigned long *maskp, in mpc7450_get_constraint() argument
161 class = mpc7450_classify_event(event); in mpc7450_get_constraint()
165 pmc = ((unsigned int)event >> PM_PMC_SH) & PM_PMC_MSK; in mpc7450_get_constraint()
173 tuse = mpc7450_threshold_use(event); in mpc7450_get_constraint()
175 thresh = ((unsigned int)event >> PM_THRESH_SH) & PM_THRESH_MSK; in mpc7450_get_constraint()
180 if ((unsigned int)event & PM_THRMULT_MSKS) in mpc7450_get_constraint()
212 static int find_alternative(u32 event) in find_alternative() argument
217 if (event < event_alternatives[i][0]) in find_alternative()
220 if (event == event_alternatives[i][j]) in find_alternative()
226 static int mpc7450_get_alternatives(u64 event, unsigned int flags, u64 alt[]) in mpc7450_get_alternatives() argument
231 alt[0] = event; in mpc7450_get_alternatives()
233 i = find_alternative((u32)event); in mpc7450_get_alternatives()
237 if (ae && ae != (u32)event) in mpc7450_get_alternatives()
263 static int mpc7450_compute_mmcr(u64 event[], int n_ev, unsigned int hwc[], in mpc7450_compute_mmcr() argument
281 class = mpc7450_classify_event(event[i]); in mpc7450_compute_mmcr()
291 ev = event[event_index[class][i]]; in mpc7450_compute_mmcr()