Lines Matching refs:min_uV
78 int min_uV;
100 int min_uV, int max_uV)
102 if (min_uV < info->min_uV || min_uV > info->max_uV)
110 int min_uV, int max_uV)
116 if (check_range(info, min_uV, max_uV)) {
117 pr_err("invalid voltage range (%d, %d) uV\n", min_uV, max_uV);
121 val = (min_uV - info->min_uV + info->step_uV - 1) / info->step_uV;
142 return info->min_uV + info->step_uV * val;
182 ret = info->min_uV + info->step_uV * selector;
190 int min_uV, int max_uV)
197 if (check_range(info, min_uV, max_uV)) {
198 pr_err("invalid voltage range (%d, %d) uV\n", min_uV, max_uV);
202 val = (min_uV - info->min_uV + info->step_uV - 1) / info->step_uV;
217 int min_uV, int max_uV)
224 if (check_range(info, min_uV, max_uV)) {
225 pr_err("invalid voltage range (%d, %d) uV\n", min_uV, max_uV);
229 thresh = (info->max_uV + info->min_uV) / 2;
230 if (min_uV < thresh) {
231 val = (thresh - min_uV + info->step_uV - 1) / info->step_uV;
234 val = (min_uV - thresh + info->step_uV - 1) / info->step_uV;
258 return info->min_uV + info->step_uV * (3 - (val & ~0x4));
260 return (info->max_uV + info->min_uV) / 2 +
266 int min_uV, int max_uV)
273 if (check_range(info, min_uV, max_uV)) {
274 pr_err("invalid voltage range (%d, %d) uV\n", min_uV, max_uV);
278 val = (min_uV - info->min_uV + info->step_uV - 1) / info->step_uV;
292 int min_uV, int max_uV)
298 if (check_range(info, min_uV, max_uV)) {
299 pr_err("invalid voltage range (%d, %d) uV\n", min_uV, max_uV);
303 val = (min_uV - info->min_uV + info->step_uV - 1) / info->step_uV;
328 return info->min_uV + info->step_uV * val;
397 .min_uV = (min) * 1000, \
417 .min_uV = (min) * 1000, \