Home
last modified time | relevance | path

Searched refs:RISCV_MAX_COUNTERS (Results 1 – 4 of 4) sorted by relevance

/openbmc/linux/include/linux/perf/
H A Driscv_pmu.h22 #define RISCV_MAX_COUNTERS 64 macro
37 struct perf_event *events[RISCV_MAX_COUNTERS];
39 DECLARE_BITMAP(used_hw_ctrs, RISCV_MAX_COUNTERS);
41 DECLARE_BITMAP(used_fw_ctrs, RISCV_MAX_COUNTERS);
/openbmc/linux/drivers/perf/
H A Driscv_pmu_sbi.c298 for_each_set_bit(i, &cmask, RISCV_MAX_COUNTERS) { in riscv_pmu_get_hpm_info()
689 fidx = find_first_bit(cpu_hw_evt->used_hw_ctrs, RISCV_MAX_COUNTERS); in pmu_sbi_ovf_handler()
690 if (fidx == RISCV_MAX_COUNTERS) { 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()
852 int enabled = bitmap_weight(cpuc->used_hw_ctrs, RISCV_MAX_COUNTERS); in riscv_pm_pmu_notify()
859 for (idx = 0; idx < RISCV_MAX_COUNTERS; idx++) { in riscv_pm_pmu_notify()
1040 if (num_counters > RISCV_MAX_COUNTERS) { in pmu_sbi_device_probe()
1041 num_counters = RISCV_MAX_COUNTERS; in pmu_sbi_device_probe()
H A Driscv_pmu.c409 for (i = 0; i < RISCV_MAX_COUNTERS; i++) in riscv_pmu_alloc()
/openbmc/linux/arch/riscv/kvm/
H A Dvcpu_pmu.c353 for_each_set_bit(i, &ctr_mask, RISCV_MAX_COUNTERS) { in kvm_riscv_vcpu_pmu_ctr_start()
410 for_each_set_bit(i, &ctr_mask, RISCV_MAX_COUNTERS) { in kvm_riscv_vcpu_pmu_ctr_stop()
620 for_each_set_bit(i, kvpmu->pmc_in_use, RISCV_MAX_COUNTERS) { in kvm_riscv_vcpu_pmu_deinit()
626 bitmap_zero(kvpmu->pmc_in_use, RISCV_MAX_COUNTERS); in kvm_riscv_vcpu_pmu_deinit()