Lines Matching defs:cpuhw
182 struct cpu_hw_events *cpuhw;
186 cpuhw = &__get_cpu_var(cpu_hw_events);
188 if (!cpuhw->disabled) {
189 cpuhw->disabled = 1;
194 if (!cpuhw->pmcs_enabled) {
196 cpuhw->pmcs_enabled = 1;
221 struct cpu_hw_events *cpuhw;
225 cpuhw = &__get_cpu_var(cpu_hw_events);
226 if (!cpuhw->disabled)
229 cpuhw->disabled = 0;
230 ppc_set_pmu_inuse(cpuhw->n_events != 0);
232 if (cpuhw->n_events > 0) {
268 struct cpu_hw_events *cpuhw;
274 cpuhw = &get_cpu_var(cpu_hw_events);
284 if (cpuhw->event[i])
294 cpuhw->event[i] = event;
295 ++cpuhw->n_events;
319 struct cpu_hw_events *cpuhw;
327 cpuhw = &get_cpu_var(cpu_hw_events);
329 WARN_ON(event != cpuhw->event[event->hw.idx]);
335 cpuhw->event[i] = NULL;
346 cpuhw->n_events--;
596 struct cpu_hw_events *cpuhw = &__get_cpu_var(cpu_hw_events);
609 event = cpuhw->event[i];
640 struct cpu_hw_events *cpuhw = &per_cpu(cpu_hw_events, cpu);
642 memset(cpuhw, 0, sizeof(*cpuhw));