Lines Matching refs:current_uV
1140 int current_uV = regulator_get_voltage_rdev(rdev);
1142 if (current_uV == -ENOTRECOVERABLE) {
1150 current_uV = regulator_get_voltage_rdev(rdev);
1153 if (current_uV < 0) {
1156 ERR_PTR(current_uV));
1157 return current_uV;
1165 target_min = current_uV;
1166 target_max = current_uV;
1168 if (current_uV < rdev->constraints->min_uV) {
1173 if (current_uV > rdev->constraints->max_uV) {
1178 if (target_min != current_uV || target_max != current_uV) {
1180 current_uV, target_min, target_max);
3604 int current_uV;
3618 current_uV = regulator_get_voltage_rdev(rdev);
3619 if (min_uV <= current_uV && current_uV <= max_uV) {
3727 int *current_uV, int *min_uV)
3735 if (*current_uV < 0) {
3736 *current_uV = regulator_get_voltage_rdev(rdev);
3738 if (*current_uV < 0)
3739 return *current_uV;
3742 if (abs(*current_uV - *min_uV) <= constraints->max_uV_step)
3746 if (*current_uV < *min_uV)
3747 *min_uV = min(*current_uV + constraints->max_uV_step,
3750 *min_uV = max(*current_uV - constraints->max_uV_step,
3757 int *current_uV,
3771 *current_uV = -1;
3870 ret = regulator_limit_voltage_step(rdev, current_uV,
3879 /* Set current_uV if wasn't done earlier in the code and if necessary */
3880 if (n_coupled > 1 && *current_uV == -1) {
3887 *current_uV = ret;
3889 *current_uV = desired_min_uV;
3936 int optimal_uV = 0, optimal_max_uV = 0, current_uV = 0;
3942 ¤t_uV,
3949 delta = abs(optimal_uV - current_uV);