Searched refs:select_idx (Results 1 – 2 of 2) sorted by relevance
/linux-4.19.296/virt/kvm/arm/ |
D | pmu.c | 32 u64 kvm_pmu_get_counter_value(struct kvm_vcpu *vcpu, u64 select_idx) in kvm_pmu_get_counter_value() argument 36 struct kvm_pmc *pmc = &pmu->pmc[select_idx]; in kvm_pmu_get_counter_value() 38 reg = (select_idx == ARMV8_PMU_CYCLE_IDX) in kvm_pmu_get_counter_value() 39 ? PMCCNTR_EL0 : PMEVCNTR0_EL0 + select_idx; in kvm_pmu_get_counter_value() 58 void kvm_pmu_set_counter_value(struct kvm_vcpu *vcpu, u64 select_idx, u64 val) in kvm_pmu_set_counter_value() argument 62 reg = (select_idx == ARMV8_PMU_CYCLE_IDX) in kvm_pmu_set_counter_value() 63 ? PMCCNTR_EL0 : PMEVCNTR0_EL0 + select_idx; in kvm_pmu_set_counter_value() 64 __vcpu_sys_reg(vcpu, reg) += (s64)val - kvm_pmu_get_counter_value(vcpu, select_idx); in kvm_pmu_set_counter_value() 373 static bool kvm_pmu_counter_is_enabled(struct kvm_vcpu *vcpu, u64 select_idx) in kvm_pmu_counter_is_enabled() argument 376 (__vcpu_sys_reg(vcpu, PMCNTENSET_EL0) & BIT(select_idx)); in kvm_pmu_counter_is_enabled() [all …]
|
/linux-4.19.296/include/kvm/ |
D | arm_pmu.h | 44 u64 kvm_pmu_get_counter_value(struct kvm_vcpu *vcpu, u64 select_idx); 45 void kvm_pmu_set_counter_value(struct kvm_vcpu *vcpu, u64 select_idx, u64 val); 58 u64 select_idx); 74 u64 select_idx) in kvm_pmu_get_counter_value() argument 79 u64 select_idx, u64 val) {} in kvm_pmu_set_counter_value() argument 98 u64 data, u64 select_idx) {} in kvm_pmu_set_counter_event_type() argument
|