Lines Matching refs:sh_pmu
39 static struct sh_pmu *sh_pmu __read_mostly;
60 return !!sh_pmu; in sh_pmu_initialized()
65 if (!sh_pmu) in perf_pmu_name()
68 return sh_pmu->name; in perf_pmu_name()
74 if (!sh_pmu) in perf_num_counters()
77 return sh_pmu->num_events; in perf_num_counters()
99 if (!sh_pmu->cache_events) in hw_perf_cache_event()
112 ev = (*sh_pmu->cache_events)[type][op][result]; in hw_perf_cache_event()
156 config = attr->config & sh_pmu->raw_event_mask; in __hw_perf_event_init()
164 if (attr->config >= sh_pmu->max_events) in __hw_perf_event_init()
167 config = sh_pmu->event_map(attr->config); in __hw_perf_event_init()
200 new_raw_count = sh_pmu->read(idx); in sh_perf_event_update()
227 sh_pmu->disable(hwc, idx); in sh_pmu_stop()
252 sh_pmu->enable(hwc, idx); in sh_pmu_start()
275 idx = find_first_zero_bit(cpuc->used_mask, sh_pmu->num_events); in sh_pmu_add()
276 if (idx == sh_pmu->num_events) in sh_pmu_add()
283 sh_pmu->disable(hwc, idx); in sh_pmu_add()
333 sh_pmu->enable_all(); in sh_pmu_enable()
341 sh_pmu->disable_all(); in sh_pmu_disable()
379 int register_sh_pmu(struct sh_pmu *_pmu) in register_sh_pmu()
381 if (sh_pmu) in register_sh_pmu()
383 sh_pmu = _pmu; in register_sh_pmu()