| /linux/drivers/soc/rockchip/ |
| A D | io-domain.c | 89 u32 is_3v3 = uV > MAX_VOLTAGE_1_8; in rk3568_iodomain_write() 128 int uV) in rockchip_iodomain_write() argument 154 int uV; in rockchip_iodomain_notify() local 176 uV = (unsigned long)data; in rockchip_iodomain_notify() 183 if (uV > MAX_VOLTAGE_3_3) { in rockchip_iodomain_notify() 654 int uV; in rockchip_iodomain_probe() local 676 if (uV < 0) { in rockchip_iodomain_probe() 679 ret = uV; in rockchip_iodomain_probe() 683 if (uV > MAX_VOLTAGE_3_3) { in rockchip_iodomain_probe() 686 uV); in rockchip_iodomain_probe() [all …]
|
| /linux/drivers/regulator/ |
| A D | qcom_rpm-regulator.c | 58 int uV; member 213 int uV; in rpm_reg_set_mV_sel() local 219 if (uV < 0) in rpm_reg_set_mV_sel() 220 return uV; in rpm_reg_set_mV_sel() 227 vreg->uV = uV; in rpm_reg_set_mV_sel() 240 int uV; in rpm_reg_set_uV_sel() local 246 if (uV < 0) in rpm_reg_set_uV_sel() 247 return uV; in rpm_reg_set_uV_sel() 251 ret = rpm_reg_write(vreg, req, uV); in rpm_reg_set_uV_sel() 254 vreg->uV = uV; in rpm_reg_set_uV_sel() [all …]
|
| A D | sun20i-regulator.c | 26 unsigned int fraction, uV; in sun20i_d1_system_ldo_list_voltage() local 31 uV = desc->min_uV + (desc->uV_step * selector); in sun20i_d1_system_ldo_list_voltage() 34 if (uV > 1606667) in sun20i_d1_system_ldo_list_voltage() 35 uV += 6667; in sun20i_d1_system_ldo_list_voltage() 40 return uV + (fraction / 3); in sun20i_d1_system_ldo_list_voltage()
|
| A D | ltc3676.c | 73 static int ltc3676_set_suspend_voltage(struct regulator_dev *rdev, int uV) in ltc3676_set_suspend_voltage() argument 80 dev_dbg(dev, "%s id=%d uV=%d\n", __func__, dcdc, uV); in ltc3676_set_suspend_voltage() 81 sel = regulator_map_voltage_linear(rdev, uV, uV); in ltc3676_set_suspend_voltage() 135 static inline unsigned int ltc3676_scale(unsigned int uV, u32 r1, u32 r2) in ltc3676_scale() argument 138 if (uV == 0) in ltc3676_scale() 140 tmp = (uint64_t)uV * r1; in ltc3676_scale() 142 return uV + (unsigned int)tmp; in ltc3676_scale()
|
| A D | qcom_spmi-regulator.c | 670 int uV = min_uV; in spmi_regulator_select_voltage() local 680 uV = lim_min_uV; in spmi_regulator_select_voltage() 682 if (uV < lim_min_uV || uV > lim_max_uV) { in spmi_regulator_select_voltage() 706 if (uV > max_uV) { in spmi_regulator_select_voltage() 807 int uV = min_uV; in spmi_regulator_select_voltage_same_range() local 817 if (uV < range->min_uV || uV > range->max_uV) { in spmi_regulator_select_voltage_same_range() 826 uV = DIV_ROUND_UP(uV - range->min_uV, range->step_uV); in spmi_regulator_select_voltage_same_range() 827 uV = uV * range->step_uV + range->min_uV; in spmi_regulator_select_voltage_same_range() 937 int uV; in spmi_regulator_ftsmps426_get_voltage() local 1028 int uV = 0; in spmi_regulator_common_list_voltage() local [all …]
|
| A D | vexpress-regulator.c | 20 unsigned int uV; in vexpress_regulator_get_voltage() local 21 int err = regmap_read(regdev->regmap, 0, &uV); in vexpress_regulator_get_voltage() 23 return err ? err : uV; in vexpress_regulator_get_voltage()
|
| A D | ltc3589.c | 97 static int ltc3589_set_suspend_voltage(struct regulator_dev *rdev, int uV) in ltc3589_set_suspend_voltage() argument 102 sel = regulator_map_voltage_linear(rdev, uV, uV); in ltc3589_set_suspend_voltage() 163 static inline unsigned int ltc3589_scale(unsigned int uV, u32 r1, u32 r2) in ltc3589_scale() argument 167 if (uV == 0) in ltc3589_scale() 170 tmp = (uint64_t)uV * r1; in ltc3589_scale() 172 return uV + (unsigned int)tmp; in ltc3589_scale()
|
| A D | pf8x00-regulator.c | 302 static int pf8x00_set_suspend_voltage(struct regulator_dev *rdev, int uV) in pf8x00_set_suspend_voltage() argument 307 if (regl->suspend_voltage_cache == uV) in pf8x00_set_suspend_voltage() 310 ret = regulator_map_voltage_iterate(rdev, uV, uV); in pf8x00_set_suspend_voltage() 312 dev_err(rdev_get_dev(rdev), "failed to map %i uV\n", uV); in pf8x00_set_suspend_voltage() 317 uV, regl->suspend_voltage_reg, regl->desc.vsel_mask, ret); in pf8x00_set_suspend_voltage() 321 dev_err(rdev_get_dev(rdev), "failed to set %i uV\n", uV); in pf8x00_set_suspend_voltage() 325 regl->suspend_voltage_cache = uV; in pf8x00_set_suspend_voltage()
|
| A D | vctrl-regulator.c | 100 int uV; in vctrl_set_voltage() local 107 uV = vctrl_calc_output_voltage(vctrl, orig_ctrl_uV); in vctrl_set_voltage() 109 if (req_min_uV >= uV || !vctrl->ovp_threshold) in vctrl_set_voltage() 116 while (uV > req_min_uV) { in vctrl_set_voltage() 117 int max_drop_uV = (uV * vctrl->ovp_threshold) / 100; in vctrl_set_voltage() 126 next_uV = max_t(int, req_min_uV, uV - max_drop_uV); in vctrl_set_voltage() 136 delay = DIV_ROUND_UP(uV - next_uV, vctrl->min_slew_down_rate); in vctrl_set_voltage() 139 uV = next_uV; in vctrl_set_voltage()
|
| A D | wm831x-ldo.c | 66 int uV) in wm831x_gp_ldo_set_suspend_voltage() argument 72 sel = regulator_map_voltage_linear_range(rdev, uV, uV); in wm831x_gp_ldo_set_suspend_voltage() 320 int uV) in wm831x_aldo_set_suspend_voltage() argument 326 sel = regulator_map_voltage_linear_range(rdev, uV, uV); in wm831x_aldo_set_suspend_voltage() 527 int uV) in wm831x_alive_ldo_set_suspend_voltage() argument 533 sel = regulator_map_voltage_linear(rdev, uV, uV); in wm831x_alive_ldo_set_suspend_voltage()
|
| A D | max8925-regulator.c | 102 static int max8925_set_dvm_voltage(struct regulator_dev *rdev, int uV) in max8925_set_dvm_voltage() argument 107 if (uV < SD1_DVM_VMIN || uV > SD1_DVM_VMAX) in max8925_set_dvm_voltage() 110 data = DIV_ROUND_UP(uV - SD1_DVM_VMIN, SD1_DVM_STEP); in max8925_set_dvm_voltage()
|
| A D | rt5739.c | 98 static int rt5739_set_suspend_voltage(struct regulator_dev *rdev, int uV) in rt5739_set_suspend_voltage() argument 107 if (uV < desc->min_uV || uV > max_uV) in rt5739_set_suspend_voltage() 115 vsel = (uV - desc->min_uV) / desc->uV_step; in rt5739_set_suspend_voltage()
|
| A D | qcom-pm8008-regulator.c | 88 unsigned int uV; in pm8008_regulator_get_voltage_sel() local 97 uV = le16_to_cpu(val) * 1000; in pm8008_regulator_get_voltage_sel() 99 return (uV - preg->desc.min_uV) / preg->desc.uV_step; in pm8008_regulator_get_voltage_sel()
|
| /linux/Documentation/ABI/testing/ |
| A D | sysfs-bus-iio-adc-mt6360 | 6 Calculating with scale and offset returns voltage in uV 14 Calculating with scale and offset returns voltage in uV 22 Calculating with scale and offset returns voltage in uV 29 Calculating with scale and offset returns voltage in uV 36 Calculating with scale and offset returns voltage in uV 57 Calculating with scale and offset returns voltage in uV 71 Calculating with scale and offset returns voltage in uV 78 Calculating with scale and offset returns voltage in uV
|
| /linux/drivers/pmdomain/qcom/ |
| A D | cpr.c | 204 int uV; member 216 int uV; member 778 new_uV = corner->uV; in cpr_set_performance_state() 852 int uV; in cpr_fuse_corner_init() local 879 if (uV < 0) in cpr_fuse_corner_init() 880 return uV; in cpr_fuse_corner_init() 884 fuse->uV = clamp(uV, fuse->min_uV, fuse->max_uV); in cpr_fuse_corner_init() 995 uV_high = fuse->uV; in cpr_interpolate() 1005 return corner->uV; in cpr_interpolate() 1175 corner->uV = fuse->uV; in cpr_corner_init() [all …]
|
| /linux/sound/soc/atmel/ |
| A D | tse850-pcm5142.c | 192 unsigned int uV = ucontrol->value.enumerated.item[0]; in tse850_put_ana() local 195 if (uV >= e->items) in tse850_put_ana() 207 if (uV) in tse850_put_ana() 208 uV = 11000000 + (1000000 * uV); in tse850_put_ana() 210 uV = 2000000; in tse850_put_ana() 212 ret = regulator_set_voltage(tse850->ana, uV, uV); in tse850_put_ana()
|
| /linux/Documentation/devicetree/bindings/opp/ |
| A D | opp-v2-qcom-level.yaml | 31 corner/level. A fuse corner/level contains e.g. ref uV, min uV, 32 and max uV.
|
| /linux/Documentation/devicetree/bindings/power/supply/ |
| A D | richtek,rt9455.yaml | 37 description: maximum battery voltage in uV. 42 maximum voltage provided to consumer devices, when the charger is in boost mode, in uV. 47 input voltage level in uV, used to decrease voltage level when the over current of the 49 current provided by the power source. Defaults to 4500000 uV (4.5V).
|
| A D | maxim,max77693.yaml | 25 Battery constant voltage in uV. The charger will operate in fast 37 Minimal system voltage in uV. 61 Threshold voltage in uV for triggering input voltage regulation loop.
|
| /linux/arch/arm/boot/dts/nxp/imx/ |
| A D | imx6q.dtsi | 25 /* kHz uV */ 33 /* ARM kHz SOC-PU uV */ 62 /* kHz uV */ 70 /* ARM kHz SOC-PU uV */ 97 /* kHz uV */ 105 /* ARM kHz SOC-PU uV */ 132 /* kHz uV */ 140 /* ARM kHz SOC-PU uV */
|
| A D | imx6dl-sabreauto.dts | 17 /* kHz uV */ 23 /* ARM kHz SOC-PU uV */
|
| A D | imx6q-cm-fx6.dts | 185 /* kHz uV */ 192 /* ARM kHz SOC-PU uV */ 207 /* kHz uV */ 214 /* ARM kHz SOC-PU uV */ 229 /* kHz uV */ 236 /* ARM kHz SOC-PU uV */ 251 /* kHz uV */ 258 /* ARM kHz SOC-PU uV */
|
| /linux/Documentation/devicetree/bindings/regulator/ |
| A D | rohm,bd71828-regulator.yaml | 53 PMIC default "RUN" state voltage in uV. See below table for 61 PMIC default "IDLE" state voltage in uV. See below table for 69 PMIC default "SUSPEND" state voltage in uV. See below table for 77 PMIC default "LPSR" state voltage in uV. See below table for
|
| /linux/Documentation/devicetree/bindings/phy/ |
| A D | apm-xgene-phy.txt | 33 Range is between 0 to 199500 in unit of uV. 34 Default is 199500 uV. 38 uV. Default is 0. 41 speed on the host. Range is 0 to 127400 in unit uV.
|
| /linux/arch/arm/boot/dts/ti/omap/ |
| A D | omap4460.dtsi | 14 /* kHz uV */ 51 /*uV ABB efuse rbb_m fbb_m vset_m*/ 69 /*uV ABB efuse rbb_m fbb_m vset_m*/
|