Lines Matching refs:hw_events

108 	struct cci_pmu_hw_events hw_events;  member
645 struct cci_pmu_hw_events *cci_hw = &cci_pmu->hw_events; in cci_pmu_sync_counters()
649 for_each_set_bit(i, cci_pmu->hw_events.used_mask, cci_pmu->num_cntrs) { in cci_pmu_sync_counters()
899 struct cci_pmu_hw_events *cci_hw = &cci_pmu->hw_events; in __pmu_write_counters()
964 struct perf_event *event = cci_pmu->hw_events.events[i]; in cci5xx_pmu_write_counters()
1030 struct cci_pmu_hw_events *events = &cci_pmu->hw_events; in pmu_handle_irq()
1098 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events; in cci_pmu_enable() local
1099 bool enabled = !bitmap_empty(hw_events->used_mask, cci_pmu->num_cntrs); in cci_pmu_enable()
1105 raw_spin_lock_irqsave(&hw_events->pmu_lock, flags); in cci_pmu_enable()
1107 raw_spin_unlock_irqrestore(&hw_events->pmu_lock, flags); in cci_pmu_enable()
1114 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events; in cci_pmu_disable() local
1117 raw_spin_lock_irqsave(&hw_events->pmu_lock, flags); in cci_pmu_disable()
1119 raw_spin_unlock_irqrestore(&hw_events->pmu_lock, flags); in cci_pmu_disable()
1135 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events; in cci_pmu_start() local
1154 raw_spin_lock_irqsave(&hw_events->pmu_lock, flags); in cci_pmu_start()
1163 raw_spin_unlock_irqrestore(&hw_events->pmu_lock, flags); in cci_pmu_start()
1192 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events; in cci_pmu_add() local
1197 idx = pmu_get_event_idx(hw_events, event); in cci_pmu_add()
1202 hw_events->events[idx] = event; in cci_pmu_add()
1217 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events; in cci_pmu_del() local
1222 hw_events->events[idx] = NULL; in cci_pmu_del()
1223 clear_bit(idx, hw_events->used_mask); in cci_pmu_del()
1229 struct cci_pmu_hw_events *hw_events, in validate_event() argument
1249 return pmu_get_event_idx(hw_events, event) >= 0; in validate_event()
1626 cci_pmu->hw_events.events = devm_kcalloc(dev, in cci_pmu_alloc()
1628 sizeof(*cci_pmu->hw_events.events), in cci_pmu_alloc()
1630 if (!cci_pmu->hw_events.events) in cci_pmu_alloc()
1632 cci_pmu->hw_events.used_mask = devm_bitmap_zalloc(dev, in cci_pmu_alloc()
1635 if (!cci_pmu->hw_events.used_mask) in cci_pmu_alloc()
1680 raw_spin_lock_init(&cci_pmu->hw_events.pmu_lock); in cci_pmu_probe()