/drivers/regulator/ |
D | core.c | 109 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() 225 if (*max_uV > rdev->constraints->max_uV) in regulator_check_voltage() 226 *max_uV = rdev->constraints->max_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() 255 if (*max_uV > regulator->max_uV) in regulator_check_consumers() [all …]
|
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 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 …]
|
D | ab8500-ext.c | 312 .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 …]
|
D | virtual.c | 26 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()
|
D | vctrl-regulator.c | 28 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 …]
|
D | da9052-regulator.c | 72 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,\
|
D | da903x.c | 79 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 …]
|
D | pwm-regulator.c | 158 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()
|
D | qcom_spmi-regulator.c | 287 int max_uV; member 369 .max_uV = _max_uV, \ 536 int min_uV, int max_uV) in spmi_regulator_select_voltage() argument 548 if (uV < lim_min_uV && max_uV >= lim_min_uV) in spmi_regulator_select_voltage() 554 min_uV, max_uV, lim_min_uV, lim_max_uV); in spmi_regulator_select_voltage() 575 if (uV > max_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 656 if (uV < range->min_uV && max_uV >= range->min_uV) in spmi_regulator_select_voltage_same_range() 659 if (uV < range->min_uV || uV > range->max_uV) { in spmi_regulator_select_voltage_same_range() [all …]
|
D | pv88090-regulator.c | 61 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()
|
D | mc13xxx-regulator-core.c | 117 int max_uV, unsigned *selector) in mc13xxx_fixed_regulator_set_voltage() argument 122 __func__, id, min_uV, max_uV); in mc13xxx_fixed_regulator_set_voltage() 125 rdev->desc->volt_table[0] <= max_uV) { in mc13xxx_fixed_regulator_set_voltage()
|
D | vexpress-regulator.c | 42 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()
|
D | max1586.c | 47 unsigned int max_uV; member 255 max1586->max_uV = MAX1586_V3_MAX_UV / 1000 * pdata->v3_gain / 1000; in max1586_pmic_probe() 275 (max1586->max_uV - max1586->min_uV) / in max1586_pmic_probe()
|
D | max8997-regulator.c | 412 int min_uV, int max_uV, unsigned *selector) in max8997_set_voltage_charger_cv() argument 428 if (max_uV < 4000000 || min_uV > 4350000) in max8997_set_voltage_charger_cv() 433 else if (min_uV <= 4200000 && max_uV >= 4200000) in max8997_set_voltage_charger_cv() 437 ub = (max_uV - 4000000) / 20000 + 1; in max8997_set_voltage_charger_cv() 464 int min_uV, int max_uV, unsigned *selector) in max8997_set_voltage_ldobuck() argument 491 i = max8997_get_voltage_proper_val(desc, min_uV, max_uV); in max8997_set_voltage_ldobuck() 631 int min_uV, int max_uV, unsigned *selector) in max8997_set_voltage_buck() argument 658 return max8997_set_voltage_ldobuck(rdev, min_uV, max_uV, in max8997_set_voltage_buck() 662 new_val = max8997_get_voltage_proper_val(desc, min_uV, max_uV); in max8997_set_voltage_buck()
|
D | arizona-ldo1.c | 55 int min_uV, int max_uV) in arizona_ldo1_hc_map_voltage() argument 167 .max_uV = 1800000, 184 .max_uV = 1200000,
|
D | of_regulator.c | 44 constraints->max_uV = pval; in of_get_regulation_constraints() 47 if (constraints->min_uV != constraints->max_uV) in of_get_regulation_constraints() 51 if (constraints->min_uV && constraints->max_uV) in of_get_regulation_constraints()
|
D | ti-abb-regulator.c | 504 int num_entries, min_uV = INT_MAX, max_uV = 0; in ti_abb_init_table() local 567 if (max_uV < *volt_table) in ti_abb_init_table() 568 max_uV = *volt_table; in ti_abb_init_table() 617 c->max_uV = max_uV; in ti_abb_init_table()
|
D | pv88080-regulator.c | 68 int max_uV; member 116 .max_uV = 1393750, 121 .max_uV = 2193750, 562 ((pv88080_buck_vol[conf2].max_uV * (conf5+1)) in pv88080_i2c_probe()
|
D | internal.h | 31 int max_uV; member
|
D | arizona-micsupp.c | 190 .max_uV = 3300000, 202 .max_uV = 3300000,
|
D | twl6030-regulator.c | 240 int max_uV, unsigned *selector) in twl6030coresmps_set_voltage() argument 412 int max_uV) in twl6030smps_map_voltage() argument 465 } else if ((min_uV >= 1852000) && (max_uV <= 4013600)) { in twl6030smps_map_voltage()
|
/drivers/scsi/ufs/ |
D | ufshcd-pltfrm.c | 171 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()
|
/drivers/mmc/core/ |
D | core.c | 1214 static int mmc_ocrbitnum_to_vdd(int vdd_bit, int *min_uV, int *max_uV) in mmc_ocrbitnum_to_vdd() argument 1230 *max_uV = 1950 * 1000; in mmc_ocrbitnum_to_vdd() 1233 *max_uV = *min_uV + 100 * 1000; in mmc_ocrbitnum_to_vdd() 1299 int min_uV, max_uV; in mmc_regulator_set_ocr() local 1302 mmc_ocrbitnum_to_vdd(vdd_bit, &min_uV, &max_uV); in mmc_regulator_set_ocr() 1304 result = regulator_set_voltage(supply, min_uV, max_uV); in mmc_regulator_set_ocr() 1325 int max_uV) in mmc_regulator_set_voltage_if_supported() argument 1331 if (!regulator_is_supported_voltage(regulator, min_uV, max_uV)) in mmc_regulator_set_voltage_if_supported() 1335 max_uV); in mmc_regulator_set_voltage_if_supported() 1358 int ret, volt, min_uV, max_uV; in mmc_regulator_set_vqmmc() local [all …]
|
/drivers/phy/qualcomm/ |
D | phy-qcom-ufs.c | 248 vreg->max_uV = VDDA_PLL_MAX_UV; in ufs_qcom_phy_init_vreg() 251 vreg->max_uV = VDDA_PHY_MAX_UV; in ufs_qcom_phy_init_vreg() 254 vreg->max_uV = VDDP_REF_CLK_MAX_UV; in ufs_qcom_phy_init_vreg() 296 ret = regulator_set_voltage(reg, min_uV, vreg->max_uV); in ufs_qcom_phy_cfg_vreg()
|
D | phy-qcom-ufs-i.h | 78 int max_uV; member
|