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