Home
last modified time | relevance | path

Searched refs:lim_uV (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/regulator/
H A Dmax5970-regulator.c184 static int max597x_set_vp(struct regulator_dev *rdev, int lim_uV, int severity, in max597x_set_vp() argument
211 reg = ADC_MASK * lim_uV / data->mon_rng; in max597x_set_vp()
226 static int max597x_set_uvp(struct regulator_dev *rdev, int lim_uV, int severity, in max597x_set_uvp() argument
235 if ((lim_uV && !enable) || (!lim_uV && enable)) in max597x_set_uvp()
242 return max597x_set_vp(rdev, lim_uV, severity, enable, false); in max597x_set_uvp()
245 static int max597x_set_ovp(struct regulator_dev *rdev, int lim_uV, int severity, in max597x_set_ovp() argument
254 if ((lim_uV && !enable) || (!lim_uV && enable)) in max597x_set_ovp()
261 return max597x_set_vp(rdev, lim_uV, severity, enable, true); in max597x_set_ovp()
H A Dbd9576-regulator.c384 static int bd9576_set_uvp(struct regulator_dev *rdev, int lim_uV, int severity, in bd9576_set_uvp() argument
392 if (!enable || lim_uV) in bd9576_set_uvp()
401 if ((lim_uV && !enable) || (!lim_uV && enable)) in bd9576_set_uvp()
421 reg, mask, lim_uV); in bd9576_set_uvp()
424 static int bd9576_set_ovp(struct regulator_dev *rdev, int lim_uV, int severity, in bd9576_set_ovp() argument
432 if (!enable || lim_uV) in bd9576_set_ovp()
441 if ((lim_uV && !enable) || (!lim_uV && enable)) in bd9576_set_ovp()
461 reg, mask, lim_uV); in bd9576_set_ovp()
H A Dbd718x7-regulator.c438 static int bd718x7_xvp_sanity_check(struct regulator_dev *rdev, int lim_uV, in bd718x7_xvp_sanity_check() argument
455 if (lim_uV) in bd718x7_xvp_sanity_check()
461 static int bd718x7_set_ldo_uvp(struct regulator_dev *rdev, int lim_uV, in bd718x7_set_ldo_uvp() argument
467 ret = bd718x7_xvp_sanity_check(rdev, lim_uV, severity); in bd718x7_set_ldo_uvp()
523 static int bd718x7_set_buck_uvp(struct regulator_dev *rdev, int lim_uV, in bd718x7_set_buck_uvp() argument
528 ret = bd718x7_xvp_sanity_check(rdev, lim_uV, severity); in bd718x7_set_buck_uvp()
543 static int bd718x7_set_buck_ovp(struct regulator_dev *rdev, int lim_uV, in bd718x7_set_buck_ovp() argument
549 ret = bd718x7_xvp_sanity_check(rdev, lim_uV, severity); in bd718x7_set_buck_ovp()
H A Dda9063-regulator.c210 static int da9063_set_xvp(struct regulator_dev *rdev, int lim_uV, int severity, bool enable) in da9063_set_xvp() argument
215 dev_dbg(dev, "%s: lim: %d, sev: %d, en: %d\n", regl->desc.name, lim_uV, severity, enable); in da9063_set_xvp()
222 if (lim_uV) in da9063_set_xvp()