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);
3676 int current_uV;
3690 current_uV = regulator_get_voltage_rdev(rdev);
3691 if (min_uV <= current_uV && current_uV <= max_uV) {
3799 int *current_uV, int *min_uV)
3807 if (*current_uV < 0) {
3808 *current_uV = regulator_get_voltage_rdev(rdev);
3810 if (*current_uV < 0)
3811 return *current_uV;
3814 if (abs(*current_uV - *min_uV) <= constraints->max_uV_step)
3818 if (*current_uV < *min_uV)
3819 *min_uV = min(*current_uV + constraints->max_uV_step,
3822 *min_uV = max(*current_uV - constraints->max_uV_step,
3829 int *current_uV,
3843 *current_uV = -1;
3942 ret = regulator_limit_voltage_step(rdev, current_uV,
3951 /* Set current_uV if wasn't done earlier in the code and if necessary */
3952 if (n_coupled > 1 && *current_uV == -1) {
3959 *current_uV = ret;
3961 *current_uV = desired_min_uV;
4008 int optimal_uV = 0, optimal_max_uV = 0, current_uV = 0;
4014 ¤t_uV,
4021 delta = abs(optimal_uV - current_uV);