Lines Matching refs:csky_pmu

46 } csky_pmu;  variable
49 #define to_csky_pmu(p) (container_of(p, struct csky_pmu, pmu))
899 if (left > (s64)csky_pmu.max_period) in csky_pmu_event_set_period()
900 left = csky_pmu.max_period; in csky_pmu_event_set_period()
910 csky_pmu.max_period); in csky_pmu_event_set_period()
928 hw_raw_read_mapping[hwc->idx](), csky_pmu.count_width - 1); in csky_perf_event_update()
998 csky_pmu.hpcr = BIT(2); in csky_pmu_event_init()
1000 csky_pmu.hpcr = BIT(3); in csky_pmu_event_init()
1002 csky_pmu.hpcr = BIT(2) | BIT(3); in csky_pmu_event_init()
1004 csky_pmu.hpcr |= BIT(1) | BIT(0); in csky_pmu_event_init()
1012 cpwcr(HPCR, csky_pmu.hpcr); in csky_pmu_enable()
1075 struct pmu_hw_events *hw_events = this_cpu_ptr(csky_pmu.hw_events); in csky_pmu_del()
1088 struct pmu_hw_events *hw_events = this_cpu_ptr(csky_pmu.hw_events); in csky_pmu_add()
1106 struct pmu_hw_events *cpuc = this_cpu_ptr(csky_pmu.hw_events); in csky_pmu_handle_irq()
1121 csky_pmu_disable(&csky_pmu.pmu); in csky_pmu_handle_irq()
1146 csky_pmu_enable(&csky_pmu.pmu); in csky_pmu_handle_irq()
1163 struct platform_device *pmu_device = csky_pmu.plat_device; in csky_pmu_request_irq()
1178 this_cpu_ptr(csky_pmu.hw_events)); in csky_pmu_request_irq()
1191 struct platform_device *pmu_device = csky_pmu.plat_device; in csky_pmu_free_irq()
1195 free_percpu_irq(irq, this_cpu_ptr(csky_pmu.hw_events)); in csky_pmu_free_irq()
1200 csky_pmu.hw_events = alloc_percpu_gfp(struct pmu_hw_events, in init_hw_perf_events()
1202 if (!csky_pmu.hw_events) { in init_hw_perf_events()
1207 csky_pmu.pmu = (struct pmu) { in init_hw_perf_events()
1306 &csky_pmu.count_width)) { in csky_pmu_device_probe()
1307 csky_pmu.count_width = DEFAULT_COUNT_WIDTH; in csky_pmu_device_probe()
1309 csky_pmu.max_period = BIT_ULL(csky_pmu.count_width) - 1; in csky_pmu_device_probe()
1311 csky_pmu.plat_device = pdev; in csky_pmu_device_probe()
1314 on_each_cpu(csky_pmu_reset, &csky_pmu, 1); in csky_pmu_device_probe()
1318 csky_pmu.pmu.capabilities |= PERF_PMU_CAP_NO_INTERRUPT; in csky_pmu_device_probe()
1327 free_percpu(csky_pmu.hw_events); in csky_pmu_device_probe()
1331 ret = perf_pmu_register(&csky_pmu.pmu, "cpu", PERF_TYPE_RAW); in csky_pmu_device_probe()
1334 free_percpu(csky_pmu.hw_events); in csky_pmu_device_probe()