Lines Matching refs:cpuc
311 static int mipsxx_pmu_alloc_counter(struct cpu_hw_events *cpuc,
334 !test_and_set_bit(i, cpuc->used_mask))
343 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events);
347 cpuc->saved_ctrl[idx] = M_PERFCTL_EVENT(evt->event_base & 0xff) |
353 cpuc->saved_ctrl[idx] |=
363 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events);
369 cpuc->saved_ctrl[idx] = mipsxx_pmu_read_control(idx) &
371 mipsxx_pmu_write_control(idx, cpuc->saved_ctrl[idx]);
463 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events);
471 idx = mipsxx_pmu_alloc_counter(cpuc, hwc);
483 cpuc->events[idx] = event;
499 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events);
506 cpuc->events[idx] = NULL;
507 clear_bit(idx, cpuc->used_mask);
737 static void handle_associated_event(struct cpu_hw_events *cpuc,
741 struct perf_event *event = cpuc->events[idx];
1278 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events);
1285 cpuc->saved_ctrl[ctr] = mipsxx_pmu_read_control(ctr);
1286 mipsxx_pmu_write_control(ctr, cpuc->saved_ctrl[ctr] &
1294 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events);
1299 mipsxx_pmu_write_control(ctr, cpuc->saved_ctrl[ctr]);
1305 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events);
1333 if (test_bit(n, cpuc->used_mask)) { \
1336 handle_associated_event(cpuc, n, &data, regs); \