Lines Matching refs:cpuc
227 struct pmu_hw_events *cpuc; in xscale1pmu_handle_irq() local
253 cpuc = &__get_cpu_var(cpu_hw_events); in xscale1pmu_handle_irq()
255 struct perf_event *event = cpuc->events[idx]; in xscale1pmu_handle_irq()
352 xscale1pmu_get_event_idx(struct pmu_hw_events *cpuc, in xscale1pmu_get_event_idx() argument
356 if (test_and_set_bit(XSCALE_CYCLE_COUNTER, cpuc->used_mask)) in xscale1pmu_get_event_idx()
361 if (!test_and_set_bit(XSCALE_COUNTER1, cpuc->used_mask)) in xscale1pmu_get_event_idx()
364 if (!test_and_set_bit(XSCALE_COUNTER0, cpuc->used_mask)) in xscale1pmu_get_event_idx()
573 struct pmu_hw_events *cpuc; in xscale2pmu_handle_irq() local
593 cpuc = &__get_cpu_var(cpu_hw_events); in xscale2pmu_handle_irq()
595 struct perf_event *event = cpuc->events[idx]; in xscale2pmu_handle_irq()
720 xscale2pmu_get_event_idx(struct pmu_hw_events *cpuc, in xscale2pmu_get_event_idx() argument
723 int idx = xscale1pmu_get_event_idx(cpuc, event); in xscale2pmu_get_event_idx()
727 if (!test_and_set_bit(XSCALE_COUNTER3, cpuc->used_mask)) in xscale2pmu_get_event_idx()
729 else if (!test_and_set_bit(XSCALE_COUNTER2, cpuc->used_mask)) in xscale2pmu_get_event_idx()