/linux/drivers/mmc/core/ |
A D | regulator.c | 43 *max_uV = 1950 * 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() 137 int max_uV) in mmc_regulator_set_voltage_if_supported() argument 157 max_uV); in mmc_regulator_set_voltage_if_supported() 182 int ret, volt, min_uV, max_uV; in mmc_regulator_set_vqmmc() local 201 __func__, volt, max_uV); in mmc_regulator_set_vqmmc() 204 max_uV = min(max_uV + 200000, 3600000); in mmc_regulator_set_vqmmc() [all …]
|
/linux/include/linux/regulator/ |
A D | coupler.h | 56 int *min_uV, int *max_uV, 59 int *min_uV, int *max_uV); 62 int min_uV, int max_uV, 72 int *min_uV, int *max_uV, in regulator_check_consumers() argument 78 int *min_uV, int *max_uV) in regulator_check_voltage() argument 87 int min_uV, int max_uV, in regulator_set_voltage_rdev() argument
|
A D | consumer.h | 166 unsigned long max_uV; member 255 int min_uV, int max_uV); 257 int regulator_set_voltage(struct regulator *regulator, int min_uV, int max_uV); 297 int max_uV, suspend_state_t state); 478 int min_uV, int max_uV) in regulator_set_voltage() argument 500 int min_uV, int max_uV) in regulator_is_supported_voltage() argument 604 int min_uV, int max_uV, in regulator_set_suspend_voltage() argument 646 int max_uV) in regulator_set_voltage_triplet() argument 648 if (regulator_set_voltage(regulator, target_uV, max_uV) == 0) in regulator_set_voltage_triplet() 651 return regulator_set_voltage(regulator, min_uV, max_uV); in regulator_set_voltage_triplet()
|
A D | driver.h | 159 int (*set_voltage) (struct regulator_dev *, int min_uV, int max_uV, 161 int (*map_voltage)(struct regulator_dev *, int min_uV, int max_uV); 687 int min_uV, int max_uV); 689 int min_uV, int max_uV); 691 int min_uV, int max_uV); 693 int min_uV, int max_uV); 695 int min_uV, int max_uV);
|
A D | machine.h | 80 int max_uV; member 163 int max_uV; member
|
/linux/arch/arm/mach-s3c/ |
A D | mach-gta02.c | 253 .max_uV = 3300000, 262 .max_uV = 1600000, 271 .max_uV = 1800000, 280 .max_uV = 3300000, 289 .max_uV = 3300000, 298 .max_uV = 3300000, 306 .max_uV = 3000000, 314 .max_uV = 3200000, 323 .max_uV = 3000000, 332 .max_uV = 3000000, [all …]
|
A D | mach-smdk6410.c | 298 .max_uV = 1300000, 311 .max_uV = 1200000, 404 .max_uV = 1200000, 415 .max_uV = 1800000, 435 .max_uV = 3000000, 447 .max_uV = 1200000,
|
/linux/drivers/regulator/ |
A D | core.c | 431 *max_uV = rdev->constraints->max_uV; in regulator_check_voltage() 469 if (*max_uV > voltage->max_uV) in regulator_check_consumers() 470 *max_uV = voltage->max_uV; in regulator_check_consumers() 1259 constraints->max_uV, max_uV); in machine_constraints_voltage() 1260 constraints->max_uV = max_uV; in machine_constraints_voltage() 3335 data.max_uV = max_uV; in _regulator_call_set_voltage() 3583 if (max_uV > rstate->max_uV) in _regulator_do_set_suspend_voltage() 3584 max_uV = rstate->max_uV; in _regulator_do_set_suspend_voltage() 3622 voltage->max_uV = max_uV; in regulator_set_voltage_unlocked() 3643 voltage->max_uV = max_uV; in regulator_set_voltage_unlocked() [all …]
|
A D | ab8500-ext.c | 53 .max_uV = 1800000, 64 .max_uV = 1360000, 72 .max_uV = 3400000, 287 int max_uV, unsigned *selector) in ab8500_ext_set_voltage() argument 297 regu_constraints->max_uV == max_uV) in ab8500_ext_set_voltage() 302 min_uV, max_uV, in ab8500_ext_set_voltage() 303 regu_constraints->min_uV, regu_constraints->max_uV); in ab8500_ext_set_voltage() 318 if (regu_constraints->min_uV && regu_constraints->max_uV) { in ab8500_ext_list_voltage() 319 if (regu_constraints->min_uV == regu_constraints->max_uV) in ab8500_ext_list_voltage()
|
A D | virtual.c | 22 int max_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() 137 return sprintf(buf, "%d\n", data->max_uV); in show_max_uV() 151 data->max_uV = val; in set_max_uV()
|
A D | vctrl-regulator.c | 23 int max_uV; member 55 (ctrl->max_uV - ctrl->min_uV), in vctrl_calc_ctrl_voltage() 56 out->max_uV - out->min_uV); in vctrl_calc_ctrl_voltage() 72 if (ctrl_uV > ctrl->max_uV) in vctrl_calc_output_voltage() 73 return out->max_uV; in vctrl_calc_output_voltage() 77 (out->max_uV - out->min_uV), in vctrl_calc_output_voltage() 78 ctrl->max_uV - ctrl->min_uV); in vctrl_calc_output_voltage() 295 vctrl->vrange.out.max_uV = pval; in vctrl_parse_dt() 312 vctrl->vrange.ctrl.max_uV = vrange_ctrl[1]; in vctrl_parse_dt() 344 ctrl_uV > vrange_ctrl->max_uV) in vctrl_init_vtable() [all …]
|
A D | helpers.c | 293 int min_uV, int max_uV) in regulator_map_voltage_iterate() argument 307 if (ret < best_val && ret >= min_uV && ret <= max_uV) { in regulator_map_voltage_iterate() 331 int min_uV, int max_uV) in regulator_map_voltage_ascend() argument 340 if (ret > max_uV) in regulator_map_voltage_ascend() 343 if (ret >= min_uV && ret <= max_uV) in regulator_map_voltage_ascend() 362 int min_uV, int max_uV) in regulator_map_voltage_linear() argument 390 if (voltage < min_uV || voltage > max_uV) in regulator_map_voltage_linear() 408 int min_uV, int max_uV) in regulator_map_voltage_linear_range() argument 435 if (voltage >= min_uV && voltage <= max_uV) in regulator_map_voltage_linear_range() 457 int min_uV, int max_uV) in regulator_map_voltage_pickable_linear_range() argument [all …]
|
A D | da9052-regulator.c | 64 int max_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() 168 if (volt_uV > info->max_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() 303 .max_uV = (max) * 1000,\ 325 .max_uV = (max) * 1000,\
|
A D | da903x-regulator.c | 75 int max_uV; member 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() 221 volt = (info->max_uV + rdev->desc->min_uV) / 2 + in da9030_list_ldo14_voltage() 224 if (volt > info->max_uV) in da9030_list_ldo14_voltage() 321 .max_uV = (max) * 1000, \ [all …]
|
A D | pwm-regulator.c | 152 int max_uV = rdev->constraints->max_uV; in pwm_regulator_get_voltage() local 153 int diff_uV = max_uV - min_uV; in pwm_regulator_get_voltage() 189 int max_uV = rdev->constraints->max_uV; in pwm_regulator_set_voltage() local 190 int diff_uV = max_uV - min_uV; in pwm_regulator_set_voltage()
|
A D | pv88090-regulator.c | 47 int max_uV; member 74 .max_uV = 1393750, 80 .max_uV = 2193750, 85 .max_uV = 2837500, 365 = ((pv88090_buck_vol[index].max_uV) in pv88090_i2c_probe()
|
A D | qcom_spmi-regulator.c | 354 int max_uV; member 436 .max_uV = _max_uV, \ 611 int min_uV, int max_uV) in spmi_regulator_select_voltage() argument 623 if (uV < lim_min_uV && max_uV >= lim_min_uV) in spmi_regulator_select_voltage() 629 min_uV, max_uV, lim_min_uV, lim_max_uV); in spmi_regulator_select_voltage() 650 if (uV > max_uV) { in spmi_regulator_select_voltage() 654 min_uV, max_uV, uV); in spmi_regulator_select_voltage() 748 int min_uV, int max_uV) in spmi_regulator_select_voltage_same_range() argument 773 if (uV > max_uV) { in spmi_regulator_select_voltage_same_range() 804 int min_uV, int max_uV) in spmi_regulator_common_map_voltage() argument [all …]
|
A D | mc13xxx-regulator-core.c | 113 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()
|
A D | vexpress-regulator.c | 26 int min_uV, int max_uV, unsigned *selector) in vexpress_regulator_set_voltage() argument 67 if (init_data->constraints.min_uV && init_data->constraints.max_uV) in vexpress_regulator_probe()
|
A D | max1586.c | 34 unsigned int max_uV; member 244 max1586->max_uV = MAX1586_V3_MAX_UV / 1000 * pdata->v3_gain / 1000; in max1586_pmic_probe() 264 (max1586->max_uV - max1586->min_uV) / in max1586_pmic_probe()
|
A D | max8997-regulator.c | 397 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()
|
/linux/arch/arm/mach-pxa/ |
A D | stargate2.c | 187 .max_uV = 1800000, 194 .max_uV = 3000000, 201 .max_uV = 1800000, 209 .max_uV = 3300000, 216 .max_uV = 1800000, 223 .max_uV = 2800000, 230 .max_uV = 2800000, 237 .max_uV = 2800000, 244 .max_uV = 3300000, 252 .max_uV = 3300000, [all …]
|
A D | z2.c | 652 .max_uV = 1600000, 662 .max_uV = 3300000, 669 .max_uV = 1800000, 676 .max_uV = 3150000, 683 .max_uV = 3300000,
|
/linux/drivers/soc/qcom/ |
A D | cpr.c | 142 int max_uV; member 203 int max_uV; member 215 int max_uV; member 879 fdata->max_uV = roundup(fdata->max_uV, step_volt); in cpr_fuse_corner_init() 888 fuse->max_uV = fdata->max_uV; in cpr_fuse_corner_init() 898 end->max_uV = max(end->max_uV, end->uV); in cpr_fuse_corner_init() 943 fuse->max_uV, i); in cpr_fuse_corner_init() 1208 corner->max_uV = fuse->max_uV; in cpr_corner_init() 1367 .max_uV = 1224000, 1380 .max_uV = 1288000, [all …]
|
/linux/arch/arm/mach-davinci/ |
A D | board-mityomapl138.c | 268 .max_uV = 1350000, 280 .max_uV = 1800000, 291 .max_uV = 1200000, 302 .max_uV = 1800000, 313 .max_uV = 3300000,
|