Lines Matching refs:cpuc
149 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events);
174 struct perf_event *event = cpuc->events[idx];
275 xscale1pmu_get_event_idx(struct pmu_hw_events *cpuc,
280 if (test_and_set_bit(XSCALE_CYCLE_COUNTER, cpuc->used_mask))
285 if (!test_and_set_bit(XSCALE_COUNTER1, cpuc->used_mask))
288 if (!test_and_set_bit(XSCALE_COUNTER0, cpuc->used_mask))
295 static void xscalepmu_clear_event_idx(struct pmu_hw_events *cpuc,
298 clear_bit(event->hw.idx, cpuc->used_mask);
501 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events);
520 struct perf_event *event = cpuc->events[idx];
649 xscale2pmu_get_event_idx(struct pmu_hw_events *cpuc,
652 int idx = xscale1pmu_get_event_idx(cpuc, event);
656 if (!test_and_set_bit(XSCALE_COUNTER3, cpuc->used_mask))
658 else if (!test_and_set_bit(XSCALE_COUNTER2, cpuc->used_mask))