Home
last modified time | relevance | path

Searched refs:old_sel (Results 1 – 6 of 6) sorted by relevance

/linux-6.1.9/drivers/regulator/
Drk808-regulator.c247 unsigned int old_sel, tmp, val, mask = rdev->desc->vsel_mask; in rk808_buck1_2_i2c_set_voltage_sel() local
254 old_sel = val & mask; in rk808_buck1_2_i2c_set_voltage_sel()
255 old_sel >>= ffs(mask) - 1; in rk808_buck1_2_i2c_set_voltage_sel()
256 delta_sel = sel - old_sel; in rk808_buck1_2_i2c_set_voltage_sel()
264 old_sel += MAX_STEPS_ONE_TIME; in rk808_buck1_2_i2c_set_voltage_sel()
265 val = old_sel << (ffs(mask) - 1); in rk808_buck1_2_i2c_set_voltage_sel()
275 delta_sel = sel - old_sel; in rk808_buck1_2_i2c_set_voltage_sel()
299 unsigned old_sel; in rk808_buck1_2_set_voltage_sel() local
308 ret = regmap_read(rdev->regmap, rdev->desc->vsel_reg, &old_sel); in rk808_buck1_2_set_voltage_sel()
312 &old_sel); in rk808_buck1_2_set_voltage_sel()
[all …]
Danatop-regulator.c35 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()
Dmcp16502.c288 unsigned int old_sel, in mcp16502_set_voltage_time_sel() argument
302 old_sel * rdev->desc->linear_ranges->step); in mcp16502_set_voltage_time_sel()
Dda9052-regulator.c236 unsigned int old_sel, in da9052_regulator_set_voltage_time_sel() argument
253 ret = DIV_ROUND_UP(abs(new_sel - old_sel) * info->step_uV, in da9052_regulator_set_voltage_time_sel()
Ds5m8767.c338 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()
Dcore.c3457 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()
[all …]