Searched refs:cpu_pmu (Results 1 – 5 of 5) sorted by relevance
272 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); in armv6pmu_enable_event() local274 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv6pmu_enable_event()306 armv6pmu_handle_irq(struct arm_pmu *cpu_pmu) in armv6pmu_handle_irq() argument310 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events); in armv6pmu_handle_irq()326 for (idx = 0; idx < cpu_pmu->num_events; ++idx) { in armv6pmu_handle_irq()348 cpu_pmu->disable(event); in armv6pmu_handle_irq()363 static void armv6pmu_start(struct arm_pmu *cpu_pmu) in armv6pmu_start() argument366 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv6pmu_start()375 static void armv6pmu_stop(struct arm_pmu *cpu_pmu) in armv6pmu_stop() argument378 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv6pmu_stop()[all …]
656 #define ARMV7_IDX_COUNTER_LAST(cpu_pmu) \ argument657 (ARMV7_IDX_CYCLE_COUNTER + cpu_pmu->num_events - 1)728 static inline int armv7_pmnc_counter_valid(struct arm_pmu *cpu_pmu, int idx) in armv7_pmnc_counter_valid() argument731 idx <= ARMV7_IDX_COUNTER_LAST(cpu_pmu); in armv7_pmnc_counter_valid()748 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); in armv7pmu_read_counter() local753 if (!armv7_pmnc_counter_valid(cpu_pmu, idx)) { in armv7pmu_read_counter()768 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); in armv7pmu_write_counter() local772 if (!armv7_pmnc_counter_valid(cpu_pmu, idx)) { in armv7pmu_write_counter()833 static void armv7_pmnc_dump_regs(struct arm_pmu *cpu_pmu) in armv7_pmnc_dump_regs() argument859 cnt <= ARMV7_IDX_COUNTER_LAST(cpu_pmu); cnt++) { in armv7_pmnc_dump_regs()[all …]
145 xscale1pmu_handle_irq(struct arm_pmu *cpu_pmu) in xscale1pmu_handle_irq() argument149 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events); in xscale1pmu_handle_irq()173 for (idx = 0; idx < cpu_pmu->num_events; ++idx) { in xscale1pmu_handle_irq()190 cpu_pmu->disable(event); in xscale1pmu_handle_irq()207 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); in xscale1pmu_enable_event() local209 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale1pmu_enable_event()243 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); in xscale1pmu_disable_event() local245 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale1pmu_disable_event()301 static void xscale1pmu_start(struct arm_pmu *cpu_pmu) in xscale1pmu_start() argument304 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale1pmu_start()[all …]
432 struct arm_pmu *cpu_pmu = container_of(pmu, struct arm_pmu, pmu); in armv8pmu_event_attr_is_visible() local437 if (test_bit(pmu_attr->id, cpu_pmu->pmceid_bitmap)) in armv8pmu_event_attr_is_visible()473 #define ARMV8_IDX_COUNTER_LAST(cpu_pmu) \ argument474 (ARMV8_IDX_CYCLE_COUNTER + cpu_pmu->num_events - 1)518 static inline int armv8pmu_counter_valid(struct arm_pmu *cpu_pmu, int idx) in armv8pmu_counter_valid() argument521 idx <= ARMV8_IDX_COUNTER_LAST(cpu_pmu); in armv8pmu_counter_valid()555 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); in armv8pmu_read_counter() local560 if (!armv8pmu_counter_valid(cpu_pmu, idx)) in armv8pmu_read_counter()592 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); in armv8pmu_write_counter() local596 if (!armv8pmu_counter_valid(cpu_pmu, idx)) in armv8pmu_write_counter()[all …]
744 static int cpu_pm_pmu_register(struct arm_pmu *cpu_pmu) in cpu_pm_pmu_register() argument746 cpu_pmu->cpu_pm_nb.notifier_call = cpu_pm_pmu_notify; in cpu_pm_pmu_register()747 return cpu_pm_register_notifier(&cpu_pmu->cpu_pm_nb); in cpu_pm_pmu_register()750 static void cpu_pm_pmu_unregister(struct arm_pmu *cpu_pmu) in cpu_pm_pmu_unregister() argument752 cpu_pm_unregister_notifier(&cpu_pmu->cpu_pm_nb); in cpu_pm_pmu_unregister()755 static inline int cpu_pm_pmu_register(struct arm_pmu *cpu_pmu) { return 0; } in cpu_pm_pmu_register() argument756 static inline void cpu_pm_pmu_unregister(struct arm_pmu *cpu_pmu) { } in cpu_pm_pmu_unregister() argument759 static int cpu_pmu_init(struct arm_pmu *cpu_pmu) in cpu_pmu_init() argument764 &cpu_pmu->node); in cpu_pmu_init()768 err = cpu_pm_pmu_register(cpu_pmu); in cpu_pmu_init()[all …]