Lines Matching refs:min_uV
95 int min_uV, int max_uV) in check_range() argument
97 if (min_uV < info->desc.min_uV || min_uV > info->max_uV) in check_range()
194 int min_uV, int max_uV) in da9030_map_ldo14_voltage() argument
199 if (check_range(info, min_uV, max_uV)) { in da9030_map_ldo14_voltage()
200 pr_err("invalid voltage range (%d, %d) uV\n", min_uV, max_uV); in da9030_map_ldo14_voltage()
204 thresh = (info->max_uV + info->desc.min_uV) / 2; in da9030_map_ldo14_voltage()
205 if (min_uV < thresh) { in da9030_map_ldo14_voltage()
206 sel = DIV_ROUND_UP(thresh - min_uV, info->desc.uV_step); in da9030_map_ldo14_voltage()
209 sel = DIV_ROUND_UP(min_uV - thresh, info->desc.uV_step); in da9030_map_ldo14_voltage()
222 volt = rdev->desc->min_uV + in da9030_list_ldo14_voltage()
225 volt = (info->max_uV + rdev->desc->min_uV) / 2 + in da9030_list_ldo14_voltage()
256 int min_uV, int max_uV) in da9034_map_ldo12_voltage() argument
261 if (check_range(info, min_uV, max_uV)) { in da9034_map_ldo12_voltage()
262 pr_err("invalid voltage range (%d, %d) uV\n", min_uV, max_uV); in da9034_map_ldo12_voltage()
266 sel = DIV_ROUND_UP(min_uV - info->desc.min_uV, info->desc.uV_step); in da9034_map_ldo12_voltage()
281 volt = rdev->desc->min_uV + rdev->desc->uV_step * selector; in da9034_list_ldo12_voltage()
351 .min_uV = (min) * 1000, \
371 .min_uV = (min) * 1000, \