Lines Matching refs:min_uV
58 int min_uV;
107 int *min_uV, int *max_uV)
109 BUG_ON(*min_uV > *max_uV);
124 if (*min_uV < rdev->constraints->min_uV)
125 *min_uV = rdev->constraints->min_uV;
127 if (*min_uV > *max_uV)
372 return sprintf(buf, "%d\n", rdev->constraints->min_uV);
672 if (constraints->min_uV && constraints->max_uV) {
673 if (constraints->min_uV == constraints->max_uV)
675 constraints->min_uV / 1000);
678 constraints->min_uV / 1000,
682 if (!constraints->min_uV ||
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);
734 rdev->constraints->min_uV, name);
746 int min_uV = INT_MAX;
748 int cmin = constraints->min_uV;
756 constraints->min_uV = cmin;
771 /* initial: [cmin..cmax] valid, [min_uV..max_uV] not */
779 /* maybe adjust [min_uV..max_uV] */
780 if (value >= cmin && value < min_uV)
781 min_uV = value;
786 /* final: [min_uV..max_uV] valid iff constraints valid */
787 if (max_uV < min_uV) {
794 if (constraints->min_uV < min_uV) {
796 __func__, name, "min_uV",
797 constraints->min_uV, min_uV);
798 constraints->min_uV = min_uV;
1540 if (ret < rdev->constraints->min_uV)
1554 * @min_uV: Minimum required voltage in uV.
1560 int min_uV, int max_uV)
1572 if (ret >= min_uV && ret <= max_uV)
1582 * @min_uV: Minimum required 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);
1614 regulator->min_uV = min_uV;
1616 ret = rdev->desc->ops->set_voltage(rdev, min_uV, max_uV);