Lines Matching refs:alpha_pmu

95 static const struct alpha_pmu_t *alpha_pmu;  variable
235 val &= alpha_pmu->pmc_count_mask[idx]; in alpha_write_pmc()
236 val <<= alpha_pmu->pmc_count_shift[idx]; in alpha_write_pmc()
246 val >>= alpha_pmu->pmc_count_shift[idx]; in alpha_read_pmc()
247 val &= alpha_pmu->pmc_count_mask[idx]; in alpha_read_pmc()
277 if (unlikely(left < alpha_pmu->pmc_left[idx])) in alpha_perf_event_set_period()
278 left = alpha_pmu->pmc_left[idx]; in alpha_perf_event_set_period()
280 if (left > (long)alpha_pmu->pmc_max_period[idx]) in alpha_perf_event_set_period()
281 left = alpha_pmu->pmc_max_period[idx]; in alpha_perf_event_set_period()
321 delta = (new_raw_count - (prev_raw_count & alpha_pmu->pmc_count_mask[idx])) + ovf; in alpha_perf_event_update()
327 delta += alpha_pmu->pmc_max_period[idx] + 1; in alpha_perf_event_update()
379 if (n_ev > alpha_pmu->num_pmcs) in alpha_check_constraints()
382 return alpha_pmu->check_constraints(events, evtypes, n_ev); in alpha_check_constraints()
457 if (n0 < alpha_pmu->num_pmcs) { in alpha_pmu_add()
616 if (attr->config >= alpha_pmu->max_events) in __hw_perf_event_init()
618 ev = alpha_pmu->event_map[attr->config]; in __hw_perf_event_init()
622 if (!alpha_pmu->raw_event_valid(attr->config)) in __hw_perf_event_init()
651 alpha_pmu->num_pmcs - 1, in __hw_perf_event_init()
679 hwc->sample_period = alpha_pmu->pmc_max_period[0]; in __hw_perf_event_init()
706 if (!alpha_pmu) in alpha_pmu_event_init()
787 pcr0 = (pcr >> alpha_pmu->pmc_count_shift[0]) & alpha_pmu->pmc_count_mask[0]; in perf_event_print_debug()
788 pcr1 = (pcr >> alpha_pmu->pmc_count_shift[1]) & alpha_pmu->pmc_count_mask[1]; in perf_event_print_debug()
820 if (unlikely(la_ptr >= alpha_pmu->num_pmcs)) { in alpha_perf_event_irq_handler()
852 alpha_perf_event_update(event, hwc, idx, alpha_pmu->pmc_max_period[idx]+1); in alpha_perf_event_irq_handler()
889 alpha_pmu = &ev67_pmu; in init_hw_perf_events()