Lines Matching refs:hw_events
71 struct starlink_hw_events __percpu *hw_events; member
293 struct starlink_hw_events *hw_events = in starlink_pmu_add() local
294 this_cpu_ptr(starlink_pmu->hw_events); in starlink_pmu_add()
296 unsigned long *used_mask = hw_events->used_mask; in starlink_pmu_add()
319 hw_events->events[idx] = event; in starlink_pmu_add()
333 struct starlink_hw_events *hw_events = in starlink_pmu_del() local
334 this_cpu_ptr(starlink_pmu->hw_events); in starlink_pmu_del()
338 hw_events->events[hwc->idx] = NULL; in starlink_pmu_del()
339 clear_bit(hwc->idx, hw_events->used_mask); in starlink_pmu_del()
400 struct starlink_hw_events *hw_events = in starlink_pmu_handle_irq() local
401 this_cpu_ptr(starlink_pmu->hw_events); in starlink_pmu_handle_irq()
407 struct perf_event *event = hw_events->events[idx]; in starlink_pmu_handle_irq()
451 struct starlink_hw_events *hw_events = in starlink_pmu_pm_notify() local
452 this_cpu_ptr(starlink_pmu->hw_events); in starlink_pmu_pm_notify()
453 int enabled = bitmap_weight(hw_events->used_mask, in starlink_pmu_pm_notify()
462 event = hw_events->events[idx]; in starlink_pmu_pm_notify()
511 struct starlink_hw_events *hw_events; in starlink_pmu_probe() local
524 starlink_pmu->hw_events = alloc_percpu_gfp(struct starlink_hw_events, in starlink_pmu_probe()
526 if (!starlink_pmu->hw_events) { in starlink_pmu_probe()
532 hw_events = per_cpu_ptr(starlink_pmu->hw_events, cpuid); in starlink_pmu_probe()
534 hw_events->events[i] = NULL; in starlink_pmu_probe()