Lines Matching full:volt
51 /* svs bank volt flags */
378 * @volt: bank voltage table
415 * opp_volt[i] = (volt[i] * volt_step) + volt_base;
440 u32 volt[MAX_OPP_ENTRIES]; member
530 svsb->volt[i] = svs_opp_volt_to_bank_volt(opp_u_volt, in svs_sync_bank_volts_from_opp()
595 svsb_volt = max(svsb->volt[i] + temp_voffset, svsb->vmin); in svs_adjust_pm_opp_volts()
774 i, svsb->volt[i], i, svsb->freq_pct[i]); in svs_status_debug_show()
879 /* Target is to set svsb->volt[] by algorithm */ in svs_get_bank_volts_v3()
882 /* volt[0] ~ volt[turn_pt - 1] */ in svs_get_bank_volts_v3()
887 svsb->volt[i] = (*vop >> b_sft) & GENMASK(7, 0); in svs_get_bank_volts_v3()
891 /* volt[turn_pt] + volt[j] ~ volt[opp_count - 1] */ in svs_get_bank_volts_v3()
893 svsb->volt[turn_pt] = FIELD_GET(SVSB_VOPS_FLD_VOP0_4, vop30); in svs_get_bank_volts_v3()
899 svsb->volt[i] = (*vop >> b_sft) & GENMASK(7, 0); in svs_get_bank_volts_v3()
903 /* volt[turn_pt + 1] ~ volt[j - 1] by interpolate */ in svs_get_bank_volts_v3()
905 svsb->volt[i] = interpolate(svsb->freq_pct[turn_pt], in svs_get_bank_volts_v3()
907 svsb->volt[turn_pt], in svs_get_bank_volts_v3()
908 svsb->volt[j], in svs_get_bank_volts_v3()
913 /* volt[0] + volt[j] ~ volt[turn_pt - 1] */ in svs_get_bank_volts_v3()
915 svsb->volt[0] = FIELD_GET(SVSB_VOPS_FLD_VOP0_4, vop30); in svs_get_bank_volts_v3()
921 svsb->volt[i] = (*vop >> b_sft) & GENMASK(7, 0); in svs_get_bank_volts_v3()
925 /* volt[1] ~ volt[j - 1] by interpolate */ in svs_get_bank_volts_v3()
927 svsb->volt[i] = interpolate(svsb->freq_pct[0], in svs_get_bank_volts_v3()
929 svsb->volt[0], in svs_get_bank_volts_v3()
930 svsb->volt[j], in svs_get_bank_volts_v3()
933 /* volt[turn_pt] ~ volt[opp_count - 1] */ in svs_get_bank_volts_v3()
938 svsb->volt[i] = (*vop >> b_sft) & GENMASK(7, 0); in svs_get_bank_volts_v3()
954 svsb->volt[i] -= svsb->dvt_fixed; in svs_get_bank_volts_v3()
1046 svsb->volt[14] = FIELD_GET(SVSB_VOPS_FLD_VOP3_7, temp); in svs_get_bank_volts_v2()
1047 svsb->volt[12] = FIELD_GET(SVSB_VOPS_FLD_VOP2_6, temp); in svs_get_bank_volts_v2()
1048 svsb->volt[10] = FIELD_GET(SVSB_VOPS_FLD_VOP1_5, temp); in svs_get_bank_volts_v2()
1049 svsb->volt[8] = FIELD_GET(SVSB_VOPS_FLD_VOP0_4, temp); in svs_get_bank_volts_v2()
1052 svsb->volt[6] = FIELD_GET(SVSB_VOPS_FLD_VOP3_7, temp); in svs_get_bank_volts_v2()
1053 svsb->volt[4] = FIELD_GET(SVSB_VOPS_FLD_VOP2_6, temp); in svs_get_bank_volts_v2()
1054 svsb->volt[2] = FIELD_GET(SVSB_VOPS_FLD_VOP1_5, temp); in svs_get_bank_volts_v2()
1055 svsb->volt[0] = FIELD_GET(SVSB_VOPS_FLD_VOP0_4, temp); in svs_get_bank_volts_v2()
1058 svsb->volt[i + 1] = interpolate(svsb->freq_pct[i], in svs_get_bank_volts_v2()
1060 svsb->volt[i], in svs_get_bank_volts_v2()
1061 svsb->volt[i + 2], in svs_get_bank_volts_v2()
1064 svsb->volt[15] = interpolate(svsb->freq_pct[12], in svs_get_bank_volts_v2()
1066 svsb->volt[12], in svs_get_bank_volts_v2()
1067 svsb->volt[14], in svs_get_bank_volts_v2()
1071 svsb->volt[i] += svsb->volt_od; in svs_get_bank_volts_v2()
1506 dev_err(svsb->dev, "sync volt fail\n"); in svs_init02()