Lines Matching full:volt
50 /* svs bank volt flags */
381 * @volt: bank voltage table
418 * opp_volt[i] = (volt[i] * volt_step) + volt_base;
443 u32 volt[MAX_OPP_ENTRIES]; member
533 svsb->volt[i] = svs_opp_volt_to_bank_volt(opp_u_volt, in svs_sync_bank_volts_from_opp()
596 svsb_volt = max(svsb->volt[i], svsb->vmin); in svs_adjust_pm_opp_volts()
602 svsb_volt = max(svsb->volt[i] + temp_voffset, svsb->vmin); in svs_adjust_pm_opp_volts()
770 i, svsb->volt[i], i, svsb->freq_pct[i]); in svs_status_debug_show()
874 /* Target is to set svsb->volt[] by algorithm */ in svs_get_bank_volts_v3()
877 /* volt[0] ~ volt[turn_pt - 1] */ in svs_get_bank_volts_v3()
882 svsb->volt[i] = (*vop >> b_sft) & GENMASK(7, 0); in svs_get_bank_volts_v3()
886 /* volt[turn_pt] + volt[j] ~ volt[opp_count - 1] */ in svs_get_bank_volts_v3()
888 svsb->volt[turn_pt] = FIELD_GET(SVSB_VOPS_FLD_VOP0_4, vop30); in svs_get_bank_volts_v3()
894 svsb->volt[i] = (*vop >> b_sft) & GENMASK(7, 0); in svs_get_bank_volts_v3()
898 /* volt[turn_pt + 1] ~ volt[j - 1] by interpolate */ in svs_get_bank_volts_v3()
900 svsb->volt[i] = interpolate(svsb->freq_pct[turn_pt], in svs_get_bank_volts_v3()
902 svsb->volt[turn_pt], in svs_get_bank_volts_v3()
903 svsb->volt[j], in svs_get_bank_volts_v3()
908 /* volt[0] + volt[j] ~ volt[turn_pt - 1] */ in svs_get_bank_volts_v3()
910 svsb->volt[0] = FIELD_GET(SVSB_VOPS_FLD_VOP0_4, vop30); in svs_get_bank_volts_v3()
916 svsb->volt[i] = (*vop >> b_sft) & GENMASK(7, 0); in svs_get_bank_volts_v3()
920 /* volt[1] ~ volt[j - 1] by interpolate */ in svs_get_bank_volts_v3()
922 svsb->volt[i] = interpolate(svsb->freq_pct[0], in svs_get_bank_volts_v3()
924 svsb->volt[0], in svs_get_bank_volts_v3()
925 svsb->volt[j], in svs_get_bank_volts_v3()
928 /* volt[turn_pt] ~ volt[opp_count - 1] */ in svs_get_bank_volts_v3()
933 svsb->volt[i] = (*vop >> b_sft) & GENMASK(7, 0); in svs_get_bank_volts_v3()
949 svsb->volt[i] -= svsb->dvt_fixed; in svs_get_bank_volts_v3()
1041 svsb->volt[14] = FIELD_GET(SVSB_VOPS_FLD_VOP3_7, temp); in svs_get_bank_volts_v2()
1042 svsb->volt[12] = FIELD_GET(SVSB_VOPS_FLD_VOP2_6, temp); in svs_get_bank_volts_v2()
1043 svsb->volt[10] = FIELD_GET(SVSB_VOPS_FLD_VOP1_5, temp); in svs_get_bank_volts_v2()
1044 svsb->volt[8] = FIELD_GET(SVSB_VOPS_FLD_VOP0_4, temp); in svs_get_bank_volts_v2()
1047 svsb->volt[6] = FIELD_GET(SVSB_VOPS_FLD_VOP3_7, temp); in svs_get_bank_volts_v2()
1048 svsb->volt[4] = FIELD_GET(SVSB_VOPS_FLD_VOP2_6, temp); in svs_get_bank_volts_v2()
1049 svsb->volt[2] = FIELD_GET(SVSB_VOPS_FLD_VOP1_5, temp); in svs_get_bank_volts_v2()
1050 svsb->volt[0] = FIELD_GET(SVSB_VOPS_FLD_VOP0_4, temp); in svs_get_bank_volts_v2()
1053 svsb->volt[i + 1] = interpolate(svsb->freq_pct[i], in svs_get_bank_volts_v2()
1055 svsb->volt[i], in svs_get_bank_volts_v2()
1056 svsb->volt[i + 2], in svs_get_bank_volts_v2()
1059 svsb->volt[15] = interpolate(svsb->freq_pct[12], in svs_get_bank_volts_v2()
1061 svsb->volt[12], in svs_get_bank_volts_v2()
1062 svsb->volt[14], in svs_get_bank_volts_v2()
1066 svsb->volt[i] += svsb->volt_od; in svs_get_bank_volts_v2()
1499 dev_err(svsb->dev, "sync volt fail\n"); in svs_init02()