Lines Matching defs:min_uV
91 int min_uV, int max_uV);
421 int *min_uV, int *max_uV)
423 BUG_ON(*min_uV > *max_uV);
432 if (*min_uV < rdev->constraints->min_uV)
433 *min_uV = rdev->constraints->min_uV;
435 if (*min_uV > *max_uV) {
437 *min_uV, *max_uV);
454 int *min_uV, int *max_uV,
466 if (!voltage->min_uV && !voltage->max_uV)
471 if (*min_uV < voltage->min_uV)
472 *min_uV = voltage->min_uV;
475 if (*min_uV > *max_uV) {
477 *min_uV, *max_uV);
750 return sprintf(buf, "%d\n", rdev->constraints->min_uV);
1053 if (constraints->min_uV && constraints->max_uV) {
1054 if (constraints->min_uV == constraints->max_uV)
1056 constraints->min_uV / 1000);
1060 constraints->min_uV / 1000,
1064 if (!constraints->min_uV ||
1065 constraints->min_uV != constraints->max_uV) {
1124 if ((constraints->min_uV != constraints->max_uV) &&
1138 rdev->constraints->min_uV && rdev->constraints->max_uV) {
1145 rdev->constraints->min_uV,
1148 rdev->constraints->min_uV,
1169 if (current_uV < rdev->constraints->min_uV) {
1170 target_min = rdev->constraints->min_uV;
1171 target_max = rdev->constraints->min_uV;
1199 int min_uV = INT_MAX;
1201 int cmin = constraints->min_uV;
1210 constraints->min_uV = cmin;
1228 /* initial: [cmin..cmax] valid, [min_uV..max_uV] not */
1236 /* maybe adjust [min_uV..max_uV] */
1237 if (value >= cmin && value < min_uV)
1238 min_uV = value;
1243 /* final: [min_uV..max_uV] valid iff constraints valid */
1244 if (max_uV < min_uV) {
1247 min_uV, max_uV);
1252 if (constraints->min_uV < min_uV) {
1253 rdev_dbg(rdev, "override min_uV, %d -> %d\n",
1254 constraints->min_uV, min_uV);
1255 constraints->min_uV = min_uV;
1785 debugfs_create_u32("min_uV", 0444, regulator->debugfs,
1786 ®ulator->voltage[PM_SUSPEND_ON].min_uV);
3097 if (ret < rdev->constraints->min_uV)
3263 * @min_uV: Minimum required voltage in uV.
3269 int min_uV, int max_uV)
3278 return min_uV <= ret && ret <= max_uV;
3285 return min_uV >= rdev->constraints->min_uV &&
3296 if (ret >= min_uV && ret <= max_uV)
3304 static int regulator_map_voltage(struct regulator_dev *rdev, int min_uV,
3310 return desc->ops->map_voltage(rdev, min_uV, max_uV);
3313 return regulator_map_voltage_linear(rdev, min_uV, max_uV);
3316 return regulator_map_voltage_linear_range(rdev, min_uV, max_uV);
3321 min_uV, max_uV);
3323 return regulator_map_voltage_iterate(rdev, min_uV, max_uV);
3327 int min_uV, int max_uV,
3334 data.min_uV = min_uV;
3341 ret = rdev->desc->ops->set_voltage(rdev, min_uV, max_uV, selector);
3358 data.min_uV = uV;
3462 int min_uV, int max_uV)
3472 trace_regulator_set_voltage(rdev_get_name(rdev), min_uV, max_uV);
3474 min_uV += rdev->constraints->uV_offset;
3489 ret = _regulator_call_set_voltage(rdev, min_uV, max_uV,
3501 ret = regulator_map_voltage(rdev, min_uV, max_uV);
3504 if (min_uV <= best_val && max_uV >= best_val) {
3572 int min_uV, int max_uV, suspend_state_t state)
3581 if (min_uV < rstate->min_uV)
3582 min_uV = rstate->min_uV;
3586 sel = regulator_map_voltage(rdev, min_uV, max_uV);
3591 if (uV >= min_uV && uV <= max_uV)
3598 int min_uV, int max_uV,
3611 if (voltage->min_uV == min_uV && voltage->max_uV == max_uV)
3620 if (min_uV <= current_uV && current_uV <= max_uV) {
3621 voltage->min_uV = min_uV;
3635 ret = regulator_check_voltage(rdev, &min_uV, &max_uV);
3640 old_min_uV = voltage->min_uV;
3642 voltage->min_uV = min_uV;
3648 voltage->min_uV = old_min_uV;
3656 int regulator_set_voltage_rdev(struct regulator_dev *rdev, int min_uV,
3671 selector = regulator_map_voltage(rdev, min_uV, max_uV);
3705 ret = _regulator_do_set_voltage(rdev, min_uV, max_uV);
3707 ret = _regulator_do_set_suspend_voltage(rdev, min_uV,
3728 int *current_uV, int *min_uV)
3743 if (abs(*current_uV - *min_uV) <= constraints->max_uV_step)
3747 if (*current_uV < *min_uV)
3748 *min_uV = min(*current_uV + constraints->max_uV_step,
3749 *min_uV);
3751 *min_uV = max(*current_uV - constraints->max_uV_step,
3752 *min_uV);
3759 int *min_uV, int *max_uV,
3781 * to min_uV
3783 desired_min_uV = constraints->min_uV;
3894 *min_uV = desired_min_uV;
4012 * @min_uV: Minimum required voltage in uV
4027 int regulator_set_voltage(struct regulator *regulator, int min_uV, int max_uV)
4034 ret = regulator_set_voltage_unlocked(regulator, min_uV, max_uV,
4079 if (voltage->min_uV || voltage->max_uV)
4088 int min_uV, int max_uV,
4098 if (rstate->min_uV == rstate->max_uV) {
4103 return regulator_set_voltage_unlocked(regulator, min_uV, max_uV, state);
4106 int regulator_set_suspend_voltage(struct regulator *regulator, int min_uV,
4118 ret = _regulator_set_suspend_voltage(regulator, min_uV,
4250 int ret, min_uV, max_uV;
4264 if (!voltage->min_uV && !voltage->max_uV) {
4269 min_uV = voltage->min_uV;
4273 ret = regulator_check_voltage(rdev, &min_uV, &max_uV);
4277 ret = regulator_check_consumers(rdev, &min_uV, &max_uV, 0);
4285 ret = _regulator_do_set_voltage(rdev, min_uV, max_uV);
5812 c->min_uV / 1000, c->max_uV / 1000);
5840 consumer->voltage[PM_SUSPEND_ON].min_uV / 1000,