Lines Matching refs:uV
51 int regulator_set_value(struct udevice *dev, int uV) in regulator_set_value() argument
55 int ret, old_uV = uV, is_enabled = 0; in regulator_set_value()
58 if (uc_pdata->min_uV != -ENODATA && uV < uc_pdata->min_uV) in regulator_set_value()
60 if (uc_pdata->max_uV != -ENODATA && uV > uc_pdata->max_uV) in regulator_set_value()
71 ret = ops->set_value(dev, uV); in regulator_set_value()
75 regulator_set_value_ramp_delay(dev, old_uV, uV, in regulator_set_value()
82 int regulator_set_suspend_value(struct udevice *dev, int uV) in regulator_set_suspend_value() argument
88 if (uc_pdata->min_uV != -ENODATA && uV < uc_pdata->min_uV) in regulator_set_suspend_value()
90 if (uc_pdata->max_uV != -ENODATA && uV > uc_pdata->max_uV) in regulator_set_suspend_value()
96 return ops->set_suspend_value(dev, uV); in regulator_set_suspend_value()
113 int regulator_set_value_force(struct udevice *dev, int uV) in regulator_set_value_force() argument
120 return ops->set_value(dev, uV); in regulator_set_value_force()
179 int uV = regulator_get_value(dev); in regulator_set_enable() local
181 if (uV > 0) { in regulator_set_enable()
182 regulator_set_value_ramp_delay(dev, 0, uV, in regulator_set_enable()