Lines Matching refs:alpha_pmu

94 static const struct alpha_pmu_t *alpha_pmu;  variable
234 val &= alpha_pmu->pmc_count_mask[idx]; in alpha_write_pmc()
235 val <<= alpha_pmu->pmc_count_shift[idx]; in alpha_write_pmc()
245 val >>= alpha_pmu->pmc_count_shift[idx]; in alpha_read_pmc()
246 val &= alpha_pmu->pmc_count_mask[idx]; in alpha_read_pmc()
276 if (unlikely(left < alpha_pmu->pmc_left[idx])) in alpha_perf_event_set_period()
277 left = alpha_pmu->pmc_left[idx]; in alpha_perf_event_set_period()
279 if (left > (long)alpha_pmu->pmc_max_period[idx]) in alpha_perf_event_set_period()
280 left = alpha_pmu->pmc_max_period[idx]; in alpha_perf_event_set_period()
320 delta = (new_raw_count - (prev_raw_count & alpha_pmu->pmc_count_mask[idx])) + ovf; in alpha_perf_event_update()
326 delta += alpha_pmu->pmc_max_period[idx] + 1; in alpha_perf_event_update()
378 if (n_ev > alpha_pmu->num_pmcs) in alpha_check_constraints()
381 return alpha_pmu->check_constraints(events, evtypes, n_ev); in alpha_check_constraints()
456 if (n0 < alpha_pmu->num_pmcs) { in alpha_pmu_add()
615 if (attr->config >= alpha_pmu->max_events) in __hw_perf_event_init()
617 ev = alpha_pmu->event_map[attr->config]; in __hw_perf_event_init()
621 if (!alpha_pmu->raw_event_valid(attr->config)) in __hw_perf_event_init()
656 alpha_pmu->num_pmcs - 1, in __hw_perf_event_init()
684 hwc->sample_period = alpha_pmu->pmc_max_period[0]; in __hw_perf_event_init()
713 if (!alpha_pmu) in alpha_pmu_event_init()
795 pcr0 = (pcr >> alpha_pmu->pmc_count_shift[0]) & alpha_pmu->pmc_count_mask[0]; in perf_event_print_debug()
796 pcr1 = (pcr >> alpha_pmu->pmc_count_shift[1]) & alpha_pmu->pmc_count_mask[1]; in perf_event_print_debug()
828 if (unlikely(la_ptr >= alpha_pmu->num_pmcs)) { in alpha_perf_event_irq_handler()
860 alpha_perf_event_update(event, hwc, idx, alpha_pmu->pmc_max_period[idx]+1); in alpha_perf_event_irq_handler()
897 alpha_pmu = &ev67_pmu; in init_hw_perf_events()