Lines Matching full:ppmu
27 static struct fsl_emb_pmu *ppmu; variable
280 int num_counters = ppmu->n_counter; in fsl_emb_pmu_add()
288 num_counters = ppmu->n_restricted; in fsl_emb_pmu_add()
447 if (!ppmu->cache_events) in hw_perf_cache_event()
460 ev = (*ppmu->cache_events)[type][op][result]; in hw_perf_cache_event()
478 if (ppmu->n_counter > MAX_HWEVENTS) { in fsl_emb_pmu_event_init()
480 ppmu->n_counter, MAX_HWEVENTS); in fsl_emb_pmu_event_init()
481 ppmu->n_counter = MAX_HWEVENTS; in fsl_emb_pmu_event_init()
487 if (ev >= ppmu->n_generic || ppmu->generic_events[ev] == 0) in fsl_emb_pmu_event_init()
489 ev = ppmu->generic_events[ev]; in fsl_emb_pmu_event_init()
506 event->hw.config = ppmu->xlate_event(ev); in fsl_emb_pmu_event_init()
518 ppmu->n_counter - 1, events); in fsl_emb_pmu_event_init()
530 if (num_restricted >= ppmu->n_restricted) in fsl_emb_pmu_event_init()
649 for (i = 0; i < ppmu->n_counter; ++i) { in perf_event_interrupt()
684 if (ppmu) in register_fsl_emb_pmu()
687 ppmu = pmu; in register_fsl_emb_pmu()