Lines Matching refs:hwc
195 static void bfin_pfmon_disable(struct hw_perf_event *hwc, int idx) in bfin_pfmon_disable() argument
200 static void bfin_pfmon_enable(struct hw_perf_event *hwc, int idx) in bfin_pfmon_enable() argument
208 val |= (hwc->config << (PFMON1_P - PFMON0_P)); in bfin_pfmon_enable()
209 val |= (hwc->config & PFCNT0) << (PFCNT1_P - PFCNT0_P); in bfin_pfmon_enable()
213 val |= hwc->config; in bfin_pfmon_enable()
261 struct hw_perf_event *hwc, int idx) in bfin_perf_event_update() argument
280 prev_raw_count = local64_read(&hwc->prev_count); in bfin_perf_event_update()
283 if (local64_cmpxchg(&hwc->prev_count, prev_raw_count, in bfin_perf_event_update()
304 struct hw_perf_event *hwc = &event->hw; in bfin_pmu_stop() local
305 int idx = hwc->idx; in bfin_pmu_stop()
308 bfin_pfmon_disable(hwc, idx); in bfin_pmu_stop()
322 struct hw_perf_event *hwc = &event->hw; in bfin_pmu_start() local
323 int idx = hwc->idx; in bfin_pmu_start()
333 bfin_pfmon_enable(hwc, idx); in bfin_pmu_start()
349 struct hw_perf_event *hwc = &event->hw; in bfin_pmu_add() local
350 int idx = hwc->idx; in bfin_pmu_add()
361 hwc->idx = idx; in bfin_pmu_add()
364 bfin_pfmon_disable(hwc, idx); in bfin_pmu_add()
385 struct hw_perf_event *hwc = &event->hw; in bfin_pmu_event_init() local
417 hwc->config |= config; in bfin_pmu_event_init()
426 struct hw_perf_event *hwc; in bfin_pmu_enable() local
433 hwc = &event->hw; in bfin_pmu_enable()
434 bfin_pfmon_enable(hwc, hwc->idx); in bfin_pmu_enable()