Lines Matching refs:hw_events
142 struct cci_pmu_hw_events hw_events; member
810 struct cci_pmu_hw_events *events = &cci_pmu->hw_events; in pmu_handle_irq()
875 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events; in cci_pmu_enable() local
876 int enabled = bitmap_weight(hw_events->used_mask, cci_pmu->num_cntrs); in cci_pmu_enable()
883 raw_spin_lock_irqsave(&hw_events->pmu_lock, flags); in cci_pmu_enable()
888 raw_spin_unlock_irqrestore(&hw_events->pmu_lock, flags); in cci_pmu_enable()
895 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events; in cci_pmu_disable() local
899 raw_spin_lock_irqsave(&hw_events->pmu_lock, flags); in cci_pmu_disable()
904 raw_spin_unlock_irqrestore(&hw_events->pmu_lock, flags); in cci_pmu_disable()
920 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events; in cci_pmu_start() local
939 raw_spin_lock_irqsave(&hw_events->pmu_lock, flags); in cci_pmu_start()
948 raw_spin_unlock_irqrestore(&hw_events->pmu_lock, flags); in cci_pmu_start()
977 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events; in cci_pmu_add() local
985 idx = pmu_get_event_idx(hw_events, event); in cci_pmu_add()
992 hw_events->events[idx] = event; in cci_pmu_add()
1009 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events; in cci_pmu_del() local
1014 hw_events->events[idx] = NULL; in cci_pmu_del()
1015 clear_bit(idx, hw_events->used_mask); in cci_pmu_del()
1022 struct cci_pmu_hw_events *hw_events, in validate_event() argument
1042 return pmu_get_event_idx(hw_events, event) >= 0; in validate_event()
1481 cci_pmu->hw_events.events = devm_kcalloc(&pdev->dev, in cci_pmu_alloc()
1483 sizeof(*cci_pmu->hw_events.events), in cci_pmu_alloc()
1485 if (!cci_pmu->hw_events.events) in cci_pmu_alloc()
1487 cci_pmu->hw_events.used_mask = devm_kcalloc(&pdev->dev, in cci_pmu_alloc()
1489 sizeof(*cci_pmu->hw_events.used_mask), in cci_pmu_alloc()
1491 if (!cci_pmu->hw_events.used_mask) in cci_pmu_alloc()
1539 raw_spin_lock_init(&cci_pmu->hw_events.pmu_lock); in cci_pmu_probe()