Lines Matching refs:hwc
89 struct hw_perf_event *hwc, int idx) in arc_perf_event_update() argument
95 prev_raw_count = local64_read(&hwc->prev_count); in arc_perf_event_update()
97 } while (local64_cmpxchg(&hwc->prev_count, prev_raw_count, in arc_perf_event_update()
104 local64_sub(delta, &hwc->period_left); in arc_perf_event_update()
142 struct hw_perf_event *hwc = &event->hw; in arc_pmu_event_init() local
151 hwc->config = arc_pmu->ev_hw_idx[event->attr.config]; in arc_pmu_event_init()
153 (int) event->attr.config, (int) hwc->config, in arc_pmu_event_init()
160 hwc->config = arc_pmu->ev_hw_idx[ret]; in arc_pmu_event_init()
190 struct hw_perf_event *hwc = &event->hw; in arc_pmu_start() local
191 int idx = hwc->idx; in arc_pmu_start()
203 write_aux_reg(ARC_REG_PCT_CONFIG, hwc->config); in arc_pmu_start()
208 struct hw_perf_event *hwc = &event->hw; in arc_pmu_stop() local
209 int idx = hwc->idx; in arc_pmu_stop()
239 struct hw_perf_event *hwc = &event->hw; in arc_pmu_add() local
240 int idx = hwc->idx; in arc_pmu_add()
249 hwc->idx = idx; in arc_pmu_add()
256 local64_set(&hwc->prev_count, 0); in arc_pmu_add()
258 hwc->state = PERF_HES_UPTODATE | PERF_HES_STOPPED; in arc_pmu_add()