nds32_pmu 76 arch/nds32/include/asm/pmu.h void (*start)(struct nds32_pmu *nds32_pmu); nds32_pmu 77 arch/nds32/include/asm/pmu.h void (*stop)(struct nds32_pmu *nds32_pmu); nds32_pmu 79 arch/nds32/include/asm/pmu.h int (*request_irq)(struct nds32_pmu *nds32_pmu, irq_handler_t handler); nds32_pmu 80 arch/nds32/include/asm/pmu.h void (*free_irq)(struct nds32_pmu *nds32_pmu); nds32_pmu 89 arch/nds32/include/asm/pmu.h #define to_nds32_pmu(p) (container_of(p, struct nds32_pmu, pmu)) nds32_pmu 91 arch/nds32/include/asm/pmu.h int nds32_pmu_register(struct nds32_pmu *nds32_pmu, int type); nds32_pmu 31 arch/nds32/kernel/perf_event_cpu.c static struct nds32_pmu *cpu_pmu; nds32_pmu 34 arch/nds32/kernel/perf_event_cpu.c static void nds32_pmu_start(struct nds32_pmu *cpu_pmu); nds32_pmu 35 arch/nds32/kernel/perf_event_cpu.c static void nds32_pmu_stop(struct nds32_pmu *cpu_pmu); nds32_pmu 185 arch/nds32/kernel/perf_event_cpu.c struct nds32_pmu *nds32_pmu = to_nds32_pmu(event->pmu); nds32_pmu 209 arch/nds32/kernel/perf_event_cpu.c if (left > (s64)nds32_pmu->max_period) nds32_pmu 210 arch/nds32/kernel/perf_event_cpu.c left = nds32_pmu->max_period; nds32_pmu 218 arch/nds32/kernel/perf_event_cpu.c nds32_pmu->write_counter(event, (u64)(-left) & nds32_pmu->max_period); nds32_pmu 229 arch/nds32/kernel/perf_event_cpu.c struct nds32_pmu *cpu_pmu = (struct nds32_pmu *)dev; nds32_pmu 287 arch/nds32/kernel/perf_event_cpu.c static inline int nds32_pfm_counter_valid(struct nds32_pmu *cpu_pmu, int idx) nds32_pmu 417 arch/nds32/kernel/perf_event_cpu.c struct nds32_pmu *cpu_pmu = to_nds32_pmu(event->pmu); nds32_pmu 468 arch/nds32/kernel/perf_event_cpu.c struct nds32_pmu *cpu_pmu = to_nds32_pmu(event->pmu); nds32_pmu 497 arch/nds32/kernel/perf_event_cpu.c struct nds32_pmu *cpu_pmu = to_nds32_pmu(event->pmu); nds32_pmu 526 arch/nds32/kernel/perf_event_cpu.c struct nds32_pmu *cpu_pmu = to_nds32_pmu(event->pmu); nds32_pmu 595 arch/nds32/kernel/perf_event_cpu.c static void nds32_pmu_start(struct nds32_pmu *cpu_pmu) nds32_pmu 612 arch/nds32/kernel/perf_event_cpu.c static void nds32_pmu_stop(struct nds32_pmu *cpu_pmu) nds32_pmu 641 arch/nds32/kernel/perf_event_cpu.c static void nds32_pmu_init(struct nds32_pmu *cpu_pmu) nds32_pmu 661 arch/nds32/kernel/perf_event_cpu.c static int device_pmu_init(struct nds32_pmu *cpu_pmu) nds32_pmu 678 arch/nds32/kernel/perf_event_cpu.c static int probe_current_pmu(struct nds32_pmu *pmu) nds32_pmu 696 arch/nds32/kernel/perf_event_cpu.c struct nds32_pmu *nds32_pmu = to_nds32_pmu(pmu); nds32_pmu 697 arch/nds32/kernel/perf_event_cpu.c struct pmu_hw_events *hw_events = nds32_pmu->get_hw_events(); nds32_pmu 699 arch/nds32/kernel/perf_event_cpu.c nds32_pmu->num_events); nds32_pmu 702 arch/nds32/kernel/perf_event_cpu.c nds32_pmu->start(nds32_pmu); nds32_pmu 707 arch/nds32/kernel/perf_event_cpu.c struct nds32_pmu *nds32_pmu = to_nds32_pmu(pmu); nds32_pmu 709 arch/nds32/kernel/perf_event_cpu.c nds32_pmu->stop(nds32_pmu); nds32_pmu 712 arch/nds32/kernel/perf_event_cpu.c static void nds32_pmu_release_hardware(struct nds32_pmu *nds32_pmu) nds32_pmu 714 arch/nds32/kernel/perf_event_cpu.c nds32_pmu->free_irq(nds32_pmu); nds32_pmu 715 arch/nds32/kernel/perf_event_cpu.c pm_runtime_put_sync(&nds32_pmu->plat_device->dev); nds32_pmu 720 arch/nds32/kernel/perf_event_cpu.c struct nds32_pmu *nds32_pmu = (struct nds32_pmu *)dev; nds32_pmu 725 arch/nds32/kernel/perf_event_cpu.c ret = nds32_pmu->handle_irq(irq, dev); nds32_pmu 732 arch/nds32/kernel/perf_event_cpu.c static int nds32_pmu_reserve_hardware(struct nds32_pmu *nds32_pmu) nds32_pmu 735 arch/nds32/kernel/perf_event_cpu.c struct platform_device *pmu_device = nds32_pmu->plat_device; nds32_pmu 741 arch/nds32/kernel/perf_event_cpu.c err = nds32_pmu->request_irq(nds32_pmu, nds32_pmu_dispatch_irq); nds32_pmu 743 arch/nds32/kernel/perf_event_cpu.c nds32_pmu_release_hardware(nds32_pmu); nds32_pmu 754 arch/nds32/kernel/perf_event_cpu.c struct nds32_pmu *nds32_pmu = to_nds32_pmu(event->pmu); nds32_pmu 768 arch/nds32/kernel/perf_event_cpu.c return nds32_pmu->get_event_idx(hw_events, event) >= 0; nds32_pmu 798 arch/nds32/kernel/perf_event_cpu.c struct nds32_pmu *nds32_pmu = to_nds32_pmu(event->pmu); nds32_pmu 802 arch/nds32/kernel/perf_event_cpu.c mapping = nds32_pmu->map_event(event); nds32_pmu 824 arch/nds32/kernel/perf_event_cpu.c if ((!nds32_pmu->set_event_filter || nds32_pmu 825 arch/nds32/kernel/perf_event_cpu.c nds32_pmu->set_event_filter(hwc, &event->attr)) && nds32_pmu 844 arch/nds32/kernel/perf_event_cpu.c hwc->sample_period = nds32_pmu->max_period >> 1; nds32_pmu 859 arch/nds32/kernel/perf_event_cpu.c struct nds32_pmu *nds32_pmu = to_nds32_pmu(event->pmu); nds32_pmu 861 arch/nds32/kernel/perf_event_cpu.c atomic_t *active_events = &nds32_pmu->active_events; nds32_pmu 867 arch/nds32/kernel/perf_event_cpu.c if (nds32_pmu->map_event(event) == -ENOENT) nds32_pmu 873 arch/nds32/kernel/perf_event_cpu.c err = nds32_pmu_reserve_hardware(nds32_pmu); nds32_pmu 890 arch/nds32/kernel/perf_event_cpu.c struct nds32_pmu *nds32_pmu = to_nds32_pmu(event->pmu); nds32_pmu 903 arch/nds32/kernel/perf_event_cpu.c nds32_pmu->enable(event); nds32_pmu 908 arch/nds32/kernel/perf_event_cpu.c struct nds32_pmu *nds32_pmu = to_nds32_pmu(event->pmu); nds32_pmu 909 arch/nds32/kernel/perf_event_cpu.c struct pmu_hw_events *hw_events = nds32_pmu->get_hw_events(); nds32_pmu 917 arch/nds32/kernel/perf_event_cpu.c idx = nds32_pmu->get_event_idx(hw_events, event); nds32_pmu 928 arch/nds32/kernel/perf_event_cpu.c nds32_pmu->disable(event); nds32_pmu 945 arch/nds32/kernel/perf_event_cpu.c struct nds32_pmu *nds32_pmu = to_nds32_pmu(event->pmu); nds32_pmu 951 arch/nds32/kernel/perf_event_cpu.c new_raw_count = nds32_pmu->read_counter(event); nds32_pmu 961 arch/nds32/kernel/perf_event_cpu.c delta = (new_raw_count - prev_raw_count) & nds32_pmu->max_period; nds32_pmu 971 arch/nds32/kernel/perf_event_cpu.c struct nds32_pmu *nds32_pmu = to_nds32_pmu(event->pmu); nds32_pmu 978 arch/nds32/kernel/perf_event_cpu.c nds32_pmu->disable(event); nds32_pmu 986 arch/nds32/kernel/perf_event_cpu.c struct nds32_pmu *nds32_pmu = to_nds32_pmu(event->pmu); nds32_pmu 987 arch/nds32/kernel/perf_event_cpu.c struct pmu_hw_events *hw_events = nds32_pmu->get_hw_events(); nds32_pmu 1040 arch/nds32/kernel/perf_event_cpu.c static void nds32_init(struct nds32_pmu *nds32_pmu) nds32_pmu 1042 arch/nds32/kernel/perf_event_cpu.c atomic_set(&nds32_pmu->active_events, 0); nds32_pmu 1044 arch/nds32/kernel/perf_event_cpu.c nds32_pmu->pmu = (struct pmu) { nds32_pmu 1057 arch/nds32/kernel/perf_event_cpu.c int nds32_pmu_register(struct nds32_pmu *nds32_pmu, int type) nds32_pmu 1059 arch/nds32/kernel/perf_event_cpu.c nds32_init(nds32_pmu); nds32_pmu 1060 arch/nds32/kernel/perf_event_cpu.c pm_runtime_enable(&nds32_pmu->plat_device->dev); nds32_pmu 1062 arch/nds32/kernel/perf_event_cpu.c nds32_pmu->name, nds32_pmu->num_events); nds32_pmu 1063 arch/nds32/kernel/perf_event_cpu.c return perf_pmu_register(&nds32_pmu->pmu, nds32_pmu->name, type); nds32_pmu 1071 arch/nds32/kernel/perf_event_cpu.c static int cpu_pmu_request_irq(struct nds32_pmu *cpu_pmu, irq_handler_t handler) nds32_pmu 1096 arch/nds32/kernel/perf_event_cpu.c static void cpu_pmu_free_irq(struct nds32_pmu *cpu_pmu) nds32_pmu 1106 arch/nds32/kernel/perf_event_cpu.c static void cpu_pmu_init(struct nds32_pmu *cpu_pmu) nds32_pmu 1131 arch/nds32/kernel/perf_event_cpu.c int (*init_fn)(struct nds32_pmu *nds32_pmu); nds32_pmu 1133 arch/nds32/kernel/perf_event_cpu.c struct nds32_pmu *pmu;