| /Linux-v5.4/drivers/regulator/ |
| D | twl6030-regulator.c | 236 static int twl6030coresmps_set_voltage(struct regulator_dev *rdev, int min_uV, in twl6030coresmps_set_voltage() argument 393 static int twl6030smps_map_voltage(struct regulator_dev *rdev, int min_uV, in twl6030smps_map_voltage() argument 401 if (min_uV == 0) in twl6030smps_map_voltage() 403 else if ((min_uV >= 600000) && (min_uV <= 1300000)) { in twl6030smps_map_voltage() 404 vsel = DIV_ROUND_UP(min_uV - 600000, 12500); in twl6030smps_map_voltage() 410 else if ((min_uV > 1900000) && (min_uV <= 2100000)) in twl6030smps_map_voltage() 412 else if ((min_uV > 1800000) && (min_uV <= 1900000)) in twl6030smps_map_voltage() 414 else if ((min_uV > 1500000) && (min_uV <= 1800000)) in twl6030smps_map_voltage() 416 else if ((min_uV > 1350000) && (min_uV <= 1500000)) in twl6030smps_map_voltage() 418 else if ((min_uV > 1300000) && (min_uV <= 1350000)) in twl6030smps_map_voltage() [all …]
|
| D | helpers.c | 289 int min_uV, int max_uV) in regulator_map_voltage_iterate() argument 303 if (ret < best_val && ret >= min_uV && ret <= max_uV) { in regulator_map_voltage_iterate() 327 int min_uV, int max_uV) in regulator_map_voltage_ascend() argument 339 if (ret >= min_uV && ret <= max_uV) in regulator_map_voltage_ascend() 358 int min_uV, int max_uV) in regulator_map_voltage_linear() argument 364 if (min_uV <= rdev->desc->min_uV && rdev->desc->min_uV <= max_uV) in regulator_map_voltage_linear() 375 if (min_uV < rdev->desc->min_uV) in regulator_map_voltage_linear() 376 min_uV = rdev->desc->min_uV; in regulator_map_voltage_linear() 378 ret = DIV_ROUND_UP(min_uV - rdev->desc->min_uV, rdev->desc->uV_step); in regulator_map_voltage_linear() 386 if (voltage < min_uV || voltage > max_uV) in regulator_map_voltage_linear() [all …]
|
| D | da9052-regulator.c | 63 int min_uV; member 75 int min_uV, int max_uV) in verify_range() argument 77 if (min_uV > info->max_uV || max_uV < info->min_uV) in verify_range() 161 + info->min_uV); in da9052_list_voltage() 165 volt_uV = (selector * info->step_uV) + info->min_uV; in da9052_list_voltage() 175 int min_uV, int max_uV) in da9052_map_voltage() argument 182 ret = verify_range(info, min_uV, max_uV); in da9052_map_voltage() 186 if (min_uV < info->min_uV) in da9052_map_voltage() 187 min_uV = info->min_uV; in da9052_map_voltage() 190 && (min_uV >= DA9052_CONST_3uV)) { in da9052_map_voltage() [all …]
|
| D | lm363x-regulator.c | 111 .min_uV = LM3631_VBOOST_MIN, 124 .min_uV = LM3631_VCONT_MIN, 139 .min_uV = LM3631_VLDO_MIN, 154 .min_uV = LM3631_VLDO_MIN, 169 .min_uV = LM3631_VLDO_MIN, 185 .min_uV = LM3632_VBOOST_MIN, 198 .min_uV = LM3632_VLDO_MIN, 213 .min_uV = LM3632_VLDO_MIN, 230 .min_uV = LM36274_VOLTAGE_MIN, 243 .min_uV = LM36274_VOLTAGE_MIN, [all …]
|
| D | core.c | 102 int min_uV, int max_uV); 429 int *min_uV, int *max_uV) in regulator_check_voltage() argument 431 BUG_ON(*min_uV > *max_uV); in regulator_check_voltage() 440 if (*min_uV < rdev->constraints->min_uV) in regulator_check_voltage() 441 *min_uV = rdev->constraints->min_uV; in regulator_check_voltage() 443 if (*min_uV > *max_uV) { in regulator_check_voltage() 445 *min_uV, *max_uV); in regulator_check_voltage() 462 int *min_uV, int *max_uV, in regulator_check_consumers() argument 474 if (!voltage->min_uV && !voltage->max_uV) in regulator_check_consumers() 479 if (*min_uV < voltage->min_uV) in regulator_check_consumers() [all …]
|
| D | vctrl-regulator.c | 19 int min_uV; member 51 return ctrl->min_uV + in vctrl_calc_ctrl_voltage() 52 DIV_ROUND_CLOSEST_ULL((s64)(out_uV - out->min_uV) * in vctrl_calc_ctrl_voltage() 53 (ctrl->max_uV - ctrl->min_uV), in vctrl_calc_ctrl_voltage() 54 out->max_uV - out->min_uV); in vctrl_calc_ctrl_voltage() 67 if (ctrl_uV < ctrl->min_uV) in vctrl_calc_output_voltage() 68 return out->min_uV; in vctrl_calc_output_voltage() 73 return out->min_uV + in vctrl_calc_output_voltage() 74 DIV_ROUND_CLOSEST_ULL((s64)(ctrl_uV - ctrl->min_uV) * in vctrl_calc_output_voltage() 75 (out->max_uV - out->min_uV), in vctrl_calc_output_voltage() [all …]
|
| D | ab8500-ext.c | 310 .min_uV = 2800000, 324 .min_uV = 1100000, 340 .min_uV = 1100000, 400 .min_uV = 1250000, 438 .min_uV = 1800000, 449 .min_uV = 1360000, 457 .min_uV = 3400000, 681 static int ab8500_ext_set_voltage(struct regulator_dev *rdev, int min_uV, in ab8500_ext_set_voltage() argument 691 if (regu_constraints->min_uV == min_uV && in ab8500_ext_set_voltage() 697 min_uV, max_uV, in ab8500_ext_set_voltage() [all …]
|
| D | da903x.c | 91 int min_uV, int max_uV) in check_range() argument 93 if (min_uV < info->desc.min_uV || min_uV > info->max_uV) in check_range() 190 int min_uV, int max_uV) in da9030_map_ldo14_voltage() argument 195 if (check_range(info, min_uV, max_uV)) { in da9030_map_ldo14_voltage() 196 pr_err("invalid voltage range (%d, %d) uV\n", min_uV, max_uV); in da9030_map_ldo14_voltage() 200 thresh = (info->max_uV + info->desc.min_uV) / 2; in da9030_map_ldo14_voltage() 201 if (min_uV < thresh) { in da9030_map_ldo14_voltage() 202 sel = DIV_ROUND_UP(thresh - min_uV, info->desc.uV_step); in da9030_map_ldo14_voltage() 205 sel = DIV_ROUND_UP(min_uV - thresh, info->desc.uV_step); in da9030_map_ldo14_voltage() 218 volt = rdev->desc->min_uV + in da9030_list_ldo14_voltage() [all …]
|
| D | virtual.c | 21 int min_uV; member 33 if (data->min_uV && data->max_uV in update_voltage_constraints() 34 && data->min_uV <= data->max_uV) { in update_voltage_constraints() 36 data->min_uV, data->max_uV); in update_voltage_constraints() 38 data->min_uV, data->max_uV); in update_voltage_constraints() 46 if (data->min_uV && data->max_uV && !data->enabled) { in update_voltage_constraints() 56 if (!(data->min_uV && data->max_uV) && data->enabled) { in update_voltage_constraints() 111 return sprintf(buf, "%d\n", data->min_uV); in show_min_uV() 125 data->min_uV = val; in set_min_uV()
|
| D | pv88090-regulator.c | 46 int min_uV; member 73 .min_uV = 600000, 79 .min_uV = 1400000, 84 .min_uV = 1250000, 171 .min_uV = min, \ 197 .min_uV = min, \ 367 pv88090_regulator_info[i].desc.min_uV in pv88090_i2c_probe() 368 = pv88090_buck_vol[index].min_uV; in pv88090_i2c_probe() 373 - (pv88090_buck_vol[index].min_uV)) in pv88090_i2c_probe()
|
| D | pwm-regulator.c | 151 int min_uV = rdev->constraints->min_uV; in pwm_regulator_get_voltage() local 153 int diff_uV = max_uV - min_uV; in pwm_regulator_get_voltage() 177 return voltage + min_uV; in pwm_regulator_get_voltage() 188 int min_uV = rdev->constraints->min_uV; in pwm_regulator_set_voltage() local 190 int diff_uV = max_uV - min_uV; in pwm_regulator_set_voltage() 208 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() 364 .min_uV = MIN_800_MV, \ 379 .min_uV = MIN_650_MV, \ 396 .min_uV = MIN_650_MV, \ 413 .min_uV = min, \ 430 .min_uV = MIN_3000_MV, \ 503 .min_uV = min, \ 519 .min_uV = min, \ 536 .min_uV = min, \ [all …]
|
| D | isl9305.c | 75 .min_uV = 825000, 90 .min_uV = 825000, 105 .min_uV = 900000, 120 .min_uV = 900000,
|
| D | vexpress-regulator.c | 26 int min_uV, int max_uV, unsigned *selector) in vexpress_regulator_set_voltage() argument 28 return regmap_write(regdev->regmap, 0, min_uV); in vexpress_regulator_set_voltage() 67 if (init_data->constraints.min_uV && init_data->constraints.max_uV) in vexpress_regulator_probe()
|
| D | max1586.c | 33 unsigned int min_uV; member 243 max1586->min_uV = MAX1586_V3_MIN_UV / 1000 * pdata->v3_gain / 1000; in max1586_pmic_probe() 262 max1586_reg[id].min_uV = max1586->min_uV; in max1586_pmic_probe() 264 (max1586->max_uV - max1586->min_uV) / in max1586_pmic_probe()
|
| D | s2mpa01.c | 84 old_volt = rdev->desc->min_uV + (rdev->desc->uV_step * old_selector); in s2mpa01_regulator_set_voltage_time_sel() 85 new_volt = rdev->desc->min_uV + (rdev->desc->uV_step * new_selector); in s2mpa01_regulator_set_voltage_time_sel() 238 .min_uV = MIN_800_MV, \ 255 .min_uV = MIN_600_MV, \ 273 .min_uV = MIN_800_MV, \ 291 .min_uV = min, \
|
| D | da9062-regulator.c | 362 .desc.min_uV = (300) * 1000, 398 .desc.min_uV = (800) * 1000, 434 .desc.min_uV = (530) * 1000, 470 .desc.min_uV = (900) * 1000, 503 .desc.min_uV = (900) * 1000, 536 .desc.min_uV = (900) * 1000, 569 .desc.min_uV = (900) * 1000, 606 .desc.min_uV = (300) * 1000, 642 .desc.min_uV = (300) * 1000, 678 .desc.min_uV = (800) * 1000, [all …]
|
| D | rt5033-regulator.c | 43 .min_uV = RT5033_REGULATOR_BUCK_VOLTAGE_MIN, 59 .min_uV = RT5033_REGULATOR_LDO_VOLTAGE_MIN, 75 .min_uV = RT5033_REGULATOR_SAFE_LDO_VOLTAGE,
|
| /Linux-v5.4/drivers/mmc/core/ |
| D | regulator.c | 27 static int mmc_ocrbitnum_to_vdd(int vdd_bit, int *min_uV, int *max_uV) in mmc_ocrbitnum_to_vdd() argument 42 *min_uV = 1650 * 1000; in mmc_ocrbitnum_to_vdd() 45 *min_uV = 1900 * 1000 + tmp * 100 * 1000; in mmc_ocrbitnum_to_vdd() 46 *max_uV = *min_uV + 100 * 1000; in mmc_ocrbitnum_to_vdd() 111 int min_uV, max_uV; in mmc_regulator_set_ocr() local 114 mmc_ocrbitnum_to_vdd(vdd_bit, &min_uV, &max_uV); in mmc_regulator_set_ocr() 116 result = regulator_set_voltage(supply, min_uV, max_uV); in mmc_regulator_set_ocr() 136 int min_uV, int target_uV, in mmc_regulator_set_voltage_if_supported() argument 143 if (!regulator_is_supported_voltage(regulator, min_uV, max_uV)) in mmc_regulator_set_voltage_if_supported() 146 return regulator_set_voltage_triplet(regulator, min_uV, target_uV, in mmc_regulator_set_voltage_if_supported() [all …]
|
| /Linux-v5.4/include/linux/regulator/ |
| D | coupler.h | 57 int *min_uV, int *max_uV, 60 int *min_uV, int *max_uV); 63 int min_uV, int max_uV, 75 int *min_uV, int *max_uV, in regulator_check_consumers() argument 81 int *min_uV, int *max_uV) in regulator_check_voltage() argument 90 int min_uV, int max_uV, in regulator_set_voltage_rdev() argument
|
| D | driver.h | 54 unsigned int min_uV; member 63 .min_uV = _min_uV, \ 150 int (*set_voltage) (struct regulator_dev *, int min_uV, int max_uV, 152 int (*map_voltage)(struct regulator_dev *, int min_uV, int max_uV); 344 unsigned int min_uV; member 516 int min_uV, int max_uV); 518 int min_uV, int max_uV); 520 int min_uV, int max_uV); 522 int min_uV, int max_uV); 524 int min_uV, int max_uV);
|
| D | consumer.h | 149 unsigned long min_uV; member 244 int min_uV, int max_uV); 246 int regulator_set_voltage(struct regulator *regulator, int min_uV, int max_uV); 461 int min_uV, int max_uV) in regulator_set_voltage() argument 478 int min_uV, int max_uV) in regulator_is_supported_voltage() argument 599 int min_uV, int target_uV, in regulator_set_voltage_triplet() argument 605 return regulator_set_voltage(regulator, min_uV, max_uV); in regulator_set_voltage_triplet()
|
| /Linux-v5.4/arch/arm/mach-s3c24xx/ |
| D | mach-gta02.c | 254 .min_uV = 3300000, 263 .min_uV = 1300000, 272 .min_uV = 1800000, 281 .min_uV = 2000000, 290 .min_uV = 3300000, 299 .min_uV = 3300000, 307 .min_uV = 3000000, 315 .min_uV = 3200000, 324 .min_uV = 3000000, 333 .min_uV = 3000000, [all …]
|
| /Linux-v5.4/arch/arm/mach-pxa/ |
| D | stargate2.c | 186 .min_uV = 1800000, 193 .min_uV = 2700000, 200 .min_uV = 1800000, 208 .min_uV = 2700000, 215 .min_uV = 1800000, 222 .min_uV = 2800000, 229 .min_uV = 2800000, 236 .min_uV = 2800000, 243 .min_uV = 2700000, 251 .min_uV = 2692000, [all …]
|
| /Linux-v5.4/arch/arm/mach-imx/ |
| D | mach-mx31ads.c | 258 .min_uV = 1275000, 281 .min_uV = 2800000, 298 .min_uV = 1800000, 315 .min_uV = 1800000, 336 .min_uV = 2800000, 353 .min_uV = 3300000, 367 .min_uV = 1500000, 380 .min_uV = 2500000,
|