Home
last modified time | relevance | path

Searched refs:reg_subtype (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.6/arch/riscv/kvm/
Dvcpu_sbi.c255 unsigned long reg_val, reg_subtype; in kvm_riscv_vcpu_set_reg_sbi_ext() local
263 reg_subtype = reg_num & KVM_REG_RISCV_SUBTYPE_MASK; in kvm_riscv_vcpu_set_reg_sbi_ext()
269 switch (reg_subtype) { in kvm_riscv_vcpu_set_reg_sbi_ext()
292 unsigned long reg_val, reg_subtype; in kvm_riscv_vcpu_get_reg_sbi_ext() local
297 reg_subtype = reg_num & KVM_REG_RISCV_SUBTYPE_MASK; in kvm_riscv_vcpu_get_reg_sbi_ext()
301 switch (reg_subtype) { in kvm_riscv_vcpu_get_reg_sbi_ext()
308 if (!rc && reg_subtype == KVM_REG_RISCV_SBI_MULTI_DIS) in kvm_riscv_vcpu_get_reg_sbi_ext()
Dvcpu_onereg.c390 unsigned long reg_val, reg_subtype; in kvm_riscv_vcpu_get_reg_csr() local
395 reg_subtype = reg_num & KVM_REG_RISCV_SUBTYPE_MASK; in kvm_riscv_vcpu_get_reg_csr()
397 switch (reg_subtype) { in kvm_riscv_vcpu_get_reg_csr()
426 unsigned long reg_val, reg_subtype; in kvm_riscv_vcpu_set_reg_csr() local
434 reg_subtype = reg_num & KVM_REG_RISCV_SUBTYPE_MASK; in kvm_riscv_vcpu_set_reg_csr()
436 switch (reg_subtype) { in kvm_riscv_vcpu_set_reg_csr()
564 unsigned long reg_val, reg_subtype; in kvm_riscv_vcpu_get_reg_isa_ext() local
569 reg_subtype = reg_num & KVM_REG_RISCV_SUBTYPE_MASK; in kvm_riscv_vcpu_get_reg_isa_ext()
573 switch (reg_subtype) { in kvm_riscv_vcpu_get_reg_isa_ext()
580 if (!rc && reg_subtype == KVM_REG_RISCV_ISA_MULTI_DIS) in kvm_riscv_vcpu_get_reg_isa_ext()
[all …]
/Linux-v6.6/tools/testing/selftests/kvm/riscv/
Dget-reg-list.c245 __u64 reg_subtype = reg_off & KVM_REG_RISCV_SUBTYPE_MASK; in csr_id_to_str() local
249 switch (reg_subtype) { in csr_id_to_str()
256 TEST_FAIL("%s: Unknown csr subtype: 0x%llx", prefix, reg_subtype); in csr_id_to_str()
382 static const char *sbi_ext_multi_id_to_str(__u64 reg_subtype, __u64 reg_off) in sbi_ext_multi_id_to_str() argument
392 switch (reg_subtype) { in sbi_ext_multi_id_to_str()
405 __u64 reg_subtype = reg_off & KVM_REG_RISCV_SUBTYPE_MASK; in sbi_ext_id_to_str() local
409 switch (reg_subtype) { in sbi_ext_id_to_str()
414 return sbi_ext_multi_id_to_str(reg_subtype, reg_off); in sbi_ext_id_to_str()
417 TEST_FAIL("%s: Unknown sbi ext subtype: 0x%llx", prefix, reg_subtype); in sbi_ext_id_to_str()