Home
last modified time | relevance | path

Searched refs:max_uV (Results 1 – 25 of 71) sorted by relevance

123

/Linux-v4.19/arch/arm/mach-s3c24xx/
Dmach-gta02.c266 .max_uV = 3300000,
275 .max_uV = 1600000,
284 .max_uV = 1800000,
293 .max_uV = 3300000,
302 .max_uV = 3300000,
311 .max_uV = 3300000,
319 .max_uV = 3000000,
327 .max_uV = 3200000,
336 .max_uV = 3000000,
345 .max_uV = 3000000,
[all …]
/Linux-v4.19/drivers/regulator/
Dcore.c107 int min_uV, int max_uV);
259 int *min_uV, int *max_uV) in regulator_check_voltage() argument
261 BUG_ON(*min_uV > *max_uV); in regulator_check_voltage()
268 if (*max_uV > rdev->constraints->max_uV) in regulator_check_voltage()
269 *max_uV = rdev->constraints->max_uV; in regulator_check_voltage()
273 if (*min_uV > *max_uV) { in regulator_check_voltage()
275 *min_uV, *max_uV); in regulator_check_voltage()
292 int *min_uV, int *max_uV, in regulator_check_consumers() argument
304 if (!voltage->min_uV && !voltage->max_uV) in regulator_check_consumers()
307 if (*max_uV > voltage->max_uV) in regulator_check_consumers()
[all …]
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
220 if (ret > max_uV) in regulator_map_voltage_ascend()
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()
270 if (voltage < min_uV || voltage > max_uV) in regulator_map_voltage_linear()
288 int min_uV, int max_uV) in regulator_map_voltage_linear_range() argument
306 if (!(min_uV <= linear_max_uV && max_uV >= range->min_uV)) in regulator_map_voltage_linear_range()
[all …]
Dab8500-ext.c312 .max_uV = 3300000,
326 .max_uV = 3300000,
342 .max_uV = 3300000,
402 .max_uV = 1350000,
440 .max_uV = 1800000,
451 .max_uV = 1360000,
459 .max_uV = 3400000,
685 int max_uV, unsigned *selector) in ab8500_ext_set_voltage() argument
695 regu_constraints->max_uV == max_uV) in ab8500_ext_set_voltage()
700 min_uV, max_uV, in ab8500_ext_set_voltage()
[all …]
Dvirtual.c26 int max_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()
141 return sprintf(buf, "%d\n", data->max_uV); in show_max_uV()
155 data->max_uV = val; in set_max_uV()
Dvctrl-regulator.c28 int max_uV; member
61 (ctrl->max_uV - ctrl->min_uV), in vctrl_calc_ctrl_voltage()
62 out->max_uV - out->min_uV); in vctrl_calc_ctrl_voltage()
78 if (ctrl_uV > ctrl->max_uV) in vctrl_calc_output_voltage()
79 return out->max_uV; in vctrl_calc_output_voltage()
83 (out->max_uV - out->min_uV), in vctrl_calc_output_voltage()
84 ctrl->max_uV - ctrl->min_uV); in vctrl_calc_output_voltage()
288 vctrl->vrange.out.max_uV = pval; in vctrl_parse_dt()
305 vctrl->vrange.ctrl.max_uV = vrange_ctrl[1]; in vctrl_parse_dt()
337 ctrl_uV > vrange_ctrl->max_uV) { in vctrl_init_vtable()
[all …]
Dda9052-regulator.c72 int max_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()
176 if (volt_uV > info->max_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()
308 .max_uV = (max) * 1000,\
328 .max_uV = (max) * 1000,\
Dda903x.c79 int max_uV; member
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()
225 volt = (info->max_uV + rdev->desc->min_uV) / 2 + in da9030_list_ldo14_voltage()
228 if (volt > info->max_uV) in da9030_list_ldo14_voltage()
325 .max_uV = (max) * 1000, \
[all …]
Dpwm-regulator.c158 int max_uV = rdev->constraints->max_uV; in pwm_regulator_get_voltage() local
159 int diff_uV = max_uV - min_uV; in pwm_regulator_get_voltage()
195 int max_uV = rdev->constraints->max_uV; in pwm_regulator_set_voltage() local
196 int diff_uV = max_uV - min_uV; in pwm_regulator_set_voltage()
Dqcom_spmi-regulator.c306 int max_uV; member
388 .max_uV = _max_uV, \
529 int min_uV, int max_uV) in spmi_regulator_select_voltage() argument
541 if (uV < lim_min_uV && max_uV >= lim_min_uV) in spmi_regulator_select_voltage()
547 min_uV, max_uV, lim_min_uV, lim_max_uV); in spmi_regulator_select_voltage()
568 if (uV > max_uV) { in spmi_regulator_select_voltage()
572 min_uV, max_uV, uV); in spmi_regulator_select_voltage()
666 int min_uV, int max_uV) in spmi_regulator_select_voltage_same_range() argument
676 if (uV < range->min_uV && max_uV >= range->min_uV) in spmi_regulator_select_voltage_same_range()
679 if (uV < range->min_uV || uV > range->max_uV) { in spmi_regulator_select_voltage_same_range()
[all …]
Dpv88090-regulator.c61 int max_uV; member
88 .max_uV = 1393750,
94 .max_uV = 2193750,
99 .max_uV = 2837500,
415 = ((pv88090_buck_vol[index].max_uV) in pv88090_i2c_probe()
Dmc13xxx-regulator-core.c113 int max_uV, unsigned *selector) in mc13xxx_fixed_regulator_set_voltage() argument
118 __func__, id, min_uV, max_uV); in mc13xxx_fixed_regulator_set_voltage()
121 rdev->desc->volt_table[0] <= max_uV) { in mc13xxx_fixed_regulator_set_voltage()
Dvexpress-regulator.c42 int min_uV, int max_uV, unsigned *selector) in vexpress_regulator_set_voltage() argument
83 if (init_data->constraints.min_uV && init_data->constraints.max_uV) in vexpress_regulator_probe()
Dmax1586.c47 unsigned int max_uV; member
257 max1586->max_uV = MAX1586_V3_MAX_UV / 1000 * pdata->v3_gain / 1000; in max1586_pmic_probe()
277 (max1586->max_uV - max1586->min_uV) / in max1586_pmic_probe()
Dmax8997-regulator.c397 int min_uV, int max_uV, unsigned *selector) in max8997_set_voltage_charger_cv() argument
413 if (max_uV < 4000000 || min_uV > 4350000) in max8997_set_voltage_charger_cv()
418 else if (min_uV <= 4200000 && max_uV >= 4200000) in max8997_set_voltage_charger_cv()
422 ub = (max_uV - 4000000) / 20000 + 1; in max8997_set_voltage_charger_cv()
449 int min_uV, int max_uV, unsigned *selector) in max8997_set_voltage_ldobuck() argument
476 i = max8997_get_voltage_proper_val(desc, min_uV, max_uV); in max8997_set_voltage_ldobuck()
616 int min_uV, int max_uV, unsigned *selector) in max8997_set_voltage_buck() argument
643 return max8997_set_voltage_ldobuck(rdev, min_uV, max_uV, in max8997_set_voltage_buck()
647 new_val = max8997_get_voltage_proper_val(desc, min_uV, max_uV); in max8997_set_voltage_buck()
Darizona-ldo1.c56 int min_uV, int max_uV) in arizona_ldo1_hc_map_voltage() argument
168 .max_uV = 1800000,
185 .max_uV = 1200000,
/Linux-v4.19/arch/arm/mach-pxa/
Dstargate2.c190 .max_uV = 1800000,
197 .max_uV = 3000000,
204 .max_uV = 1800000,
212 .max_uV = 3300000,
219 .max_uV = 1800000,
226 .max_uV = 2800000,
233 .max_uV = 2800000,
240 .max_uV = 2800000,
247 .max_uV = 3300000,
255 .max_uV = 3300000,
[all …]
Dz2.c635 .max_uV = 1600000,
645 .max_uV = 3300000,
652 .max_uV = 1800000,
659 .max_uV = 3150000,
666 .max_uV = 3300000,
/Linux-v4.19/include/linux/regulator/
Ddriver.h154 int (*set_voltage) (struct regulator_dev *, int min_uV, int max_uV,
156 int (*map_voltage)(struct regulator_dev *, int min_uV, int max_uV);
506 int min_uV, int max_uV);
508 int min_uV, int max_uV);
510 int min_uV, int max_uV);
512 int min_uV, int max_uV);
Dconsumer.h154 unsigned long max_uV; member
248 int min_uV, int max_uV);
250 int regulator_set_voltage(struct regulator *regulator, int min_uV, int max_uV);
459 int min_uV, int max_uV) in regulator_set_voltage() argument
476 int min_uV, int max_uV) in regulator_is_supported_voltage() argument
586 int max_uV) in regulator_set_voltage_triplet() argument
588 if (regulator_set_voltage(regulator, target_uV, max_uV) == 0) in regulator_set_voltage_triplet()
591 return regulator_set_voltage(regulator, min_uV, max_uV); in regulator_set_voltage_triplet()
Dmachine.h83 int max_uV; member
147 int max_uV; member
/Linux-v4.19/arch/arm/mach-imx/
Dmach-mx31ads.c268 .max_uV = 1600000,
291 .max_uV = 2800000,
308 .max_uV = 1800000,
325 .max_uV = 1800000,
346 .max_uV = 2800000,
363 .max_uV = 3300000,
377 .max_uV = 1500000,
390 .max_uV = 2500000,
/Linux-v4.19/arch/arm/mach-s3c64xx/
Dmach-smdk6410.c301 .max_uV = 1300000,
314 .max_uV = 1200000,
407 .max_uV = 1200000,
418 .max_uV = 1800000,
438 .max_uV = 3000000,
450 .max_uV = 1200000,
/Linux-v4.19/arch/arm/mach-davinci/
Dboard-mityomapl138.c236 .max_uV = 1350000,
248 .max_uV = 1800000,
259 .max_uV = 1200000,
270 .max_uV = 1800000,
281 .max_uV = 3300000,
/Linux-v4.19/drivers/scsi/ufs/
Dufshcd-pltfrm.c171 vreg->max_uV = UFS_VREG_VCC_1P8_MAX_UV; in ufshcd_populate_vreg()
174 vreg->max_uV = UFS_VREG_VCC_MAX_UV; in ufshcd_populate_vreg()
178 vreg->max_uV = UFS_VREG_VCCQ_MAX_UV; in ufshcd_populate_vreg()
181 vreg->max_uV = UFS_VREG_VCCQ2_MAX_UV; in ufshcd_populate_vreg()

123