Searched refs:pmc_index (Results 1 – 2 of 2) sorted by relevance
| /linux/arch/riscv/kvm/ |
| H A D | vcpu_pmu.c | 579 int i, pmc_index, sbiret = 0; in kvm_riscv_vcpu_pmu_ctr_start() 603 pmc_index = array_index_nospec(i + ctr_base, in kvm_riscv_vcpu_pmu_ctr_start() 605 if (!test_bit(pmc_index, kvpmu->pmc_in_use)) in kvm_riscv_vcpu_pmu_ctr_start() 608 clear_bit(pmc_index, kvpmu->pmc_overflown); in kvm_riscv_vcpu_pmu_ctr_start() 609 pmc = &kvpmu->pmc[pmc_index]; in kvm_riscv_vcpu_pmu_ctr_start() 656 int i, pmc_index, sbiret = 0; in kvm_riscv_vcpu_pmu_ctr_stop() 674 pmc_index = array_index_nospec(i + ctr_base, in kvm_riscv_vcpu_pmu_ctr_stop() 676 if (!test_bit(pmc_index, kvpmu->pmc_in_use)) in kvm_riscv_vcpu_pmu_ctr_stop() 678 pmc = &kvpmu->pmc[pmc_index]; in kvm_riscv_vcpu_pmu_ctr_stop() 714 * cbase. Modify the set bit in the counter mask instead of the pmc_index in kvm_riscv_vcpu_pmu_ctr_stop() 570 int i, pmc_index, sbiret = 0; kvm_riscv_vcpu_pmu_ctr_start() local 647 int i, pmc_index, sbiret = 0; kvm_riscv_vcpu_pmu_ctr_stop() local [all...] |
| /linux/drivers/platform/x86/intel/pmc/ |
| H A D | core.c | 267 struct seq_file *s, u32 offset, int pmc_index, in pmc_core_lpm_display() argument 286 dev_info(dev, "\nPMC%d:LPM_%s_%d:\t0x%x\n", pmc_index, str, idx, in pmc_core_lpm_display() 289 seq_printf(s, "\nPMC%d:LPM_%s_%d:\t0x%x\n", pmc_index, str, idx, in pmc_core_lpm_display() 294 dev_info(dev, "PMC%d:%-30s %-30d\n", pmc_index, in pmc_core_lpm_display() 298 seq_printf(s, "PMC%d:%-30s %-30d\n", pmc_index, in pmc_core_lpm_display() 848 static void pmc_core_substate_req_header_show(struct seq_file *s, int pmc_index, in pmc_core_substate_req_header_show() argument 852 struct pmc *pmc = pmcdev->pmcs[pmc_index]; in pmc_core_substate_req_header_show()
|