/kernel/linux/linux-5.10/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 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 145 if (!regulator_is_supported_voltage(regulator, min_uV, max_uV)) in mmc_regulator_set_voltage_if_supported() 157 max_uV); in mmc_regulator_set_voltage_if_supported() 182 int ret, volt, min_uV, max_uV; in mmc_regulator_set_vqmmc() local [all …]
|
/kernel/linux/linux-5.10/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, 77 int *min_uV, int *max_uV, in regulator_check_consumers() argument 83 int *min_uV, int *max_uV) in regulator_check_voltage() argument 92 int min_uV, int max_uV, in regulator_set_voltage_rdev() argument
|
D | consumer.h | 152 unsigned long max_uV; member 246 int min_uV, int max_uV); 248 int regulator_set_voltage(struct regulator *regulator, int min_uV, int max_uV); 288 int max_uV, suspend_state_t state); 473 int min_uV, int max_uV) in regulator_set_voltage() argument 490 int min_uV, int max_uV) in regulator_is_supported_voltage() argument 617 int max_uV) in regulator_set_voltage_triplet() argument 619 if (regulator_set_voltage(regulator, target_uV, max_uV) == 0) in regulator_set_voltage_triplet() 622 return regulator_set_voltage(regulator, min_uV, max_uV); in regulator_set_voltage_triplet()
|
D | driver.h | 133 int (*set_voltage) (struct regulator_dev *, int min_uV, int max_uV, 135 int (*map_voltage)(struct regulator_dev *, int min_uV, int max_uV); 504 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);
|
D | machine.h | 80 int max_uV; member 145 int max_uV; member
|
/kernel/linux/linux-5.10/arch/arm/mach-s3c/ |
D | mach-gta02.c | 254 .max_uV = 3300000, 263 .max_uV = 1600000, 272 .max_uV = 1800000, 281 .max_uV = 3300000, 290 .max_uV = 3300000, 299 .max_uV = 3300000, 307 .max_uV = 3000000, 315 .max_uV = 3200000, 324 .max_uV = 3000000, 333 .max_uV = 3000000, [all …]
|
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,
|
/kernel/linux/linux-5.10/drivers/regulator/ |
D | ab8500-ext.c | 311 .max_uV = 3300000, 325 .max_uV = 3300000, 341 .max_uV = 3300000, 401 .max_uV = 1350000, 439 .max_uV = 1800000, 450 .max_uV = 1360000, 458 .max_uV = 3400000, 682 int max_uV, unsigned *selector) in ab8500_ext_set_voltage() argument 692 regu_constraints->max_uV == max_uV) in ab8500_ext_set_voltage() 697 min_uV, max_uV, in ab8500_ext_set_voltage() [all …]
|
D | core.c | 102 int min_uV, int max_uV); 431 int *min_uV, int *max_uV) in regulator_check_voltage() argument 433 BUG_ON(*min_uV > *max_uV); in regulator_check_voltage() 440 if (*max_uV > rdev->constraints->max_uV) in regulator_check_voltage() 441 *max_uV = rdev->constraints->max_uV; in regulator_check_voltage() 445 if (*min_uV > *max_uV) { in regulator_check_voltage() 447 *min_uV, *max_uV); in regulator_check_voltage() 464 int *min_uV, int *max_uV, in regulator_check_consumers() argument 476 if (!voltage->min_uV && !voltage->max_uV) in regulator_check_consumers() 479 if (*max_uV > voltage->max_uV) in regulator_check_consumers() [all …]
|
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()
|
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 …]
|
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 368 if (min_uV <= rdev->desc->min_uV && rdev->desc->min_uV <= max_uV) in regulator_map_voltage_linear() 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() [all …]
|
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,\
|
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 …]
|
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()
|
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()
|
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()
|
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()
|
D | qcom_spmi-regulator.c | 353 int max_uV; member 435 .max_uV = _max_uV, \ 606 int min_uV, int max_uV) in spmi_regulator_select_voltage() argument 618 if (uV < lim_min_uV && max_uV >= lim_min_uV) in spmi_regulator_select_voltage() 624 min_uV, max_uV, lim_min_uV, lim_max_uV); in spmi_regulator_select_voltage() 645 if (uV > max_uV) { in spmi_regulator_select_voltage() 649 min_uV, max_uV, uV); in spmi_regulator_select_voltage() 743 int min_uV, int max_uV) in spmi_regulator_select_voltage_same_range() argument 753 if (uV < range->min_uV && max_uV >= range->min_uV) in spmi_regulator_select_voltage_same_range() 756 if (uV < range->min_uV || uV > range->max_uV) { in spmi_regulator_select_voltage_same_range() [all …]
|
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()
|
/kernel/linux/linux-5.10/arch/arm/mach-pxa/ |
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 …]
|
D | z2.c | 638 .max_uV = 1600000, 648 .max_uV = 3300000, 655 .max_uV = 1800000, 662 .max_uV = 3150000, 669 .max_uV = 3300000,
|
/kernel/linux/linux-5.10/drivers/soc/qcom/ |
D | cpr.c | 142 int max_uV; member 203 int max_uV; member 215 int max_uV; member 321 if (cpr_is_allowed(drv) && corner->max_uV > corner->min_uV) in cpr_ctl_enable() 495 if (last_uV >= corner->max_uV) { in cpr_scale() 515 new_uV = min(new_uV, corner->max_uV); in cpr_scale() 912 fdata->max_uV = roundup(fdata->max_uV, step_volt); in cpr_fuse_corner_init() 921 fuse->max_uV = fdata->max_uV; in cpr_fuse_corner_init() 922 fuse->uV = clamp(uV, fuse->min_uV, fuse->max_uV); in cpr_fuse_corner_init() 931 end->max_uV = max(end->max_uV, end->uV); in cpr_fuse_corner_init() [all …]
|
/kernel/linux/linux-5.10/arch/arm/mach-davinci/ |
D | board-mityomapl138.c | 264 .max_uV = 1350000, 276 .max_uV = 1800000, 287 .max_uV = 1200000, 298 .max_uV = 1800000, 309 .max_uV = 3300000,
|
/kernel/linux/linux-5.10/drivers/scsi/ufs/ |
D | ufshcd-pltfrm.c | 141 vreg->max_uV = UFS_VREG_VCC_1P8_MAX_UV; in ufshcd_populate_vreg() 144 vreg->max_uV = UFS_VREG_VCC_MAX_UV; in ufshcd_populate_vreg() 148 vreg->max_uV = UFS_VREG_VCCQ_MAX_UV; in ufshcd_populate_vreg() 151 vreg->max_uV = UFS_VREG_VCCQ2_MAX_UV; in ufshcd_populate_vreg()
|