Lines Matching refs:cpu_hw_evt
510 struct cpu_hw_events *cpu_hw_evt = this_cpu_ptr(pmu->hw_events); in pmu_sbi_stop_hw_ctrs() local
514 cpu_hw_evt->used_hw_ctrs[0], 0, 0, 0, 0); in pmu_sbi_stop_hw_ctrs()
527 struct cpu_hw_events *cpu_hw_evt = this_cpu_ptr(pmu->hw_events); in pmu_sbi_start_overflow_mask() local
535 ctr_start_mask = cpu_hw_evt->used_hw_ctrs[0] & ~ctr_ovf_mask; in pmu_sbi_start_overflow_mask()
544 event = cpu_hw_evt->events[idx]; in pmu_sbi_start_overflow_mask()
573 struct cpu_hw_events *cpu_hw_evt = dev; in pmu_sbi_ovf_handler() local
576 if (WARN_ON_ONCE(!cpu_hw_evt)) in pmu_sbi_ovf_handler()
580 fidx = find_first_bit(cpu_hw_evt->used_hw_ctrs, RISCV_MAX_COUNTERS); in pmu_sbi_ovf_handler()
581 event = cpu_hw_evt->events[fidx]; in pmu_sbi_ovf_handler()
605 for_each_set_bit(lidx, cpu_hw_evt->used_hw_ctrs, RISCV_MAX_COUNTERS) { in pmu_sbi_ovf_handler()
606 struct perf_event *event = cpu_hw_evt->events[lidx]; in pmu_sbi_ovf_handler()
653 struct cpu_hw_events *cpu_hw_evt = this_cpu_ptr(pmu->hw_events); in pmu_sbi_starting_cpu() local
665 cpu_hw_evt->irq = riscv_pmu_irq; in pmu_sbi_starting_cpu()