Lines Matching refs:armpmu

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