Lines Matching refs:cpu_pmu
272 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); in armv6pmu_enable_event() local
274 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() argument
310 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() argument
366 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() argument
378 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv6pmu_stop()
423 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); in armv6pmu_disable_event() local
425 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv6pmu_disable_event()
458 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); in armv6mpcore_pmu_disable_event() local
460 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv6mpcore_pmu_disable_event()
492 static void armv6pmu_init(struct arm_pmu *cpu_pmu) in armv6pmu_init() argument
494 cpu_pmu->handle_irq = armv6pmu_handle_irq; in armv6pmu_init()
495 cpu_pmu->enable = armv6pmu_enable_event; in armv6pmu_init()
496 cpu_pmu->disable = armv6pmu_disable_event; in armv6pmu_init()
497 cpu_pmu->read_counter = armv6pmu_read_counter; in armv6pmu_init()
498 cpu_pmu->write_counter = armv6pmu_write_counter; in armv6pmu_init()
499 cpu_pmu->get_event_idx = armv6pmu_get_event_idx; in armv6pmu_init()
500 cpu_pmu->clear_event_idx = armv6pmu_clear_event_idx; in armv6pmu_init()
501 cpu_pmu->start = armv6pmu_start; in armv6pmu_init()
502 cpu_pmu->stop = armv6pmu_stop; in armv6pmu_init()
503 cpu_pmu->map_event = armv6_map_event; in armv6pmu_init()
504 cpu_pmu->num_events = 3; in armv6pmu_init()
507 static int armv6_1136_pmu_init(struct arm_pmu *cpu_pmu) in armv6_1136_pmu_init() argument
509 armv6pmu_init(cpu_pmu); in armv6_1136_pmu_init()
510 cpu_pmu->name = "armv6_1136"; in armv6_1136_pmu_init()
514 static int armv6_1156_pmu_init(struct arm_pmu *cpu_pmu) in armv6_1156_pmu_init() argument
516 armv6pmu_init(cpu_pmu); in armv6_1156_pmu_init()
517 cpu_pmu->name = "armv6_1156"; in armv6_1156_pmu_init()
521 static int armv6_1176_pmu_init(struct arm_pmu *cpu_pmu) in armv6_1176_pmu_init() argument
523 armv6pmu_init(cpu_pmu); in armv6_1176_pmu_init()
524 cpu_pmu->name = "armv6_1176"; in armv6_1176_pmu_init()
542 static int armv6mpcore_pmu_init(struct arm_pmu *cpu_pmu) in armv6mpcore_pmu_init() argument
544 cpu_pmu->name = "armv6_11mpcore"; in armv6mpcore_pmu_init()
545 cpu_pmu->handle_irq = armv6pmu_handle_irq; in armv6mpcore_pmu_init()
546 cpu_pmu->enable = armv6pmu_enable_event; in armv6mpcore_pmu_init()
547 cpu_pmu->disable = armv6mpcore_pmu_disable_event; in armv6mpcore_pmu_init()
548 cpu_pmu->read_counter = armv6pmu_read_counter; in armv6mpcore_pmu_init()
549 cpu_pmu->write_counter = armv6pmu_write_counter; in armv6mpcore_pmu_init()
550 cpu_pmu->get_event_idx = armv6pmu_get_event_idx; in armv6mpcore_pmu_init()
551 cpu_pmu->clear_event_idx = armv6pmu_clear_event_idx; in armv6mpcore_pmu_init()
552 cpu_pmu->start = armv6pmu_start; in armv6mpcore_pmu_init()
553 cpu_pmu->stop = armv6pmu_stop; in armv6mpcore_pmu_init()
554 cpu_pmu->map_event = armv6mpcore_map_event; in armv6mpcore_pmu_init()
555 cpu_pmu->num_events = 3; in armv6mpcore_pmu_init()