Lines Matching refs:cpu_pmu
145 xscale1pmu_handle_irq(struct arm_pmu *cpu_pmu) in xscale1pmu_handle_irq() argument
149 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() local
209 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() local
245 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() argument
304 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale1pmu_start()
313 static void xscale1pmu_stop(struct arm_pmu *cpu_pmu) in xscale1pmu_stop() argument
316 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale1pmu_stop()
370 static int xscale1pmu_init(struct arm_pmu *cpu_pmu) in xscale1pmu_init() argument
372 cpu_pmu->name = "armv5_xscale1"; in xscale1pmu_init()
373 cpu_pmu->handle_irq = xscale1pmu_handle_irq; in xscale1pmu_init()
374 cpu_pmu->enable = xscale1pmu_enable_event; in xscale1pmu_init()
375 cpu_pmu->disable = xscale1pmu_disable_event; in xscale1pmu_init()
376 cpu_pmu->read_counter = xscale1pmu_read_counter; in xscale1pmu_init()
377 cpu_pmu->write_counter = xscale1pmu_write_counter; in xscale1pmu_init()
378 cpu_pmu->get_event_idx = xscale1pmu_get_event_idx; in xscale1pmu_init()
379 cpu_pmu->clear_event_idx = xscalepmu_clear_event_idx; in xscale1pmu_init()
380 cpu_pmu->start = xscale1pmu_start; in xscale1pmu_init()
381 cpu_pmu->stop = xscale1pmu_stop; in xscale1pmu_init()
382 cpu_pmu->map_event = xscale_map_event; in xscale1pmu_init()
383 cpu_pmu->num_events = 3; in xscale1pmu_init()
497 xscale2pmu_handle_irq(struct arm_pmu *cpu_pmu) in xscale2pmu_handle_irq() argument
501 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events); in xscale2pmu_handle_irq()
519 for (idx = 0; idx < cpu_pmu->num_events; ++idx) { in xscale2pmu_handle_irq()
536 cpu_pmu->disable(event); in xscale2pmu_handle_irq()
553 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); in xscale2pmu_enable_event() local
555 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale2pmu_enable_event()
599 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); in xscale2pmu_disable_event() local
601 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale2pmu_disable_event()
664 static void xscale2pmu_start(struct arm_pmu *cpu_pmu) in xscale2pmu_start() argument
667 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale2pmu_start()
676 static void xscale2pmu_stop(struct arm_pmu *cpu_pmu) in xscale2pmu_stop() argument
679 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale2pmu_stop()
739 static int xscale2pmu_init(struct arm_pmu *cpu_pmu) in xscale2pmu_init() argument
741 cpu_pmu->name = "armv5_xscale2"; in xscale2pmu_init()
742 cpu_pmu->handle_irq = xscale2pmu_handle_irq; in xscale2pmu_init()
743 cpu_pmu->enable = xscale2pmu_enable_event; in xscale2pmu_init()
744 cpu_pmu->disable = xscale2pmu_disable_event; in xscale2pmu_init()
745 cpu_pmu->read_counter = xscale2pmu_read_counter; in xscale2pmu_init()
746 cpu_pmu->write_counter = xscale2pmu_write_counter; in xscale2pmu_init()
747 cpu_pmu->get_event_idx = xscale2pmu_get_event_idx; in xscale2pmu_init()
748 cpu_pmu->clear_event_idx = xscalepmu_clear_event_idx; in xscale2pmu_init()
749 cpu_pmu->start = xscale2pmu_start; in xscale2pmu_init()
750 cpu_pmu->stop = xscale2pmu_stop; in xscale2pmu_init()
751 cpu_pmu->map_event = xscale_map_event; in xscale2pmu_init()
752 cpu_pmu->num_events = 5; in xscale2pmu_init()