Searched refs:old_sel (Results 1 – 6 of 6) sorted by relevance
/linux-6.6.21/drivers/regulator/ |
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 | rk808-regulator.c | 422 unsigned int old_sel, tmp, val, mask = rdev->desc->vsel_mask; in rk808_buck1_2_i2c_set_voltage_sel() local 429 old_sel = val & mask; in rk808_buck1_2_i2c_set_voltage_sel() 430 old_sel >>= ffs(mask) - 1; in rk808_buck1_2_i2c_set_voltage_sel() 431 delta_sel = sel - old_sel; in rk808_buck1_2_i2c_set_voltage_sel() 439 old_sel += MAX_STEPS_ONE_TIME; in rk808_buck1_2_i2c_set_voltage_sel() 440 val = old_sel << (ffs(mask) - 1); in rk808_buck1_2_i2c_set_voltage_sel() 450 delta_sel = sel - old_sel; in rk808_buck1_2_i2c_set_voltage_sel() 474 unsigned old_sel; in rk808_buck1_2_set_voltage_sel() local 483 ret = regmap_read(rdev->regmap, rdev->desc->vsel_reg, &old_sel); in rk808_buck1_2_set_voltage_sel() 487 &old_sel); in rk808_buck1_2_set_voltage_sel() [all …]
|
D | mcp16502.c | 288 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()
|
D | da9052-regulator.c | 236 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()
|
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 | 3527 int diff, old_sel, curr_sel, ret; in _regulator_set_voltage_sel_step() local 3536 old_sel = ops->get_voltage_sel(rdev); in _regulator_set_voltage_sel_step() 3537 if (old_sel < 0) in _regulator_set_voltage_sel_step() 3538 return old_sel; in _regulator_set_voltage_sel_step() 3540 diff = new_selector - old_sel; in _regulator_set_voltage_sel_step() 3546 for (curr_sel = old_sel + rdev->desc->vsel_step; in _regulator_set_voltage_sel_step() 3561 for (curr_sel = old_sel - rdev->desc->vsel_step; in _regulator_set_voltage_sel_step() 3579 (void)ops->set_voltage_sel(rdev, old_sel); in _regulator_set_voltage_sel_step() 4283 int old_sel = -1; in regulator_set_voltage_time() local 4302 if (old_sel >= 0 && new_sel >= 0) in regulator_set_voltage_time() [all …]
|