Lines Matching defs:cpuc
314 static int mipsxx_pmu_alloc_counter(struct cpu_hw_events *cpuc,
341 !test_and_set_bit(i, cpuc->used_mask))
351 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events);
357 cpuc->saved_ctrl[idx] = M_PERFCTL_EVENT(evt->event_base & 0x3ff) |
362 cpuc->saved_ctrl[idx] = M_PERFCTL_EVENT(evt->event_base & 0xff) |
369 cpuc->saved_ctrl[idx] |=
374 cpuc->saved_ctrl[idx] |= M_TC_EN_ALL;
387 cpuc->saved_ctrl[idx] |= ctrl;
397 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events);
403 cpuc->saved_ctrl[idx] = mipsxx_pmu_read_control(idx) &
405 mipsxx_pmu_write_control(idx, cpuc->saved_ctrl[idx]);
501 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events);
509 idx = mipsxx_pmu_alloc_counter(cpuc, hwc);
521 cpuc->events[idx] = event;
537 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events);
544 cpuc->events[idx] = NULL;
545 clear_bit(idx, cpuc->used_mask);
782 static void handle_associated_event(struct cpu_hw_events *cpuc,
786 struct perf_event *event = cpuc->events[idx];
1614 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events);
1621 cpuc->saved_ctrl[ctr] = mipsxx_pmu_read_control(ctr);
1622 mipsxx_pmu_write_control(ctr, cpuc->saved_ctrl[ctr] &
1630 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events);
1635 mipsxx_pmu_write_control(ctr, cpuc->saved_ctrl[ctr]);
1641 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events);
1667 if (!test_bit(n, cpuc->used_mask))
1674 handle_associated_event(cpuc, n, &data, regs);