Lines Matching refs:cflags
829 u64 event_id[], unsigned int cflags[], in power_check_constraints() argument
844 if ((cflags[i] & PPMU_LIMITED_PMC_REQD) in power_check_constraints()
846 ppmu->get_alternatives(event_id[i], cflags[i], in power_check_constraints()
873 n_alt[i] = ppmu->get_alternatives(event_id[i], cflags[i], in power_check_constraints()
940 static int check_excludes(struct perf_event **ctrs, unsigned int cflags[], in check_excludes() argument
961 if (cflags[i] & PPMU_LIMITED_PMC_OK) { in check_excludes()
962 cflags[i] &= ~PPMU_LIMITED_PMC_REQD; in check_excludes()
980 if (cflags[i] & PPMU_LIMITED_PMC_OK) in check_excludes()
981 cflags[i] |= PPMU_LIMITED_PMC_REQD; in check_excludes()
1770 unsigned int cflags[MAX_HWEVENTS]; in power_pmu_event_init() local
1856 ctrs, events, cflags); in power_pmu_event_init()
1862 cflags[n] = flags; in power_pmu_event_init()
1863 if (check_excludes(ctrs, cflags, n, 1)) in power_pmu_event_init()
1867 err = power_check_constraints(cpuhw, events, cflags, n + 1); in power_pmu_event_init()
1884 event->hw.event_base = cflags[n]; in power_pmu_event_init()