Lines Matching refs:old_sel
3457 int diff, old_sel, curr_sel, ret; in _regulator_set_voltage_sel_step() local
3466 old_sel = ops->get_voltage_sel(rdev); in _regulator_set_voltage_sel_step()
3467 if (old_sel < 0) in _regulator_set_voltage_sel_step()
3468 return old_sel; in _regulator_set_voltage_sel_step()
3470 diff = new_selector - old_sel; in _regulator_set_voltage_sel_step()
3476 for (curr_sel = old_sel + rdev->desc->vsel_step; in _regulator_set_voltage_sel_step()
3491 for (curr_sel = old_sel - rdev->desc->vsel_step; in _regulator_set_voltage_sel_step()
3509 (void)ops->set_voltage_sel(rdev, old_sel); in _regulator_set_voltage_sel_step()
4213 int old_sel = -1; in regulator_set_voltage_time() local
4232 if (old_sel >= 0 && new_sel >= 0) in regulator_set_voltage_time()
4241 old_sel = i; in regulator_set_voltage_time()
4246 if (old_sel < 0 || new_sel < 0) in regulator_set_voltage_time()
4249 return ops->set_voltage_time_sel(rdev, old_sel, new_sel); in regulator_set_voltage_time()