Lines Matching refs:cpu_hw_evt
619 struct cpu_hw_events *cpu_hw_evt = this_cpu_ptr(pmu->hw_events); in pmu_sbi_stop_hw_ctrs() local
623 cpu_hw_evt->used_hw_ctrs[0], 0, 0, 0, 0); in pmu_sbi_stop_hw_ctrs()
636 struct cpu_hw_events *cpu_hw_evt = this_cpu_ptr(pmu->hw_events); in pmu_sbi_start_overflow_mask() local
644 ctr_start_mask = cpu_hw_evt->used_hw_ctrs[0] & ~ctr_ovf_mask; in pmu_sbi_start_overflow_mask()
653 event = cpu_hw_evt->events[idx]; in pmu_sbi_start_overflow_mask()
682 struct cpu_hw_events *cpu_hw_evt = dev; in pmu_sbi_ovf_handler() local
685 if (WARN_ON_ONCE(!cpu_hw_evt)) in pmu_sbi_ovf_handler()
689 fidx = find_first_bit(cpu_hw_evt->used_hw_ctrs, RISCV_MAX_COUNTERS); in pmu_sbi_ovf_handler()
695 event = cpu_hw_evt->events[fidx]; in pmu_sbi_ovf_handler()
719 for_each_set_bit(lidx, cpu_hw_evt->used_hw_ctrs, RISCV_MAX_COUNTERS) { in pmu_sbi_ovf_handler()
720 struct perf_event *event = cpu_hw_evt->events[lidx]; in pmu_sbi_ovf_handler()
767 struct cpu_hw_events *cpu_hw_evt = this_cpu_ptr(pmu->hw_events); in pmu_sbi_starting_cpu() local
782 cpu_hw_evt->irq = riscv_pmu_irq; in pmu_sbi_starting_cpu()