Lines Matching refs:cpu_pmu

140 	struct arm_pmu *cpu_pmu = (struct arm_pmu *)dev;  in xscale1pmu_handle_irq()  local
141 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events); in xscale1pmu_handle_irq()
165 for (idx = 0; idx < cpu_pmu->num_events; ++idx) { in xscale1pmu_handle_irq()
182 cpu_pmu->disable(event); in xscale1pmu_handle_irq()
199 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); in xscale1pmu_enable_event() local
201 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale1pmu_enable_event()
235 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); in xscale1pmu_disable_event() local
237 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale1pmu_disable_event()
287 static void xscale1pmu_start(struct arm_pmu *cpu_pmu) in xscale1pmu_start() argument
290 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale1pmu_start()
299 static void xscale1pmu_stop(struct arm_pmu *cpu_pmu) in xscale1pmu_stop() argument
302 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale1pmu_stop()
356 static int xscale1pmu_init(struct arm_pmu *cpu_pmu) in xscale1pmu_init() argument
358 cpu_pmu->name = "armv5_xscale1"; in xscale1pmu_init()
359 cpu_pmu->handle_irq = xscale1pmu_handle_irq; in xscale1pmu_init()
360 cpu_pmu->enable = xscale1pmu_enable_event; in xscale1pmu_init()
361 cpu_pmu->disable = xscale1pmu_disable_event; in xscale1pmu_init()
362 cpu_pmu->read_counter = xscale1pmu_read_counter; in xscale1pmu_init()
363 cpu_pmu->write_counter = xscale1pmu_write_counter; in xscale1pmu_init()
364 cpu_pmu->get_event_idx = xscale1pmu_get_event_idx; in xscale1pmu_init()
365 cpu_pmu->start = xscale1pmu_start; in xscale1pmu_init()
366 cpu_pmu->stop = xscale1pmu_stop; in xscale1pmu_init()
367 cpu_pmu->map_event = xscale_map_event; in xscale1pmu_init()
368 cpu_pmu->num_events = 3; in xscale1pmu_init()
369 cpu_pmu->max_period = (1LLU << 32) - 1; in xscale1pmu_init()
487 struct arm_pmu *cpu_pmu = (struct arm_pmu *)dev; in xscale2pmu_handle_irq() local
488 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events); in xscale2pmu_handle_irq()
506 for (idx = 0; idx < cpu_pmu->num_events; ++idx) { in xscale2pmu_handle_irq()
523 cpu_pmu->disable(event); in xscale2pmu_handle_irq()
540 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); in xscale2pmu_enable_event() local
542 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale2pmu_enable_event()
586 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); in xscale2pmu_disable_event() local
588 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale2pmu_disable_event()
651 static void xscale2pmu_start(struct arm_pmu *cpu_pmu) in xscale2pmu_start() argument
654 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale2pmu_start()
663 static void xscale2pmu_stop(struct arm_pmu *cpu_pmu) in xscale2pmu_stop() argument
666 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale2pmu_stop()
726 static int xscale2pmu_init(struct arm_pmu *cpu_pmu) in xscale2pmu_init() argument
728 cpu_pmu->name = "armv5_xscale2"; in xscale2pmu_init()
729 cpu_pmu->handle_irq = xscale2pmu_handle_irq; in xscale2pmu_init()
730 cpu_pmu->enable = xscale2pmu_enable_event; in xscale2pmu_init()
731 cpu_pmu->disable = xscale2pmu_disable_event; in xscale2pmu_init()
732 cpu_pmu->read_counter = xscale2pmu_read_counter; in xscale2pmu_init()
733 cpu_pmu->write_counter = xscale2pmu_write_counter; in xscale2pmu_init()
734 cpu_pmu->get_event_idx = xscale2pmu_get_event_idx; in xscale2pmu_init()
735 cpu_pmu->start = xscale2pmu_start; in xscale2pmu_init()
736 cpu_pmu->stop = xscale2pmu_stop; in xscale2pmu_init()
737 cpu_pmu->map_event = xscale_map_event; in xscale2pmu_init()
738 cpu_pmu->num_events = 5; in xscale2pmu_init()
739 cpu_pmu->max_period = (1LLU << 32) - 1; in xscale2pmu_init()
744 static inline int xscale1pmu_init(struct arm_pmu *cpu_pmu) in xscale1pmu_init() argument
749 static inline int xscale2pmu_init(struct arm_pmu *cpu_pmu) in xscale2pmu_init() argument