/kernel/linux/linux-5.10/drivers/regulator/ |
H A 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...] |
H A D | anatop-regulator.c | 35 unsigned int old_sel, in anatop_regmap_set_voltage_time_sel() 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() 34 anatop_regmap_set_voltage_time_sel(struct regulator_dev *reg, unsigned int old_sel, unsigned int new_sel) anatop_regmap_set_voltage_time_sel() argument
|
H A D | da9052-regulator.c | 236 unsigned int old_sel, in da9052_regulator_set_voltage_time_sel() 253 ret = DIV_ROUND_UP(abs(new_sel - old_sel) * info->step_uV, in da9052_regulator_set_voltage_time_sel() 235 da9052_regulator_set_voltage_time_sel(struct regulator_dev *rdev, unsigned int old_sel, unsigned int new_sel) da9052_regulator_set_voltage_time_sel() argument
|
H A D | s5m8767.c | 338 unsigned int old_sel, in s5m8767_set_voltage_time_sel() 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() 337 s5m8767_set_voltage_time_sel(struct regulator_dev *rdev, unsigned int old_sel, unsigned int new_sel) s5m8767_set_voltage_time_sel() argument
|
H A D | core.c | 3378 int diff, old_sel, curr_sel, ret; in _regulator_set_voltage_sel_step() local 3387 old_sel = ops->get_voltage_sel(rdev); in _regulator_set_voltage_sel_step() 3388 if (old_sel < 0) in _regulator_set_voltage_sel_step() 3389 return old_sel; in _regulator_set_voltage_sel_step() 3391 diff = new_selector - old_sel; in _regulator_set_voltage_sel_step() 3397 for (curr_sel = old_sel + rdev->desc->vsel_step; in _regulator_set_voltage_sel_step() 3412 for (curr_sel = old_sel - rdev->desc->vsel_step; in _regulator_set_voltage_sel_step() 3430 (void)ops->set_voltage_sel(rdev, old_sel); in _regulator_set_voltage_sel_step() 4141 int old_sel = -1; in regulator_set_voltage_time() local 4158 if (old_sel > in regulator_set_voltage_time() [all...] |
/kernel/linux/linux-6.6/drivers/regulator/ |
H A D | anatop-regulator.c | 35 unsigned int old_sel, in anatop_regmap_set_voltage_time_sel() 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() 34 anatop_regmap_set_voltage_time_sel(struct regulator_dev *reg, unsigned int old_sel, unsigned int new_sel) anatop_regmap_set_voltage_time_sel() argument
|
H A 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...] |
H A D | da9052-regulator.c | 236 unsigned int old_sel, in da9052_regulator_set_voltage_time_sel() 253 ret = DIV_ROUND_UP(abs(new_sel - old_sel) * info->step_uV, in da9052_regulator_set_voltage_time_sel() 235 da9052_regulator_set_voltage_time_sel(struct regulator_dev *rdev, unsigned int old_sel, unsigned int new_sel) da9052_regulator_set_voltage_time_sel() argument
|
H A D | mcp16502.c | 288 unsigned int old_sel, in mcp16502_set_voltage_time_sel() 302 old_sel * rdev->desc->linear_ranges->step); in mcp16502_set_voltage_time_sel() 287 mcp16502_set_voltage_time_sel(struct regulator_dev *rdev, unsigned int old_sel, unsigned int new_sel) mcp16502_set_voltage_time_sel() argument
|
H A D | s5m8767.c | 338 unsigned int old_sel, in s5m8767_set_voltage_time_sel() 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() 337 s5m8767_set_voltage_time_sel(struct regulator_dev *rdev, unsigned int old_sel, unsigned int new_sel) s5m8767_set_voltage_time_sel() argument
|
H A 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 > in regulator_set_voltage_time() [all...] |