Lines Matching refs:current_uV
1183 int current_uV = regulator_get_voltage_rdev(rdev);
1185 if (current_uV == -ENOTRECOVERABLE) {
1193 current_uV = regulator_get_voltage_rdev(rdev);
1196 if (current_uV < 0) {
1197 if (current_uV != -EPROBE_DEFER)
1200 ERR_PTR(current_uV));
1201 return current_uV;
1209 target_min = current_uV;
1210 target_max = current_uV;
1212 if (current_uV < rdev->constraints->min_uV) {
1217 if (current_uV > rdev->constraints->max_uV) {
1222 if (target_min != current_uV || target_max != current_uV) {
1224 current_uV, target_min, target_max);
3668 int current_uV;
3682 current_uV = regulator_get_voltage_rdev(rdev);
3683 if (min_uV <= current_uV && current_uV <= max_uV) {
3791 int *current_uV, int *min_uV)
3799 if (*current_uV < 0) {
3800 *current_uV = regulator_get_voltage_rdev(rdev);
3802 if (*current_uV < 0)
3803 return *current_uV;
3806 if (abs(*current_uV - *min_uV) <= constraints->max_uV_step)
3810 if (*current_uV < *min_uV)
3811 *min_uV = min(*current_uV + constraints->max_uV_step,
3814 *min_uV = max(*current_uV - constraints->max_uV_step,
3821 int *current_uV,
3835 *current_uV = -1;
3934 ret = regulator_limit_voltage_step(rdev, current_uV,
3943 /* Set current_uV if wasn't done earlier in the code and if necessary */
3944 if (n_coupled > 1 && *current_uV == -1) {
3951 *current_uV = ret;
3953 *current_uV = desired_min_uV;
4000 int optimal_uV = 0, optimal_max_uV = 0, current_uV = 0;
4006 ¤t_uV,
4013 delta = abs(optimal_uV - current_uV);