Lines Matching refs:max_uV
59 int max_uV;
107 int *min_uV, int *max_uV)
109 BUG_ON(*min_uV > *max_uV);
122 if (*max_uV > rdev->constraints->max_uV)
123 *max_uV = rdev->constraints->max_uV;
127 if (*min_uV > *max_uV)
384 return sprintf(buf, "%d\n", rdev->constraints->max_uV);
672 if (constraints->min_uV && constraints->max_uV) {
673 if (constraints->min_uV == constraints->max_uV)
679 constraints->max_uV / 1000);
683 constraints->min_uV != constraints->max_uV) {
727 rdev->constraints->min_uV == rdev->constraints->max_uV &&
730 rdev->constraints->min_uV, rdev->constraints->max_uV);
747 int max_uV = INT_MIN;
749 int cmax = constraints->max_uV;
757 constraints->max_uV = cmax;
771 /* initial: [cmin..cmax] valid, [min_uV..max_uV] not */
779 /* maybe adjust [min_uV..max_uV] */
782 if (value <= cmax && value > max_uV)
783 max_uV = value;
786 /* final: [min_uV..max_uV] valid iff constraints valid */
787 if (max_uV < min_uV) {
800 if (constraints->max_uV > max_uV) {
802 __func__, name, "max_uV",
803 constraints->max_uV, max_uV);
804 constraints->max_uV = max_uV;
1542 else if (ret > rdev->constraints->max_uV)
1555 * @max_uV: Maximum required voltage in uV.
1560 int min_uV, int max_uV)
1572 if (ret >= min_uV && ret <= max_uV)
1583 * @max_uV: Maximum acceptable voltage in uV
1597 int regulator_set_voltage(struct regulator *regulator, int min_uV, int max_uV)
1611 ret = regulator_check_voltage(rdev, &min_uV, &max_uV);
1615 regulator->max_uV = max_uV;
1616 ret = rdev->desc->ops->set_voltage(rdev, min_uV, max_uV);