Lines Matching refs:max_uV

94 				     int min_uV, int max_uV);
426 int *min_uV, int *max_uV)
428 BUG_ON(*min_uV > *max_uV);
435 if (*max_uV > rdev->constraints->max_uV)
436 *max_uV = rdev->constraints->max_uV;
440 if (*min_uV > *max_uV) {
442 *min_uV, *max_uV);
459 int *min_uV, int *max_uV,
471 if (!voltage->min_uV && !voltage->max_uV)
474 if (*max_uV > voltage->max_uV)
475 *max_uV = voltage->max_uV;
480 if (*min_uV > *max_uV) {
482 *min_uV, *max_uV);
767 return sprintf(buf, "%d\n", rdev->constraints->max_uV);
1100 if (constraints->min_uV && constraints->max_uV) {
1101 if (constraints->min_uV == constraints->max_uV)
1108 constraints->max_uV / 1000);
1112 constraints->min_uV != constraints->max_uV) {
1171 if ((constraints->min_uV != constraints->max_uV) &&
1185 rdev->constraints->min_uV && rdev->constraints->max_uV) {
1193 rdev->constraints->max_uV);
1196 rdev->constraints->max_uV);
1221 if (current_uV > rdev->constraints->max_uV) {
1222 target_min = rdev->constraints->max_uV;
1223 target_max = rdev->constraints->max_uV;
1247 int max_uV = INT_MIN;
1249 int cmax = constraints->max_uV;
1258 constraints->max_uV = cmax;
1275 /* initial: [cmin..cmax] valid, [min_uV..max_uV] not */
1283 /* maybe adjust [min_uV..max_uV] */
1286 if (value <= cmax && value > max_uV)
1287 max_uV = value;
1290 /* final: [min_uV..max_uV] valid iff constraints valid */
1291 if (max_uV < min_uV) {
1294 min_uV, max_uV);
1304 if (constraints->max_uV > max_uV) {
1305 rdev_dbg(rdev, "override max_uV, %d -> %d\n",
1306 constraints->max_uV, max_uV);
1307 constraints->max_uV = max_uV;
1869 debugfs_create_u32("max_uV", 0444, regulator->debugfs,
1870 &regulator->voltage[PM_SUSPEND_ON].max_uV);
3246 else if (ret > rdev->constraints->max_uV)
3446 * @max_uV: Maximum required voltage in uV.
3453 int min_uV, int max_uV)
3462 return min_uV <= ret && ret <= max_uV;
3470 max_uV <= rdev->constraints->max_uV;
3480 if (ret >= min_uV && ret <= max_uV)
3489 int max_uV)
3494 return desc->ops->map_voltage(rdev, min_uV, max_uV);
3497 return regulator_map_voltage_linear(rdev, min_uV, max_uV);
3500 return regulator_map_voltage_linear_range(rdev, min_uV, max_uV);
3505 min_uV, max_uV);
3507 return regulator_map_voltage_iterate(rdev, min_uV, max_uV);
3511 int min_uV, int max_uV,
3519 data.max_uV = max_uV;
3525 ret = rdev->desc->ops->set_voltage(rdev, min_uV, max_uV, selector);
3543 data.max_uV = uV;
3644 int min_uV, int max_uV)
3654 trace_regulator_set_voltage(rdev_get_name(rdev), min_uV, max_uV);
3657 max_uV += rdev->constraints->uV_offset;
3671 ret = _regulator_call_set_voltage(rdev, min_uV, max_uV,
3683 ret = regulator_map_voltage(rdev, min_uV, max_uV);
3686 if (min_uV <= best_val && max_uV >= best_val) {
3749 int min_uV, int max_uV, suspend_state_t state)
3760 if (max_uV > rstate->max_uV)
3761 max_uV = rstate->max_uV;
3763 sel = regulator_map_voltage(rdev, min_uV, max_uV);
3768 if (uV >= min_uV && uV <= max_uV)
3775 int min_uV, int max_uV,
3788 if (voltage->min_uV == min_uV && voltage->max_uV == max_uV)
3797 if (min_uV <= current_uV && current_uV <= max_uV) {
3799 voltage->max_uV = max_uV;
3812 ret = regulator_check_voltage(rdev, &min_uV, &max_uV);
3818 old_max_uV = voltage->max_uV;
3820 voltage->max_uV = max_uV;
3826 voltage->max_uV = old_max_uV;
3834 int max_uV, suspend_state_t state)
3848 selector = regulator_map_voltage(rdev, min_uV, max_uV);
3882 ret = _regulator_do_set_voltage(rdev, min_uV, max_uV);
3885 max_uV, state);
3936 int *min_uV, int *max_uV,
3961 desired_max_uV = constraints->max_uV;
4071 *max_uV = desired_max_uV;
4189 * @max_uV: Maximum acceptable voltage in uV
4205 int regulator_set_voltage(struct regulator *regulator, int min_uV, int max_uV)
4212 ret = regulator_set_voltage_unlocked(regulator, min_uV, max_uV,
4257 if (voltage->min_uV || voltage->max_uV)
4266 int min_uV, int max_uV,
4276 if (rstate->min_uV == rstate->max_uV) {
4281 return regulator_set_voltage_unlocked(regulator, min_uV, max_uV, state);
4285 int max_uV, suspend_state_t state)
4297 max_uV, state);
4434 int ret, min_uV, max_uV;
4448 if (!voltage->min_uV && !voltage->max_uV) {
4454 max_uV = voltage->max_uV;
4457 ret = regulator_check_voltage(rdev, &min_uV, &max_uV);
4461 ret = regulator_check_consumers(rdev, &min_uV, &max_uV, 0);
4469 ret = _regulator_do_set_voltage(rdev, min_uV, max_uV);
6123 c->min_uV / 1000, c->max_uV / 1000);
6152 consumer->voltage[PM_SUSPEND_ON].max_uV / 1000);