Lines Matching full:uv
204 int uV; member
216 int uV; member
778 new_uV = corner->uV; in cpr_set_performance_state()
824 int step_size_uV, steps, uV; in cpr_read_fuse_uV() local
839 uV = fdata->ref_uV + steps * step_size_uV; in cpr_read_fuse_uV()
840 return DIV_ROUND_UP(uV, step_volt) * step_volt; in cpr_read_fuse_uV()
852 int uV; in cpr_fuse_corner_init() local
876 /* Populate uV */ in cpr_fuse_corner_init()
877 uV = cpr_read_fuse_uV(desc, fdata, fuses->init_voltage, in cpr_fuse_corner_init()
879 if (uV < 0) in cpr_fuse_corner_init()
880 return uV; in cpr_fuse_corner_init()
884 fuse->uV = clamp(uV, fuse->min_uV, fuse->max_uV); in cpr_fuse_corner_init()
893 end->max_uV = max(end->max_uV, end->uV); in cpr_fuse_corner_init()
917 if (fuse->uV > fuse->max_uV) in cpr_fuse_corner_init()
918 fuse->uV = fuse->max_uV; in cpr_fuse_corner_init()
919 else if (fuse->uV < fuse->min_uV) in cpr_fuse_corner_init()
920 fuse->uV = fuse->min_uV; in cpr_fuse_corner_init()
927 "min uV: %d (fuse corner: %d) not supported by regulator\n", in cpr_fuse_corner_init()
937 "max uV: %d (fuse corner: %d) not supported by regulator\n", in cpr_fuse_corner_init()
944 i, fuse->min_uV, fuse->uV, fuse->max_uV, in cpr_fuse_corner_init()
986 int uV_high, uV_low, uV; in cpr_interpolate() local
995 uV_high = fuse->uV; in cpr_interpolate()
996 uV_low = prev_fuse->uV; in cpr_interpolate()
1005 return corner->uV; in cpr_interpolate()
1011 * max_volt_scale has units of uV/MHz while freq values in cpr_interpolate()
1017 uV = uV_high - min(temp, temp_limit); in cpr_interpolate()
1018 return roundup(uV, step_volt); in cpr_interpolate()
1175 corner->uV = fuse->uV; in cpr_corner_init()
1194 corner->uV = cpr_interpolate(corner, step_volt, fdata); in cpr_corner_init()
1199 corner->uV = clamp(corner->uV, corner->min_uV, corner->max_uV); in cpr_corner_init()
1200 corner->last_uV = corner->uV; in cpr_corner_init()
1203 if (desc->reduce_to_corner_uV && corner->uV < corner->max_uV) in cpr_corner_init()
1204 corner->max_uV = corner->uV; in cpr_corner_init()
1205 else if (desc->reduce_to_fuse_uV && fuse->uV < corner->max_uV) in cpr_corner_init()
1206 corner->max_uV = max(corner->min_uV, fuse->uV); in cpr_corner_init()
1209 corner->min_uV, corner->uV, corner->max_uV, in cpr_corner_init()
1543 seq_printf(s, "corner, current_volt = %d uV\n", in cpr_debug_info_show()