Lines Matching defs:cci_pmu

38 #define CCI_PMU_CNTR_LAST(cci_pmu)	(cci_pmu->num_cntrs - 1)  argument
96 struct cci_pmu { struct
104 const struct cci_pmu_model *model; argument
105 struct cci_pmu_hw_events hw_events; argument
112 #define to_cci_pmu(c) (container_of(c, struct cci_pmu, pmu)) argument
307 static int cci400_get_event_idx(struct cci_pmu *cci_pmu, in cci400_get_event_idx()
329 static int cci400_validate_hw_event(struct cci_pmu *cci_pmu, unsigned long hw_event) in cci400_validate_hw_event()
367 static int probe_cci400_revision(struct cci_pmu *cci_pmu) in probe_cci400_revision()
379 static const struct cci_pmu_model *probe_cci_model(struct cci_pmu *cci_pmu) in probe_cci_model()
386 static inline struct cci_pmu_model *probe_cci_model(struct cci_pmu *cci_pmu) in probe_cci_model()
536 static int cci500_validate_hw_event(struct cci_pmu *cci_pmu, in cci500_validate_hw_event()
587 static int cci550_validate_hw_event(struct cci_pmu *cci_pmu, in cci550_validate_hw_event()
637 static void cci_pmu_sync_counters(struct cci_pmu *cci_pmu) in cci_pmu_sync_counters()
663 static void __cci_pmu_enable_nosync(struct cci_pmu *cci_pmu) in __cci_pmu_enable_nosync()
673 static void __cci_pmu_enable_sync(struct cci_pmu *cci_pmu) in __cci_pmu_enable_sync()
680 static void __cci_pmu_disable(struct cci_pmu *cci_pmu) in __cci_pmu_disable()
699 static int pmu_is_valid_counter(struct cci_pmu *cci_pmu, int idx) in pmu_is_valid_counter()
704 static u32 pmu_read_register(struct cci_pmu *cci_pmu, int idx, unsigned int offset) in pmu_read_register()
710 static void pmu_write_register(struct cci_pmu *cci_pmu, u32 value, in pmu_write_register()
717 static void pmu_disable_counter(struct cci_pmu *cci_pmu, int idx) in pmu_disable_counter()
722 static void pmu_enable_counter(struct cci_pmu *cci_pmu, int idx) in pmu_enable_counter()
728 pmu_counter_is_enabled(struct cci_pmu *cci_pmu, int idx) in pmu_counter_is_enabled()
733 static void pmu_set_event(struct cci_pmu *cci_pmu, int idx, unsigned long event) in pmu_set_event()
751 pmu_save_counters(struct cci_pmu *cci_pmu, unsigned long *mask) in pmu_save_counters()
768 pmu_restore_counters(struct cci_pmu *cci_pmu, unsigned long *mask) in pmu_restore_counters()
780 static u32 pmu_get_max_counters(struct cci_pmu *cci_pmu) in pmu_get_max_counters()
788 struct cci_pmu *cci_pmu = to_cci_pmu(event->pmu); in pmu_get_event_idx() local
806 struct cci_pmu *cci_pmu = to_cci_pmu(event->pmu); in pmu_map_event() local
815 static int pmu_request_irq(struct cci_pmu *cci_pmu, irq_handler_t handler) in pmu_request_irq()
850 static void pmu_free_irq(struct cci_pmu *cci_pmu) in pmu_free_irq()
864 struct cci_pmu *cci_pmu = to_cci_pmu(event->pmu); in pmu_read_counter() local
878 static void pmu_write_counter(struct cci_pmu *cci_pmu, u32 value, int idx) in pmu_write_counter()
883 static void __pmu_write_counters(struct cci_pmu *cci_pmu, unsigned long *mask) in __pmu_write_counters()
897 static void pmu_write_counters(struct cci_pmu *cci_pmu, unsigned long *mask) in pmu_write_counters()
936 static void cci5xx_pmu_write_counters(struct cci_pmu *cci_pmu, unsigned long *mask) in cci5xx_pmu_write_counters()
1016 struct cci_pmu *cci_pmu = dev; in pmu_handle_irq() local
1055 static int cci_pmu_get_hw(struct cci_pmu *cci_pmu) in cci_pmu_get_hw()
1065 static void cci_pmu_put_hw(struct cci_pmu *cci_pmu) in cci_pmu_put_hw()
1072 struct cci_pmu *cci_pmu = to_cci_pmu(event->pmu); in hw_perf_event_destroy() local
1084 struct cci_pmu *cci_pmu = to_cci_pmu(pmu); in cci_pmu_enable() local
1100 struct cci_pmu *cci_pmu = to_cci_pmu(pmu); in cci_pmu_disable() local
1114 static bool pmu_fixed_hw_idx(struct cci_pmu *cci_pmu, int idx) in pmu_fixed_hw_idx()
1121 struct cci_pmu *cci_pmu = to_cci_pmu(event->pmu); in cci_pmu_start() local
1155 struct cci_pmu *cci_pmu = to_cci_pmu(event->pmu); in cci_pmu_stop() local
1178 struct cci_pmu *cci_pmu = to_cci_pmu(event->pmu); in cci_pmu_add() local
1203 struct cci_pmu *cci_pmu = to_cci_pmu(event->pmu); in cci_pmu_del() local
1215 static int validate_event(struct pmu *cci_pmu, in validate_event()
1242 struct cci_pmu *cci_pmu = to_cci_pmu(event->pmu); in validate_group() local
1305 struct cci_pmu *cci_pmu = to_cci_pmu(event->pmu); in cci_pmu_event_init() local
1352 struct cci_pmu *cci_pmu = to_cci_pmu(pmu); in pmu_cpumask_attr_show() local
1386 static int cci_pmu_init(struct cci_pmu *cci_pmu, struct platform_device *pdev) in cci_pmu_init()
1584 struct cci_pmu *cci_pmu; in cci_pmu_alloc() local
1631 struct cci_pmu *cci_pmu; in cci_pmu_probe() local