Lines Matching refs:regidx
760 static uint64_t *kvm_arm_get_cpreg_ptr(ARMCPU *cpu, uint64_t regidx) in kvm_arm_get_cpreg_ptr() argument
764 res = bsearch(®idx, cpu->cpreg_indexes, cpu->cpreg_array_len, in kvm_arm_get_cpreg_ptr()
779 static bool kvm_arm_reg_syncs_via_cpreg_list(uint64_t regidx) in kvm_arm_reg_syncs_via_cpreg_list() argument
781 switch (regidx & KVM_REG_ARM_COPROC_MASK) { in kvm_arm_reg_syncs_via_cpreg_list()
850 uint64_t regidx = rlp->reg[i]; in kvm_arm_init_cpreg_list() local
851 if (!kvm_arm_reg_syncs_via_cpreg_list(regidx)) { in kvm_arm_init_cpreg_list()
854 cpu->cpreg_indexes[arraylen] = regidx; in kvm_arm_init_cpreg_list()
880 static int kvm_arm_cpreg_level(uint64_t regidx) in kvm_arm_cpreg_level() argument
887 switch (regidx) { in kvm_arm_cpreg_level()
902 uint64_t regidx = cpu->cpreg_indexes[i]; in write_kvmstate_to_list() local
906 switch (regidx & KVM_REG_SIZE_MASK) { in write_kvmstate_to_list()
908 ret = kvm_get_one_reg(cs, regidx, &v32); in write_kvmstate_to_list()
914 ret = kvm_get_one_reg(cs, regidx, cpu->cpreg_values + i); in write_kvmstate_to_list()
933 uint64_t regidx = cpu->cpreg_indexes[i]; in write_list_to_kvmstate() local
937 if (kvm_arm_cpreg_level(regidx) > level) { in write_list_to_kvmstate()
941 switch (regidx & KVM_REG_SIZE_MASK) { in write_list_to_kvmstate()
944 ret = kvm_set_one_reg(cs, regidx, &v32); in write_list_to_kvmstate()
947 ret = kvm_set_one_reg(cs, regidx, cpu->cpreg_values + i); in write_list_to_kvmstate()