Lines Matching refs:hw_events

316 	struct pmu_hw_events *hw_events = this_cpu_ptr(armpmu->hw_events);  in armpmu_del()  local
321 hw_events->events[idx] = NULL; in armpmu_del()
322 armpmu->clear_event_idx(hw_events, event); in armpmu_del()
332 struct pmu_hw_events *hw_events = this_cpu_ptr(armpmu->hw_events); in armpmu_add() local
341 idx = armpmu->get_event_idx(hw_events, event); in armpmu_add()
351 hw_events->events[idx] = event; in armpmu_add()
364 validate_event(struct pmu *pmu, struct pmu_hw_events *hw_events, in validate_event() argument
387 return armpmu->get_event_idx(hw_events, event) >= 0; in validate_event()
524 struct pmu_hw_events *hw_events = this_cpu_ptr(armpmu->hw_events); in armpmu_enable() local
525 bool enabled = !bitmap_empty(hw_events->used_mask, ARMPMU_MAX_HWEVENTS); in armpmu_enable()
687 struct pmu_hw_events __percpu *hw_events = pmu->hw_events; in armpmu_get_cpu_irq() local
688 return per_cpu(hw_events->irq, cpu); in armpmu_get_cpu_irq()
741 struct pmu_hw_events *hw_events = this_cpu_ptr(armpmu->hw_events); in cpu_pm_pmu_setup() local
746 event = hw_events->events[idx]; in cpu_pm_pmu_setup()
774 struct pmu_hw_events *hw_events = this_cpu_ptr(armpmu->hw_events); in cpu_pm_pmu_notify() local
775 bool enabled = !bitmap_empty(hw_events->used_mask, ARMPMU_MAX_HWEVENTS); in cpu_pm_pmu_notify()
860 pmu->hw_events = alloc_percpu_gfp(struct pmu_hw_events, GFP_KERNEL); in armpmu_alloc()
861 if (!pmu->hw_events) { in armpmu_alloc()
894 events = per_cpu_ptr(pmu->hw_events, cpu); in armpmu_alloc()
908 free_percpu(pmu->hw_events); in armpmu_free()