Lines Matching refs:cpuhw
192 struct cpu_hw_events *cpuhw; in fsl_emb_pmu_disable() local
196 cpuhw = this_cpu_ptr(&cpu_hw_events); in fsl_emb_pmu_disable()
198 if (!cpuhw->disabled) { in fsl_emb_pmu_disable()
199 cpuhw->disabled = 1; in fsl_emb_pmu_disable()
204 if (!cpuhw->pmcs_enabled) { in fsl_emb_pmu_disable()
206 cpuhw->pmcs_enabled = 1; in fsl_emb_pmu_disable()
231 struct cpu_hw_events *cpuhw; in fsl_emb_pmu_enable() local
235 cpuhw = this_cpu_ptr(&cpu_hw_events); in fsl_emb_pmu_enable()
236 if (!cpuhw->disabled) in fsl_emb_pmu_enable()
239 cpuhw->disabled = 0; in fsl_emb_pmu_enable()
240 ppc_set_pmu_inuse(cpuhw->n_events != 0); in fsl_emb_pmu_enable()
242 if (cpuhw->n_events > 0) { in fsl_emb_pmu_enable()
278 struct cpu_hw_events *cpuhw; in fsl_emb_pmu_add() local
285 cpuhw = &get_cpu_var(cpu_hw_events); in fsl_emb_pmu_add()
295 if (cpuhw->event[i]) in fsl_emb_pmu_add()
305 cpuhw->event[i] = event; in fsl_emb_pmu_add()
306 ++cpuhw->n_events; in fsl_emb_pmu_add()
339 struct cpu_hw_events *cpuhw; in fsl_emb_pmu_del() local
348 cpuhw = &get_cpu_var(cpu_hw_events); in fsl_emb_pmu_del()
350 WARN_ON(event != cpuhw->event[event->hw.idx]); in fsl_emb_pmu_del()
356 cpuhw->event[i] = NULL; in fsl_emb_pmu_del()
367 cpuhw->n_events--; in fsl_emb_pmu_del()
645 struct cpu_hw_events *cpuhw = this_cpu_ptr(&cpu_hw_events); in perf_event_interrupt() local
651 event = cpuhw->event[i]; in perf_event_interrupt()
677 struct cpu_hw_events *cpuhw = &per_cpu(cpu_hw_events, cpu); in hw_perf_event_setup() local
679 memset(cpuhw, 0, sizeof(*cpuhw)); in hw_perf_event_setup()