Lines Matching refs:current_uV
1249 int current_uV = regulator_get_voltage_rdev(rdev);
1251 if (current_uV == -ENOTRECOVERABLE) {
1259 current_uV = regulator_get_voltage_rdev(rdev);
1262 if (current_uV < 0) {
1263 if (current_uV != -EPROBE_DEFER)
1266 ERR_PTR(current_uV));
1267 return current_uV;
1275 target_min = current_uV;
1276 target_max = current_uV;
1278 if (current_uV < rdev->constraints->min_uV) {
1283 if (current_uV > rdev->constraints->max_uV) {
1288 if (target_min != current_uV || target_max != current_uV) {
1290 current_uV, target_min, target_max);
3742 int current_uV;
3756 current_uV = regulator_get_voltage_rdev(rdev);
3757 if (min_uV <= current_uV && current_uV <= max_uV) {
3865 int *current_uV, int *min_uV)
3873 if (*current_uV < 0) {
3874 *current_uV = regulator_get_voltage_rdev(rdev);
3876 if (*current_uV < 0)
3877 return *current_uV;
3880 if (abs(*current_uV - *min_uV) <= constraints->max_uV_step)
3884 if (*current_uV < *min_uV)
3885 *min_uV = min(*current_uV + constraints->max_uV_step,
3888 *min_uV = max(*current_uV - constraints->max_uV_step,
3895 int *current_uV,
3909 *current_uV = -1;
4008 ret = regulator_limit_voltage_step(rdev, current_uV,
4017 /* Set current_uV if wasn't done earlier in the code and if necessary */
4018 if (n_coupled > 1 && *current_uV == -1) {
4025 *current_uV = ret;
4027 *current_uV = desired_min_uV;
4074 int optimal_uV = 0, optimal_max_uV = 0, current_uV = 0;
4080 ¤t_uV,
4087 delta = abs(optimal_uV - current_uV);