Home
last modified time | relevance | path

Searched refs:min_uV (Results 1 – 25 of 88) sorted by relevance

1234

/drivers/regulator/
Dhelpers.c173 int min_uV, int max_uV) in regulator_map_voltage_iterate() argument
187 if (ret < best_val && ret >= min_uV && ret <= max_uV) { in regulator_map_voltage_iterate()
211 int min_uV, int max_uV) in regulator_map_voltage_ascend() argument
223 if (ret >= min_uV && ret <= max_uV) in regulator_map_voltage_ascend()
242 int min_uV, int max_uV) in regulator_map_voltage_linear() argument
248 if (min_uV <= rdev->desc->min_uV && rdev->desc->min_uV <= max_uV) in regulator_map_voltage_linear()
259 if (min_uV < rdev->desc->min_uV) in regulator_map_voltage_linear()
260 min_uV = rdev->desc->min_uV; in regulator_map_voltage_linear()
262 ret = DIV_ROUND_UP(min_uV - rdev->desc->min_uV, rdev->desc->uV_step); in regulator_map_voltage_linear()
270 if (voltage < min_uV || voltage > max_uV) in regulator_map_voltage_linear()
[all …]
Dtwl6030-regulator.c239 static int twl6030coresmps_set_voltage(struct regulator_dev *rdev, int min_uV, in twl6030coresmps_set_voltage() argument
411 static int twl6030smps_map_voltage(struct regulator_dev *rdev, int min_uV, in twl6030smps_map_voltage() argument
419 if (min_uV == 0) in twl6030smps_map_voltage()
421 else if ((min_uV >= 600000) && (min_uV <= 1300000)) { in twl6030smps_map_voltage()
422 vsel = DIV_ROUND_UP(min_uV - 600000, 12500); in twl6030smps_map_voltage()
428 else if ((min_uV > 1900000) && (min_uV <= 2100000)) in twl6030smps_map_voltage()
430 else if ((min_uV > 1800000) && (min_uV <= 1900000)) in twl6030smps_map_voltage()
432 else if ((min_uV > 1500000) && (min_uV <= 1800000)) in twl6030smps_map_voltage()
434 else if ((min_uV > 1350000) && (min_uV <= 1500000)) in twl6030smps_map_voltage()
436 else if ((min_uV > 1300000) && (min_uV <= 1350000)) in twl6030smps_map_voltage()
[all …]
Dda9052-regulator.c71 int min_uV; member
83 int min_uV, int max_uV) in verify_range() argument
85 if (min_uV > info->max_uV || max_uV < info->min_uV) in verify_range()
169 + info->min_uV); in da9052_list_voltage()
173 volt_uV = (selector * info->step_uV) + info->min_uV; in da9052_list_voltage()
183 int min_uV, int max_uV) in da9052_map_voltage() argument
190 ret = verify_range(info, min_uV, max_uV); in da9052_map_voltage()
194 if (min_uV < info->min_uV) in da9052_map_voltage()
195 min_uV = info->min_uV; in da9052_map_voltage()
198 && (min_uV >= DA9052_CONST_3uV)) { in da9052_map_voltage()
[all …]
Dcore.c109 int min_uV, int max_uV);
216 int *min_uV, int *max_uV) in regulator_check_voltage() argument
218 BUG_ON(*min_uV > *max_uV); in regulator_check_voltage()
227 if (*min_uV < rdev->constraints->min_uV) in regulator_check_voltage()
228 *min_uV = rdev->constraints->min_uV; in regulator_check_voltage()
230 if (*min_uV > *max_uV) { in regulator_check_voltage()
232 *min_uV, *max_uV); in regulator_check_voltage()
243 int *min_uV, int *max_uV) in regulator_check_consumers() argument
252 if (!regulator->min_uV && !regulator->max_uV) in regulator_check_consumers()
257 if (*min_uV < regulator->min_uV) in regulator_check_consumers()
[all …]
Dvctrl-regulator.c27 int min_uV; member
59 return ctrl->min_uV + in vctrl_calc_ctrl_voltage()
60 DIV_ROUND_CLOSEST_ULL((s64)(out_uV - out->min_uV) * in vctrl_calc_ctrl_voltage()
61 (ctrl->max_uV - ctrl->min_uV), in vctrl_calc_ctrl_voltage()
62 out->max_uV - out->min_uV); in vctrl_calc_ctrl_voltage()
75 if (ctrl_uV < ctrl->min_uV) in vctrl_calc_output_voltage()
76 return out->min_uV; in vctrl_calc_output_voltage()
81 return out->min_uV + in vctrl_calc_output_voltage()
82 DIV_ROUND_CLOSEST_ULL((s64)(ctrl_uV - ctrl->min_uV) * in vctrl_calc_output_voltage()
83 (out->max_uV - out->min_uV), in vctrl_calc_output_voltage()
[all …]
Dab8500-ext.c311 .min_uV = 2800000,
325 .min_uV = 1100000,
341 .min_uV = 1100000,
401 .min_uV = 1250000,
439 .min_uV = 1800000,
450 .min_uV = 1360000,
458 .min_uV = 3400000,
684 static int ab8500_ext_set_voltage(struct regulator_dev *rdev, int min_uV, in ab8500_ext_set_voltage() argument
694 if (regu_constraints->min_uV == min_uV && in ab8500_ext_set_voltage()
700 min_uV, max_uV, in ab8500_ext_set_voltage()
[all …]
Dlm363x-regulator.c109 .min_uV = LM3631_VBOOST_MIN,
122 .min_uV = LM3631_VCONT_MIN,
137 .min_uV = LM3631_VLDO_MIN,
152 .min_uV = LM3631_VLDO_MIN,
167 .min_uV = LM3631_VLDO_MIN,
183 .min_uV = LM3632_VBOOST_MIN,
196 .min_uV = LM3632_VLDO_MIN,
211 .min_uV = LM3632_VLDO_MIN,
Dda903x.c95 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()
[all …]
Darizona-ldo1.c51 return rdev->desc->min_uV + (rdev->desc->uV_step * selector); in arizona_ldo1_hc_list_voltage()
55 int min_uV, int max_uV) in arizona_ldo1_hc_map_voltage() argument
59 sel = DIV_ROUND_UP(min_uV - rdev->desc->min_uV, rdev->desc->uV_step); in arizona_ldo1_hc_map_voltage()
131 .min_uV = 900000,
155 .min_uV = 900000,
166 .min_uV = 1200000,
183 .min_uV = 1175000,
Dvirtual.c25 int min_uV; member
37 if (data->min_uV && data->max_uV in update_voltage_constraints()
38 && data->min_uV <= data->max_uV) { in update_voltage_constraints()
40 data->min_uV, data->max_uV); in update_voltage_constraints()
42 data->min_uV, data->max_uV); in update_voltage_constraints()
50 if (data->min_uV && data->max_uV && !data->enabled) { in update_voltage_constraints()
60 if (!(data->min_uV && data->max_uV) && data->enabled) { in update_voltage_constraints()
115 return sprintf(buf, "%d\n", data->min_uV); in show_min_uV()
129 data->min_uV = val; in set_min_uV()
Dpv88090-regulator.c60 int min_uV; member
87 .min_uV = 600000,
93 .min_uV = 1400000,
98 .min_uV = 1250000,
219 .min_uV = min, \
244 .min_uV = min, \
410 pv88090_regulator_info[i].desc.min_uV in pv88090_i2c_probe()
411 = pv88090_buck_vol[index].min_uV; in pv88090_i2c_probe()
416 - (pv88090_buck_vol[index].min_uV)) in pv88090_i2c_probe()
Ds2mps11.c117 old_volt = rdev->desc->min_uV + (rdev->desc->uV_step * old_selector); in s2mps11_regulator_set_voltage_time_sel()
118 new_volt = rdev->desc->min_uV + (rdev->desc->uV_step * new_selector); in s2mps11_regulator_set_voltage_time_sel()
271 .min_uV = MIN_800_MV, \
286 .min_uV = MIN_600_MV, \
302 .min_uV = MIN_600_MV, \
318 .min_uV = min, \
334 .min_uV = MIN_3000_MV, \
403 .min_uV = min, \
419 .min_uV = min, \
436 .min_uV = min, \
[all …]
Dpwm-regulator.c157 int min_uV = rdev->constraints->min_uV; in pwm_regulator_get_voltage() local
159 int diff_uV = max_uV - min_uV; in pwm_regulator_get_voltage()
183 return voltage + min_uV; in pwm_regulator_get_voltage()
194 int min_uV = rdev->constraints->min_uV; in pwm_regulator_set_voltage() local
196 int diff_uV = max_uV - min_uV; in pwm_regulator_set_voltage()
214 dutycycle = DIV_ROUND_CLOSEST_ULL((u64)(req_min_uV - min_uV) * in pwm_regulator_set_voltage()
Dqcom_spmi-regulator.c286 int min_uV; member
368 .min_uV = _min_uV, \
536 int min_uV, int max_uV) in spmi_regulator_select_voltage() argument
539 int uV = min_uV; in spmi_regulator_select_voltage()
554 min_uV, max_uV, lim_min_uV, lim_max_uV); in spmi_regulator_select_voltage()
572 voltage_sel = DIV_ROUND_UP(uV - range->min_uV, range->step_uV); in spmi_regulator_select_voltage()
573 uV = voltage_sel * range->step_uV + range->min_uV; in spmi_regulator_select_voltage()
579 min_uV, max_uV, uV); in spmi_regulator_select_voltage()
646 int min_uV, int max_uV) in spmi_regulator_select_voltage_same_range() argument
649 int uV = min_uV; in spmi_regulator_select_voltage_same_range()
[all …]
Disl9305.c79 .min_uV = 825000,
93 .min_uV = 825000,
107 .min_uV = 900000,
121 .min_uV = 900000,
Dda9062-regulator.c433 .desc.min_uV = (300) * 1000,
471 .desc.min_uV = (800) * 1000,
509 .desc.min_uV = (530) * 1000,
547 .desc.min_uV = (900) * 1000,
579 .desc.min_uV = (900) * 1000,
611 .desc.min_uV = (900) * 1000,
643 .desc.min_uV = (900) * 1000,
679 .desc.min_uV = (300) * 1000,
717 .desc.min_uV = (300) * 1000,
755 .desc.min_uV = (800) * 1000,
[all …]
Dmax1586.c46 unsigned int min_uV; member
254 max1586->min_uV = MAX1586_V3_MIN_UV / 1000 * pdata->v3_gain / 1000; in max1586_pmic_probe()
273 max1586_reg[id].min_uV = max1586->min_uV; in max1586_pmic_probe()
275 (max1586->max_uV - max1586->min_uV) / in max1586_pmic_probe()
Dlp8788-ldo.c344 .min_uV = 2500000,
371 .min_uV = 2850000,
382 .min_uV = 2850000,
393 .min_uV = 2850000,
404 .min_uV = 2850000,
441 .min_uV = 2500000,
452 .min_uV = 2500000,
463 .min_uV = 1100000,
Dmax77686-regulator.c351 .min_uV = MAX77686_LDO_MINUV, \
369 .min_uV = MAX77686_LDO_MINUV, \
387 .min_uV = MAX77686_LDO_LOW_MINUV, \
405 .min_uV = MAX77686_LDO_LOW_MINUV, \
424 .min_uV = MAX77686_BUCK_MINUV, \
442 .min_uV = MAX77686_BUCK_MINUV, \
460 .min_uV = MAX77686_DVS_MINUV, \
Dtps80031-regulator.c266 int min_uV, int max_uV) in tps80031_ldo_map_voltage() argument
277 return regulator_map_voltage_iterate(rdev, min_uV, in tps80031_ldo_map_voltage()
282 return regulator_map_voltage_linear(rdev, min_uV, max_uV); in tps80031_ldo_map_voltage()
457 .min_uV = 1000000, \
476 .min_uV = max_mV * 1000, \
642 ri->rinfo->desc.min_uV = 600000; in check_smps_mode_mult()
656 ri->rinfo->desc.min_uV = 607700; in check_smps_mode_mult()
660 ri->rinfo->desc.min_uV = 700000; in check_smps_mode_mult()
664 ri->rinfo->desc.min_uV = 1852000; in check_smps_mode_mult()
668 ri->rinfo->desc.min_uV = 2161000; in check_smps_mode_mult()
Ds2mpa01.c93 old_volt = rdev->desc->min_uV + (rdev->desc->uV_step * old_selector); in s2mpa01_regulator_set_voltage_time_sel()
94 new_volt = rdev->desc->min_uV + (rdev->desc->uV_step * new_selector); in s2mpa01_regulator_set_voltage_time_sel()
245 .min_uV = MIN_800_MV, \
260 .min_uV = MIN_600_MV, \
276 .min_uV = MIN_800_MV, \
292 .min_uV = min, \
Dpv88080-regulator.c67 int min_uV; member
115 .min_uV = 600000,
120 .min_uV = 1400000,
341 .min_uV = min, \
359 .min_uV = min, \
557 pv88080_regulator_info[i].desc.min_uV = in pv88080_i2c_probe()
558 pv88080_buck_vol[conf2].min_uV * (conf5+1); in pv88080_i2c_probe()
563 - (pv88080_regulator_info[i].desc.min_uV)) in pv88080_i2c_probe()
Drt5033-regulator.c46 .min_uV = RT5033_REGULATOR_BUCK_VOLTAGE_MIN,
62 .min_uV = RT5033_REGULATOR_LDO_VOLTAGE_MIN,
78 .min_uV = RT5033_REGULATOR_SAFE_LDO_VOLTAGE,
Dvexpress-regulator.c42 int min_uV, int max_uV, unsigned *selector) in vexpress_regulator_set_voltage() argument
46 return regmap_write(reg->regmap, 0, min_uV); in vexpress_regulator_set_voltage()
83 if (init_data->constraints.min_uV && init_data->constraints.max_uV) in vexpress_regulator_probe()
Disl6271a-regulator.c88 .min_uV = ISL6271A_VOLTAGE_MIN,
97 .min_uV = 1100000,
105 .min_uV = 1300000,

1234