Lines Matching defs:armpmu

198 	struct arm_pmu *armpmu = to_arm_pmu(event->pmu);
231 armpmu->write_counter(event, (u64)(-left) & max_period);
240 struct arm_pmu *armpmu = to_arm_pmu(event->pmu);
247 new_raw_count = armpmu->read_counter(event);
270 struct arm_pmu *armpmu = to_arm_pmu(event->pmu);
278 armpmu->disable(event);
286 struct arm_pmu *armpmu = to_arm_pmu(event->pmu);
305 armpmu->enable(event);
311 struct arm_pmu *armpmu = to_arm_pmu(event->pmu);
312 struct pmu_hw_events *hw_events = this_cpu_ptr(armpmu->hw_events);
318 armpmu->clear_event_idx(hw_events, event);
327 struct arm_pmu *armpmu = to_arm_pmu(event->pmu);
328 struct pmu_hw_events *hw_events = this_cpu_ptr(armpmu->hw_events);
333 if (!cpumask_test_cpu(smp_processor_id(), &armpmu->supported_cpus))
337 idx = armpmu->get_event_idx(hw_events, event);
346 armpmu->disable(event);
363 struct arm_pmu *armpmu;
382 armpmu = to_arm_pmu(event->pmu);
383 return armpmu->get_event_idx(hw_events, event) >= 0;
417 struct arm_pmu *armpmu;
427 armpmu = *(void **)dev;
428 if (WARN_ON_ONCE(!armpmu))
432 ret = armpmu->handle_irq(armpmu);
442 struct arm_pmu *armpmu = to_arm_pmu(event->pmu);
447 mapping = armpmu->map_event(event);
469 if (armpmu->set_event_filter &&
470 armpmu->set_event_filter(hwc, &event->attr)) {
498 struct arm_pmu *armpmu = to_arm_pmu(event->pmu);
508 !cpumask_test_cpu(event->cpu, &armpmu->supported_cpus))
515 if (armpmu->map_event(event) == -ENOENT)
523 struct arm_pmu *armpmu = to_arm_pmu(pmu);
524 struct pmu_hw_events *hw_events = this_cpu_ptr(armpmu->hw_events);
525 int enabled = bitmap_weight(hw_events->used_mask, armpmu->num_events);
528 if (!cpumask_test_cpu(smp_processor_id(), &armpmu->supported_cpus))
532 armpmu->start(armpmu);
537 struct arm_pmu *armpmu = to_arm_pmu(pmu);
540 if (!cpumask_test_cpu(smp_processor_id(), &armpmu->supported_cpus))
543 armpmu->stop(armpmu);
553 struct arm_pmu *armpmu = to_arm_pmu(event->pmu);
557 ret = cpumask_test_cpu(cpu, &armpmu->supported_cpus);
558 if (ret && armpmu->filter_match)
559 return armpmu->filter_match(event);
567 struct arm_pmu *armpmu = to_arm_pmu(dev_get_drvdata(dev));
568 return cpumap_print_to_pagebuf(true, buf, &armpmu->supported_cpus);
770 static void cpu_pm_pmu_setup(struct arm_pmu *armpmu, unsigned long cmd)
772 struct pmu_hw_events *hw_events = this_cpu_ptr(armpmu->hw_events);
776 for (idx = 0; idx < armpmu->num_events; idx++) {
813 struct arm_pmu *armpmu = container_of(b, struct arm_pmu, cpu_pm_nb);
814 struct pmu_hw_events *hw_events = this_cpu_ptr(armpmu->hw_events);
815 int enabled = bitmap_weight(hw_events->used_mask, armpmu->num_events);
817 if (!cpumask_test_cpu(smp_processor_id(), &armpmu->supported_cpus))
824 if (cmd == CPU_PM_EXIT && armpmu->reset)
825 armpmu->reset(armpmu);
832 armpmu->stop(armpmu);
833 cpu_pm_pmu_setup(armpmu, cmd);
837 cpu_pm_pmu_setup(armpmu, cmd);
838 armpmu->start(armpmu);