Lines Matching refs:sh_pmu
36 static struct sh_pmu *sh_pmu __read_mostly;
57 return !!sh_pmu; in sh_pmu_initialized()
78 if (!sh_pmu->cache_events) in hw_perf_cache_event()
91 ev = (*sh_pmu->cache_events)[type][op][result]; in hw_perf_cache_event()
135 config = attr->config & sh_pmu->raw_event_mask; in __hw_perf_event_init()
143 if (attr->config >= sh_pmu->max_events) in __hw_perf_event_init()
146 config = sh_pmu->event_map(attr->config); in __hw_perf_event_init()
179 new_raw_count = sh_pmu->read(idx); in sh_perf_event_update()
206 sh_pmu->disable(hwc, idx); in sh_pmu_stop()
231 sh_pmu->enable(hwc, idx); in sh_pmu_start()
254 idx = find_first_zero_bit(cpuc->used_mask, sh_pmu->num_events); in sh_pmu_add()
255 if (idx == sh_pmu->num_events) in sh_pmu_add()
262 sh_pmu->disable(hwc, idx); in sh_pmu_add()
312 sh_pmu->enable_all(); in sh_pmu_enable()
320 sh_pmu->disable_all(); in sh_pmu_disable()
342 int register_sh_pmu(struct sh_pmu *_pmu) in register_sh_pmu()
344 if (sh_pmu) in register_sh_pmu()
346 sh_pmu = _pmu; in register_sh_pmu()