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()
1031 struct cci_pmu_hw_events *events = &cci_pmu->hw_events; in pmu_handle_irq()
1099 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events; in cci_pmu_enable() local
1100 int enabled = bitmap_weight(hw_events->used_mask, cci_pmu->num_cntrs); in cci_pmu_enable()
1106 raw_spin_lock_irqsave(&hw_events->pmu_lock, flags); in cci_pmu_enable()
1108 raw_spin_unlock_irqrestore(&hw_events->pmu_lock, flags); in cci_pmu_enable()
1115 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events; in cci_pmu_disable() local
1118 raw_spin_lock_irqsave(&hw_events->pmu_lock, flags); in cci_pmu_disable()
1120 raw_spin_unlock_irqrestore(&hw_events->pmu_lock, flags); in cci_pmu_disable()
1136 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events; in cci_pmu_start() local
1155 raw_spin_lock_irqsave(&hw_events->pmu_lock, flags); in cci_pmu_start()
1164 raw_spin_unlock_irqrestore(&hw_events->pmu_lock, flags); in cci_pmu_start()
1193 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events; in cci_pmu_add() local
1198 idx = pmu_get_event_idx(hw_events, event); in cci_pmu_add()
1203 hw_events->events[idx] = event; in cci_pmu_add()
1218 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events; in cci_pmu_del() local
1223 hw_events->events[idx] = NULL; in cci_pmu_del()
1224 clear_bit(idx, hw_events->used_mask); in cci_pmu_del()
1230 struct cci_pmu_hw_events *hw_events, in validate_event() argument
1250 return pmu_get_event_idx(hw_events, event) >= 0; in validate_event()
1627 cci_pmu->hw_events.events = devm_kcalloc(dev, in cci_pmu_alloc()
1629 sizeof(*cci_pmu->hw_events.events), in cci_pmu_alloc()
1631 if (!cci_pmu->hw_events.events) in cci_pmu_alloc()
1633 cci_pmu->hw_events.used_mask = devm_kcalloc(dev, in cci_pmu_alloc()
1635 sizeof(*cci_pmu->hw_events.used_mask), in cci_pmu_alloc()
1637 if (!cci_pmu->hw_events.used_mask) in cci_pmu_alloc()
1682 raw_spin_lock_init(&cci_pmu->hw_events.pmu_lock); in cci_pmu_probe()