Home
last modified time | relevance | path

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

/linux/arch/riscv/kvm/
H A Dvcpu_onereg.c208 unsigned long regs_max = sizeof(struct kvm_riscv_core) / sizeof(unsigned long); in kvm_riscv_vcpu_get_reg_core() local
213 if (reg_num >= regs_max) in kvm_riscv_vcpu_get_reg_core()
216 reg_num = array_index_nospec(reg_num, regs_max); in kvm_riscv_vcpu_get_reg_core()
244 unsigned long regs_max = sizeof(struct kvm_riscv_core) / sizeof(unsigned long); in kvm_riscv_vcpu_set_reg_core() local
249 if (reg_num >= regs_max) in kvm_riscv_vcpu_set_reg_core()
252 reg_num = array_index_nospec(reg_num, regs_max); in kvm_riscv_vcpu_set_reg_core()
278 unsigned long regs_max = sizeof(struct kvm_riscv_csr) / sizeof(unsigned long); in kvm_riscv_vcpu_general_get_csr() local
280 if (reg_num >= regs_max) in kvm_riscv_vcpu_general_get_csr()
283 reg_num = array_index_nospec(reg_num, regs_max); in kvm_riscv_vcpu_general_get_csr()
300 unsigned long regs_max = sizeof(struct kvm_riscv_csr) / sizeof(unsigned long); in kvm_riscv_vcpu_general_set_csr() local
[all …]