Lines Matching refs:sbi_ext
36 static const struct kvm_riscv_sbi_extension_entry sbi_ext[] = { variable
149 for (i = 0; i < ARRAY_SIZE(sbi_ext); i++) { in riscv_vcpu_set_sbi_ext_single()
150 if (sbi_ext[i].ext_idx == reg_num) { in riscv_vcpu_set_sbi_ext_single()
151 sext = &sbi_ext[i]; in riscv_vcpu_set_sbi_ext_single()
182 for (i = 0; i < ARRAY_SIZE(sbi_ext); i++) { in riscv_vcpu_get_sbi_ext_single()
183 if (sbi_ext[i].ext_idx == reg_num) { in riscv_vcpu_get_sbi_ext_single()
184 sext = &sbi_ext[i]; in riscv_vcpu_get_sbi_ext_single()
331 for (i = 0; i < ARRAY_SIZE(sbi_ext); i++) { in kvm_vcpu_sbi_find_ext()
332 entry = &sbi_ext[i]; in kvm_vcpu_sbi_find_ext()
363 const struct kvm_vcpu_sbi_extension *sbi_ext; in kvm_riscv_vcpu_sbi_ecall() local
372 sbi_ext = kvm_vcpu_sbi_find_ext(vcpu, cp->a7); in kvm_riscv_vcpu_sbi_ecall()
373 if (sbi_ext && sbi_ext->handler) { in kvm_riscv_vcpu_sbi_ecall()
379 ret = sbi_ext->handler(vcpu, run, &sbi_ret); in kvm_riscv_vcpu_sbi_ecall()