Searched refs:old_sel (Results 1 – 5 of 5) sorted by relevance
/drivers/regulator/ |
D | rk808-regulator.c | 245 unsigned int old_sel, tmp, val, mask = rdev->desc->vsel_mask; in rk808_buck1_2_i2c_set_voltage_sel() local 252 old_sel = val & mask; in rk808_buck1_2_i2c_set_voltage_sel() 253 old_sel >>= ffs(mask) - 1; in rk808_buck1_2_i2c_set_voltage_sel() 254 delta_sel = sel - old_sel; in rk808_buck1_2_i2c_set_voltage_sel() 262 old_sel += MAX_STEPS_ONE_TIME; in rk808_buck1_2_i2c_set_voltage_sel() 263 val = old_sel << (ffs(mask) - 1); in rk808_buck1_2_i2c_set_voltage_sel() 273 delta_sel = sel - old_sel; in rk808_buck1_2_i2c_set_voltage_sel() 297 unsigned old_sel; in rk808_buck1_2_set_voltage_sel() local 306 ret = regmap_read(rdev->regmap, rdev->desc->vsel_reg, &old_sel); in rk808_buck1_2_set_voltage_sel() 310 &old_sel); in rk808_buck1_2_set_voltage_sel() [all …]
|
D | anatop-regulator.c | 35 unsigned int old_sel, in anatop_regmap_set_voltage_time_sel() argument 43 if (anatop_reg->delay_bit_width && new_sel > old_sel) { in anatop_regmap_set_voltage_time_sel() 53 ret = (new_sel - old_sel) * (LDO_RAMP_UP_UNIT_IN_CYCLES << in anatop_regmap_set_voltage_time_sel()
|
D | da9052-regulator.c | 236 unsigned int old_sel, in da9052_regulator_set_voltage_time_sel() argument 253 ret = (new_sel - old_sel) * info->step_uV / 6250; in da9052_regulator_set_voltage_time_sel()
|
D | s5m8767.c | 338 unsigned int old_sel, in s5m8767_set_voltage_time_sel() argument 343 if ((old_sel < new_sel) && s5m8767->ramp_delay) in s5m8767_set_voltage_time_sel() 344 return DIV_ROUND_UP(rdev->desc->uV_step * (new_sel - old_sel), in s5m8767_set_voltage_time_sel()
|
D | core.c | 3123 int diff, old_sel, curr_sel, ret; in _regulator_set_voltage_sel_step() local 3132 old_sel = ops->get_voltage_sel(rdev); in _regulator_set_voltage_sel_step() 3133 if (old_sel < 0) in _regulator_set_voltage_sel_step() 3134 return old_sel; in _regulator_set_voltage_sel_step() 3136 diff = new_selector - old_sel; in _regulator_set_voltage_sel_step() 3142 for (curr_sel = old_sel + rdev->desc->vsel_step; in _regulator_set_voltage_sel_step() 3157 for (curr_sel = old_sel - rdev->desc->vsel_step; in _regulator_set_voltage_sel_step() 3175 (void)ops->set_voltage_sel(rdev, old_sel); in _regulator_set_voltage_sel_step() 3876 int old_sel = -1; in regulator_set_voltage_time() local 3898 old_sel = i; in regulator_set_voltage_time() [all …]
|