/Linux-v4.19/drivers/regulator/ |
D | helpers.c | 173 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 …]
|
D | twl6030-regulator.c | 239 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 …]
|
D | da9052-regulator.c | 71 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 …]
|
D | core.c | 107 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() 270 if (*min_uV < rdev->constraints->min_uV) in regulator_check_voltage() 271 *min_uV = rdev->constraints->min_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() 309 if (*min_uV < voltage->min_uV) in regulator_check_consumers() [all …]
|
D | vctrl-regulator.c | 27 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 …]
|
D | lm363x-regulator.c | 109 .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,
|
D | ab8500-ext.c | 311 .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 …]
|
D | da903x.c | 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() [all …]
|
D | virtual.c | 25 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()
|
D | arizona-ldo1.c | 52 return rdev->desc->min_uV + (rdev->desc->uV_step * selector); in arizona_ldo1_hc_list_voltage() 56 int min_uV, int max_uV) in arizona_ldo1_hc_map_voltage() argument 60 sel = DIV_ROUND_UP(min_uV - rdev->desc->min_uV, rdev->desc->uV_step); in arizona_ldo1_hc_map_voltage() 132 .min_uV = 900000, 156 .min_uV = 900000, 167 .min_uV = 1200000, 184 .min_uV = 1175000,
|
D | pv88090-regulator.c | 60 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()
|
D | pwm-regulator.c | 157 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()
|
D | s2mps11.c | 104 old_volt = rdev->desc->min_uV + (rdev->desc->uV_step * old_selector); in s2mps11_regulator_set_voltage_time_sel() 105 new_volt = rdev->desc->min_uV + (rdev->desc->uV_step * new_selector); in s2mps11_regulator_set_voltage_time_sel() 258 .min_uV = MIN_800_MV, \ 273 .min_uV = MIN_600_MV, \ 289 .min_uV = MIN_600_MV, \ 305 .min_uV = min, \ 321 .min_uV = MIN_3000_MV, \ 390 .min_uV = min, \ 406 .min_uV = min, \ 423 .min_uV = min, \ [all …]
|
D | isl9305.c | 79 .min_uV = 825000, 93 .min_uV = 825000, 107 .min_uV = 900000, 121 .min_uV = 900000,
|
D | qcom_spmi-regulator.c | 305 int min_uV; member 387 .min_uV = _min_uV, \ 529 int min_uV, int max_uV) in spmi_regulator_select_voltage() argument 532 int uV = min_uV; in spmi_regulator_select_voltage() 547 min_uV, max_uV, lim_min_uV, lim_max_uV); in spmi_regulator_select_voltage() 565 voltage_sel = DIV_ROUND_UP(uV - range->min_uV, range->step_uV); in spmi_regulator_select_voltage() 566 uV = voltage_sel * range->step_uV + range->min_uV; in spmi_regulator_select_voltage() 572 min_uV, max_uV, uV); in spmi_regulator_select_voltage() 600 offset = range->set_point_min_uV - range->min_uV; in spmi_sw_selector_to_hw() 629 offset = range->set_point_min_uV - range->min_uV; in spmi_hw_selector_to_sw() [all …]
|
D | max1586.c | 46 unsigned int min_uV; member 256 max1586->min_uV = MAX1586_V3_MIN_UV / 1000 * pdata->v3_gain / 1000; in max1586_pmic_probe() 275 max1586_reg[id].min_uV = max1586->min_uV; in max1586_pmic_probe() 277 (max1586->max_uV - max1586->min_uV) / in max1586_pmic_probe()
|
D | rt5033-regulator.c | 46 .min_uV = RT5033_REGULATOR_BUCK_VOLTAGE_MIN, 62 .min_uV = RT5033_REGULATOR_LDO_VOLTAGE_MIN, 78 .min_uV = RT5033_REGULATOR_SAFE_LDO_VOLTAGE,
|
D | vexpress-regulator.c | 42 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()
|
D | da9062-regulator.c | 433 .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 …]
|
D | lp8788-ldo.c | 342 .min_uV = 2500000, 369 .min_uV = 2850000, 380 .min_uV = 2850000, 391 .min_uV = 2850000, 402 .min_uV = 2850000, 439 .min_uV = 2500000, 450 .min_uV = 2500000, 461 .min_uV = 1100000,
|
/Linux-v4.19/arch/arm/mach-s3c24xx/ |
D | mach-gta02.c | 265 .min_uV = 3300000, 274 .min_uV = 1300000, 283 .min_uV = 1800000, 292 .min_uV = 2000000, 301 .min_uV = 3300000, 310 .min_uV = 3300000, 318 .min_uV = 3000000, 326 .min_uV = 3200000, 335 .min_uV = 3000000, 344 .min_uV = 3000000, [all …]
|
/Linux-v4.19/include/linux/regulator/ |
D | driver.h | 58 unsigned int min_uV; member 67 .min_uV = _min_uV, \ 154 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); 333 unsigned int min_uV; member 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);
|
D | consumer.h | 153 unsigned long min_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 585 int min_uV, int target_uV, in regulator_set_voltage_triplet() argument 591 return regulator_set_voltage(regulator, min_uV, max_uV); in regulator_set_voltage_triplet()
|
/Linux-v4.19/arch/arm/mach-pxa/ |
D | stargate2.c | 189 .min_uV = 1800000, 196 .min_uV = 2700000, 203 .min_uV = 1800000, 211 .min_uV = 2700000, 218 .min_uV = 1800000, 225 .min_uV = 2800000, 232 .min_uV = 2800000, 239 .min_uV = 2800000, 246 .min_uV = 2700000, 254 .min_uV = 2692000, [all …]
|
/Linux-v4.19/arch/arm/mach-imx/ |
D | mach-mx31ads.c | 267 .min_uV = 1275000, 290 .min_uV = 2800000, 307 .min_uV = 1800000, 324 .min_uV = 1800000, 345 .min_uV = 2800000, 362 .min_uV = 3300000, 376 .min_uV = 1500000, 389 .min_uV = 2500000,
|