Searched refs:rvpmu (Results 1 – 2 of 2) sorted by relevance
148 struct riscv_pmu *rvpmu = to_riscv_pmu(event->pmu); in riscv_pmu_ctr_get_width_mask() local153 cwidth = rvpmu->ctr_get_width(0); in riscv_pmu_ctr_get_width_mask()155 cwidth = rvpmu->ctr_get_width(hwc->idx); in riscv_pmu_ctr_get_width_mask()162 struct riscv_pmu *rvpmu = to_riscv_pmu(event->pmu); in riscv_pmu_event_update() local168 if (!rvpmu->ctr_read || (hwc->state & PERF_HES_UPTODATE)) in riscv_pmu_event_update()175 new_raw_count = rvpmu->ctr_read(event); in riscv_pmu_event_update()190 struct riscv_pmu *rvpmu = to_riscv_pmu(event->pmu); in riscv_pmu_stop() local193 if (rvpmu->ctr_stop) { in riscv_pmu_stop()194 rvpmu->ctr_stop(event, 0); in riscv_pmu_stop()243 struct riscv_pmu *rvpmu = to_riscv_pmu(event->pmu); in riscv_pmu_start() local[all …]
405 struct riscv_pmu *rvpmu = to_riscv_pmu(event->pmu); in pmu_sbi_ctr_get_idx() local406 struct cpu_hw_events *cpuc = this_cpu_ptr(rvpmu->hw_events); in pmu_sbi_ctr_get_idx()409 uint64_t cbase = 0, cmask = rvpmu->cmask; in pmu_sbi_ctr_get_idx()445 if (!test_bit(idx, &rvpmu->cmask) || !pmu_ctr_list[idx].value) in pmu_sbi_ctr_get_idx()464 struct riscv_pmu *rvpmu = to_riscv_pmu(event->pmu); in pmu_sbi_ctr_clear_idx() local465 struct cpu_hw_events *cpuc = this_cpu_ptr(rvpmu->hw_events); in pmu_sbi_ctr_clear_idx()1153 struct riscv_pmu *rvpmu = container_of(b, struct riscv_pmu, riscv_pm_nb); in riscv_pm_pmu_notify() local1154 struct cpu_hw_events *cpuc = this_cpu_ptr(rvpmu->hw_events); in riscv_pm_pmu_notify()