• Home
  • Raw
  • Download

Lines Matching refs:hwc

199 	struct hw_perf_event *hwc = &event->hw;  in armpmu_event_set_period()  local
200 s64 left = local64_read(&hwc->period_left); in armpmu_event_set_period()
201 s64 period = hwc->sample_period; in armpmu_event_set_period()
208 local64_set(&hwc->period_left, left); in armpmu_event_set_period()
209 hwc->last_period = period; in armpmu_event_set_period()
215 local64_set(&hwc->period_left, left); in armpmu_event_set_period()
216 hwc->last_period = period; in armpmu_event_set_period()
229 local64_set(&hwc->prev_count, (u64)-left); in armpmu_event_set_period()
241 struct hw_perf_event *hwc = &event->hw; in armpmu_event_update() local
246 prev_raw_count = local64_read(&hwc->prev_count); in armpmu_event_update()
249 if (local64_cmpxchg(&hwc->prev_count, prev_raw_count, in armpmu_event_update()
256 local64_sub(delta, &hwc->period_left); in armpmu_event_update()
271 struct hw_perf_event *hwc = &event->hw; in armpmu_stop() local
277 if (!(hwc->state & PERF_HES_STOPPED)) { in armpmu_stop()
280 hwc->state |= PERF_HES_STOPPED | PERF_HES_UPTODATE; in armpmu_stop()
287 struct hw_perf_event *hwc = &event->hw; in armpmu_start() local
294 WARN_ON_ONCE(!(hwc->state & PERF_HES_UPTODATE)); in armpmu_start()
296 hwc->state = 0; in armpmu_start()
313 struct hw_perf_event *hwc = &event->hw; in armpmu_del() local
314 int idx = hwc->idx; in armpmu_del()
321 hwc->idx = -1; in armpmu_del()
329 struct hw_perf_event *hwc = &event->hw; in armpmu_add() local
349 hwc->state = PERF_HES_STOPPED | PERF_HES_UPTODATE; in armpmu_add()
443 struct hw_perf_event *hwc = &event->hw; in __hw_perf_event_init() local
446 hwc->flags = 0; in __hw_perf_event_init()
461 hwc->idx = -1; in __hw_perf_event_init()
462 hwc->config_base = 0; in __hw_perf_event_init()
463 hwc->config = 0; in __hw_perf_event_init()
464 hwc->event_base = 0; in __hw_perf_event_init()
470 armpmu->set_event_filter(hwc, &event->attr)) { in __hw_perf_event_init()
479 hwc->config_base |= (unsigned long)mapping; in __hw_perf_event_init()
488 hwc->sample_period = arm_pmu_event_max_period(event) >> 1; in __hw_perf_event_init()
489 hwc->last_period = hwc->sample_period; in __hw_perf_event_init()
490 local64_set(&hwc->period_left, hwc->sample_period); in __hw_perf_event_init()