Lines Matching refs:hw
103 struct hw_perf_event *hwc = &event->hw; in __hw_perf_event_init()
202 struct hw_perf_event *hwc = &event->hw; in sh_pmu_stop()
205 if (!(event->hw.state & PERF_HES_STOPPED)) { in sh_pmu_stop()
208 event->hw.state |= PERF_HES_STOPPED; in sh_pmu_stop()
211 if ((flags & PERF_EF_UPDATE) && !(event->hw.state & PERF_HES_UPTODATE)) { in sh_pmu_stop()
212 sh_perf_event_update(event, &event->hw, idx); in sh_pmu_stop()
213 event->hw.state |= PERF_HES_UPTODATE; in sh_pmu_stop()
220 struct hw_perf_event *hwc = &event->hw; in sh_pmu_start()
227 WARN_ON_ONCE(!(event->hw.state & PERF_HES_UPTODATE)); in sh_pmu_start()
230 event->hw.state = 0; in sh_pmu_start()
239 __clear_bit(event->hw.idx, cpuc->used_mask); in sh_pmu_del()
247 struct hw_perf_event *hwc = &event->hw; in sh_pmu_add()
264 event->hw.state = PERF_HES_UPTODATE | PERF_HES_STOPPED; in sh_pmu_add()
277 sh_perf_event_update(event, &event->hw, event->hw.idx); in sh_pmu_read()