Lines Matching refs:cpuc

593 	struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events);  in tile_pmu_stop()  local
597 if (__test_and_clear_bit(idx, cpuc->active_mask)) { in tile_pmu_stop()
599 cpuc->events[hwc->idx] = NULL; in tile_pmu_stop()
619 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in tile_pmu_start() local
635 cpuc->events[idx] = event; in tile_pmu_start()
636 __set_bit(idx, cpuc->active_mask); in tile_pmu_start()
653 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in tile_pmu_add() local
663 if (cpuc->n_events == tile_pmu->num_counters) in tile_pmu_add()
666 cpuc->event_list[cpuc->n_events] = event; in tile_pmu_add()
667 cpuc->n_events++; in tile_pmu_add()
677 mask = ~cpuc->used_mask; in tile_pmu_add()
690 __set_bit(b, &cpuc->used_mask); in tile_pmu_add()
709 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in tile_pmu_del() local
715 for (i = 0; i < cpuc->n_events; i++) { in tile_pmu_del()
716 if (cpuc->event_list[i] == event) { in tile_pmu_del()
717 while (++i < cpuc->n_events) in tile_pmu_del()
718 cpuc->event_list[i-1] = cpuc->event_list[i]; in tile_pmu_del()
719 --cpuc->n_events; in tile_pmu_del()
720 cpuc->events[event->hw.idx] = NULL; in tile_pmu_del()
721 __clear_bit(event->hw.idx, &cpuc->used_mask); in tile_pmu_del()
729 if (cpuc->n_events == 0) in tile_pmu_del()
883 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in tile_pmu_handle_irq() local
900 event = cpuc->events[bit]; in tile_pmu_handle_irq()
905 if (!test_bit(bit, cpuc->active_mask)) in tile_pmu_handle_irq()