Lines Matching refs:current_uV
1187 int current_uV = regulator_get_voltage_rdev(rdev);
1189 if (current_uV == -ENOTRECOVERABLE) {
1197 current_uV = regulator_get_voltage_rdev(rdev);
1200 if (current_uV < 0) {
1201 if (current_uV != -EPROBE_DEFER)
1204 ERR_PTR(current_uV));
1205 return current_uV;
1213 target_min = current_uV;
1214 target_max = current_uV;
1216 if (current_uV < rdev->constraints->min_uV) {
1221 if (current_uV > rdev->constraints->max_uV) {
1226 if (target_min != current_uV || target_max != current_uV) {
1228 current_uV, target_min, target_max);
3782 int current_uV;
3796 current_uV = regulator_get_voltage_rdev(rdev);
3797 if (min_uV <= current_uV && current_uV <= max_uV) {
3905 int *current_uV, int *min_uV)
3913 if (*current_uV < 0) {
3914 *current_uV = regulator_get_voltage_rdev(rdev);
3916 if (*current_uV < 0)
3917 return *current_uV;
3920 if (abs(*current_uV - *min_uV) <= constraints->max_uV_step)
3924 if (*current_uV < *min_uV)
3925 *min_uV = min(*current_uV + constraints->max_uV_step,
3928 *min_uV = max(*current_uV - constraints->max_uV_step,
3935 int *current_uV,
3949 *current_uV = -1;
4047 ret = regulator_limit_voltage_step(rdev, current_uV,
4056 /* Set current_uV if wasn't done earlier in the code and if necessary */
4057 if (n_coupled > 1 && *current_uV == -1) {
4064 *current_uV = ret;
4066 *current_uV = desired_min_uV;
4113 int optimal_uV = 0, optimal_max_uV = 0, current_uV = 0;
4119 ¤t_uV,
4126 delta = abs(optimal_uV - current_uV);