Lines Matching defs:armpmu

202 	struct arm_pmu *armpmu = to_arm_pmu(event->pmu);
235 armpmu->write_counter(event, (u64)(-left) & max_period);
244 struct arm_pmu *armpmu = to_arm_pmu(event->pmu);
251 new_raw_count = armpmu->read_counter(event);
274 struct arm_pmu *armpmu = to_arm_pmu(event->pmu);
282 armpmu->disable(event);
290 struct arm_pmu *armpmu = to_arm_pmu(event->pmu);
309 armpmu->enable(event);
315 struct arm_pmu *armpmu = to_arm_pmu(event->pmu);
316 struct pmu_hw_events *hw_events = this_cpu_ptr(armpmu->hw_events);
322 armpmu->clear_event_idx(hw_events, event);
331 struct arm_pmu *armpmu = to_arm_pmu(event->pmu);
332 struct pmu_hw_events *hw_events = this_cpu_ptr(armpmu->hw_events);
337 if (!cpumask_test_cpu(smp_processor_id(), &armpmu->supported_cpus))
341 idx = armpmu->get_event_idx(hw_events, event);
350 armpmu->disable(event);
367 struct arm_pmu *armpmu;
386 armpmu = to_arm_pmu(event->pmu);
387 return armpmu->get_event_idx(hw_events, event) >= 0;
421 struct arm_pmu *armpmu;
431 armpmu = *(void **)dev;
432 if (WARN_ON_ONCE(!armpmu))
436 ret = armpmu->handle_irq(armpmu);
446 struct arm_pmu *armpmu = to_arm_pmu(event->pmu);
451 mapping = armpmu->map_event(event);
473 if (armpmu->set_event_filter &&
474 armpmu->set_event_filter(hwc, &event->attr)) {
502 struct arm_pmu *armpmu = to_arm_pmu(event->pmu);
512 !cpumask_test_cpu(event->cpu, &armpmu->supported_cpus))
524 struct arm_pmu *armpmu = to_arm_pmu(pmu);
525 struct pmu_hw_events *hw_events = this_cpu_ptr(armpmu->hw_events);
526 bool enabled = !bitmap_empty(hw_events->used_mask, armpmu->num_events);
529 if (!cpumask_test_cpu(smp_processor_id(), &armpmu->supported_cpus))
533 armpmu->start(armpmu);
538 struct arm_pmu *armpmu = to_arm_pmu(pmu);
541 if (!cpumask_test_cpu(smp_processor_id(), &armpmu->supported_cpus))
544 armpmu->stop(armpmu);
554 struct arm_pmu *armpmu = to_arm_pmu(pmu);
555 return !cpumask_test_cpu(cpu, &armpmu->supported_cpus);
561 struct arm_pmu *armpmu = to_arm_pmu(dev_get_drvdata(dev));
562 return cpumap_print_to_pagebuf(true, buf, &armpmu->supported_cpus);
740 static void cpu_pm_pmu_setup(struct arm_pmu *armpmu, unsigned long cmd)
742 struct pmu_hw_events *hw_events = this_cpu_ptr(armpmu->hw_events);
746 for (idx = 0; idx < armpmu->num_events; idx++) {
774 struct arm_pmu *armpmu = container_of(b, struct arm_pmu, cpu_pm_nb);
775 struct pmu_hw_events *hw_events = this_cpu_ptr(armpmu->hw_events);
776 bool enabled = !bitmap_empty(hw_events->used_mask, armpmu->num_events);
778 if (!cpumask_test_cpu(smp_processor_id(), &armpmu->supported_cpus))
785 if (cmd == CPU_PM_EXIT && armpmu->reset)
786 armpmu->reset(armpmu);
793 armpmu->stop(armpmu);
794 cpu_pm_pmu_setup(armpmu, cmd);
798 cpu_pm_pmu_setup(armpmu, cmd);
799 armpmu->start(armpmu);