Lines Matching defs:hwc
242 struct hw_perf_event *hwc, int idx)
244 long left = local64_read(&hwc->period_left);
245 long period = hwc->sample_period;
250 local64_set(&hwc->period_left, left);
251 hwc->last_period = period;
257 local64_set(&hwc->period_left, left);
258 hwc->last_period = period;
272 local64_set(&hwc->prev_count, (unsigned long)(-left));
297 struct hw_perf_event *hwc, int idx, long ovf)
303 prev_raw_count = local64_read(&hwc->prev_count);
306 if (local64_cmpxchg(&hwc->prev_count, prev_raw_count,
320 local64_sub(delta, &hwc->period_left);
402 struct hw_perf_event *hwc = &pe->hw;
403 int idx = hwc->idx;
410 alpha_perf_event_set_period(pe, hwc, idx);
473 struct hw_perf_event *hwc = &event->hw;
495 alpha_perf_event_update(event, hwc, idx, 0);
511 struct hw_perf_event *hwc = &event->hw;
513 alpha_perf_event_update(event, hwc, hwc->idx, 0);
519 struct hw_perf_event *hwc = &event->hw;
522 cpuc->idx_mask |= 1UL<<hwc->idx;
523 wrperfmon(PERFMON_CMD_ENABLE, (1UL<<hwc->idx));
559 struct hw_perf_event *hwc = &event->hw;
600 hwc->event_base = ev;
614 evtypes[n] = hwc->event_base;
621 hwc->config_base = 0;
622 hwc->idx = PMC_NO_INDEX;
636 if (!hwc->sample_period) {
637 hwc->sample_period = alpha_pmu->pmc_max_period[0];
638 hwc->last_period = hwc->sample_period;
639 local64_set(&hwc->period_left, hwc->sample_period);
755 struct hw_perf_event *hwc;
801 hwc = &event->hw;
802 alpha_perf_event_update(event, hwc, idx, alpha_pmu->pmc_max_period[idx]+1);
805 if (alpha_perf_event_set_period(event, hwc, idx)) {