Lines Matching refs:hw_events
122 struct cci_pmu_hw_events hw_events; member
430 struct cci_pmu_hw_events *events = &pmu->hw_events; in pmu_handle_irq()
494 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events; in cci_pmu_enable() local
495 int enabled = bitmap_weight(hw_events->used_mask, cci_pmu->num_events); in cci_pmu_enable()
502 raw_spin_lock_irqsave(&hw_events->pmu_lock, flags); in cci_pmu_enable()
507 raw_spin_unlock_irqrestore(&hw_events->pmu_lock, flags); in cci_pmu_enable()
514 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events; in cci_pmu_disable() local
518 raw_spin_lock_irqsave(&hw_events->pmu_lock, flags); in cci_pmu_disable()
523 raw_spin_unlock_irqrestore(&hw_events->pmu_lock, flags); in cci_pmu_disable()
529 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events; in cci_pmu_start() local
548 raw_spin_lock_irqsave(&hw_events->pmu_lock, flags); in cci_pmu_start()
557 raw_spin_unlock_irqrestore(&hw_events->pmu_lock, flags); in cci_pmu_start()
586 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events; in cci_pmu_add() local
594 idx = pmu_get_event_idx(hw_events, event); in cci_pmu_add()
601 hw_events->events[idx] = event; in cci_pmu_add()
618 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events; in cci_pmu_del() local
623 hw_events->events[idx] = NULL; in cci_pmu_del()
624 clear_bit(idx, hw_events->used_mask); in cci_pmu_del()
631 struct cci_pmu_hw_events *hw_events, in validate_event() argument
651 return pmu_get_event_idx(hw_events, event) >= 0; in validate_event()
983 raw_spin_lock_init(&pmu->hw_events.pmu_lock); in cci_pmu_probe()