Lines Matching defs:hw_events
105 struct cci_pmu_hw_events hw_events;
642 struct cci_pmu_hw_events *cci_hw = &cci_pmu->hw_events;
646 for_each_set_bit(i, cci_pmu->hw_events.used_mask, cci_pmu->num_cntrs) {
664 /* Should be called with cci_pmu->hw_events->pmu_lock held */
674 /* Should be called with cci_pmu->hw_events->pmu_lock held */
681 /* Should be called with cci_pmu->hw_events->pmu_lock held */
756 * cci_pm->hw_events->pmu_lock).
896 struct cci_pmu_hw_events *cci_hw = &cci_pmu->hw_events;
961 struct perf_event *event = cci_pmu->hw_events.events[i];
1027 struct cci_pmu_hw_events *events = &cci_pmu->hw_events;
1095 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events;
1096 bool enabled = !bitmap_empty(hw_events->used_mask, cci_pmu->num_cntrs);
1102 raw_spin_lock_irqsave(&hw_events->pmu_lock, flags);
1104 raw_spin_unlock_irqrestore(&hw_events->pmu_lock, flags);
1111 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events;
1114 raw_spin_lock_irqsave(&hw_events->pmu_lock, flags);
1116 raw_spin_unlock_irqrestore(&hw_events->pmu_lock, flags);
1132 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events;
1151 raw_spin_lock_irqsave(&hw_events->pmu_lock, flags);
1160 raw_spin_unlock_irqrestore(&hw_events->pmu_lock, flags);
1189 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events;
1194 idx = pmu_get_event_idx(hw_events, event);
1199 hw_events->events[idx] = event;
1214 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events;
1219 hw_events->events[idx] = NULL;
1220 clear_bit(idx, hw_events->used_mask);
1226 struct cci_pmu_hw_events *hw_events,
1246 return pmu_get_event_idx(hw_events, event) >= 0;
1623 cci_pmu->hw_events.events = devm_kcalloc(dev,
1625 sizeof(*cci_pmu->hw_events.events),
1627 if (!cci_pmu->hw_events.events)
1629 cci_pmu->hw_events.used_mask = devm_bitmap_zalloc(dev,
1632 if (!cci_pmu->hw_events.used_mask)
1677 raw_spin_lock_init(&cci_pmu->hw_events.pmu_lock);