Searched refs:old_sel (Results 1 – 5 of 5) sorted by relevance
/Linux-v4.19/drivers/regulator/ |
D | rk808-regulator.c | 168 unsigned int old_sel, tmp, val, mask = rdev->desc->vsel_mask; in rk808_buck1_2_i2c_set_voltage_sel() local 175 old_sel = val & mask; in rk808_buck1_2_i2c_set_voltage_sel() 176 old_sel >>= ffs(mask) - 1; in rk808_buck1_2_i2c_set_voltage_sel() 177 delta_sel = sel - old_sel; in rk808_buck1_2_i2c_set_voltage_sel() 185 old_sel += MAX_STEPS_ONE_TIME; in rk808_buck1_2_i2c_set_voltage_sel() 186 val = old_sel << (ffs(mask) - 1); in rk808_buck1_2_i2c_set_voltage_sel() 196 delta_sel = sel - old_sel; in rk808_buck1_2_i2c_set_voltage_sel() 220 unsigned old_sel; in rk808_buck1_2_set_voltage_sel() local 229 ret = regmap_read(rdev->regmap, rdev->desc->vsel_reg, &old_sel); in rk808_buck1_2_set_voltage_sel() 233 &old_sel); in rk808_buck1_2_set_voltage_sel() [all …]
|
D | anatop-regulator.c | 43 unsigned int old_sel, in anatop_regmap_set_voltage_time_sel() argument 51 if (anatop_reg->delay_bit_width && new_sel > old_sel) { in anatop_regmap_set_voltage_time_sel() 61 ret = (new_sel - old_sel) * (LDO_RAMP_UP_UNIT_IN_CYCLES << in anatop_regmap_set_voltage_time_sel()
|
D | da9052-regulator.c | 244 unsigned int old_sel, in da9052_regulator_set_voltage_time_sel() argument 261 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 347 if ((old_sel < new_sel) && s5m8767->ramp_delay) in s5m8767_set_voltage_time_sel() 348 return DIV_ROUND_UP(desc->step * (new_sel - old_sel), in s5m8767_set_voltage_time_sel()
|
D | core.c | 3250 int old_sel = -1; in regulator_set_voltage_time() local 3272 old_sel = i; in regulator_set_voltage_time() 3277 if (old_sel < 0 || new_sel < 0) in regulator_set_voltage_time() 3280 return ops->set_voltage_time_sel(rdev, old_sel, new_sel); in regulator_set_voltage_time()
|