Searched refs:rvpmu (Results 1 – 2 of 2) sorted by relevance
170 if (!rvpmu->ctr_read) in riscv_pmu_event_update()197 if (rvpmu->ctr_stop) { in riscv_pmu_stop()198 rvpmu->ctr_stop(event, 0); in riscv_pmu_stop()294 if (rvpmu->ctr_stop) in riscv_pmu_del()297 if (rvpmu->ctr_clear_idx) in riscv_pmu_del()298 rvpmu->ctr_clear_idx(event); in riscv_pmu_del()338 if (rvpmu->event_init) in riscv_pmu_event_init()339 rvpmu->event_init(event); in riscv_pmu_event_init()364 if (rvpmu->csr_index) in riscv_pmu_event_idx()374 if (rvpmu->event_mapped) { in riscv_pmu_event_mapped()[all …]
344 struct riscv_pmu *rvpmu = to_riscv_pmu(event->pmu); in pmu_sbi_ctr_get_idx() local345 struct cpu_hw_events *cpuc = this_cpu_ptr(rvpmu->hw_events); in pmu_sbi_ctr_get_idx()348 uint64_t cbase = 0, cmask = rvpmu->cmask; in pmu_sbi_ctr_get_idx()384 if (!test_bit(idx, &rvpmu->cmask) || !pmu_ctr_list[idx].value) in pmu_sbi_ctr_get_idx()403 struct riscv_pmu *rvpmu = to_riscv_pmu(event->pmu); in pmu_sbi_ctr_clear_idx() local404 struct cpu_hw_events *cpuc = this_cpu_ptr(rvpmu->hw_events); in pmu_sbi_ctr_clear_idx()850 struct riscv_pmu *rvpmu = container_of(b, struct riscv_pmu, riscv_pm_nb); in riscv_pm_pmu_notify() local851 struct cpu_hw_events *cpuc = this_cpu_ptr(rvpmu->hw_events); in riscv_pm_pmu_notify()