Lines Matching defs:hw_events
108 struct cci_pmu_hw_events hw_events;
645 struct cci_pmu_hw_events *cci_hw = &cci_pmu->hw_events;
649 for_each_set_bit(i, cci_pmu->hw_events.used_mask, cci_pmu->num_cntrs) {
667 /* Should be called with cci_pmu->hw_events->pmu_lock held */
677 /* Should be called with cci_pmu->hw_events->pmu_lock held */
684 /* Should be called with cci_pmu->hw_events->pmu_lock held */
759 * cci_pm->hw_events->pmu_lock).
899 struct cci_pmu_hw_events *cci_hw = &cci_pmu->hw_events;
964 struct perf_event *event = cci_pmu->hw_events.events[i];
1031 struct cci_pmu_hw_events *events = &cci_pmu->hw_events;
1099 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events;
1100 int enabled = bitmap_weight(hw_events->used_mask, cci_pmu->num_cntrs);
1106 raw_spin_lock_irqsave(&hw_events->pmu_lock, flags);
1108 raw_spin_unlock_irqrestore(&hw_events->pmu_lock, flags);
1115 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events;
1118 raw_spin_lock_irqsave(&hw_events->pmu_lock, flags);
1120 raw_spin_unlock_irqrestore(&hw_events->pmu_lock, flags);
1136 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events;
1155 raw_spin_lock_irqsave(&hw_events->pmu_lock, flags);
1164 raw_spin_unlock_irqrestore(&hw_events->pmu_lock, flags);
1193 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events;
1198 idx = pmu_get_event_idx(hw_events, event);
1203 hw_events->events[idx] = event;
1218 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events;
1223 hw_events->events[idx] = NULL;
1224 clear_bit(idx, hw_events->used_mask);
1230 struct cci_pmu_hw_events *hw_events,
1250 return pmu_get_event_idx(hw_events, event) >= 0;
1627 cci_pmu->hw_events.events = devm_kcalloc(dev,
1629 sizeof(*cci_pmu->hw_events.events),
1631 if (!cci_pmu->hw_events.events)
1633 cci_pmu->hw_events.used_mask = devm_kcalloc(dev,
1635 sizeof(*cci_pmu->hw_events.used_mask),
1637 if (!cci_pmu->hw_events.used_mask)
1682 raw_spin_lock_init(&cci_pmu->hw_events.pmu_lock);