Lines Matching defs:cpuc
709 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events);
712 for_each_clear_bit(i, cpuc->used_mask, cpu_pmu->num_events) {
770 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events);
796 struct perf_event *event = cpuc->events[idx];
829 static int armv8pmu_get_single_idx(struct pmu_hw_events *cpuc,
835 if (!test_and_set_bit(idx, cpuc->used_mask))
841 static int armv8pmu_get_chain_idx(struct pmu_hw_events *cpuc,
851 if (!test_and_set_bit(idx, cpuc->used_mask)) {
853 if (!test_and_set_bit(idx - 1, cpuc->used_mask))
856 clear_bit(idx, cpuc->used_mask);
862 static int armv8pmu_get_event_idx(struct pmu_hw_events *cpuc,
871 if (!test_and_set_bit(ARMV8_IDX_CYCLE_COUNTER, cpuc->used_mask))
883 return armv8pmu_get_chain_idx(cpuc, cpu_pmu);
885 return armv8pmu_get_single_idx(cpuc, cpu_pmu);
888 static void armv8pmu_clear_event_idx(struct pmu_hw_events *cpuc,
893 clear_bit(idx, cpuc->used_mask);
895 clear_bit(idx - 1, cpuc->used_mask);