Searched refs:old_sel (Results 1 – 5 of 5) sorted by relevance
/linux/drivers/regulator/ |
H A 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()
|
H A D | mcp16502.c | 289 unsigned int old_sel, in mcp16502_set_voltage_time_sel() argument 303 old_sel * rdev->desc->linear_ranges->step); in mcp16502_set_voltage_time_sel()
|
H A 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()
|
H A D | s5m8767.c | 339 unsigned int old_sel, in s5m8767_set_voltage_time_sel() argument 344 if ((old_sel < new_sel) && s5m8767->ramp_delay) in s5m8767_set_voltage_time_sel() 345 return DIV_ROUND_UP(rdev->desc->uV_step * (new_sel - old_sel), in s5m8767_set_voltage_time_sel()
|
H A D | core.c | 3569 int diff, old_sel, curr_sel, ret; in _regulator_set_voltage_sel_step() local 3578 old_sel = ops->get_voltage_sel(rdev); in _regulator_set_voltage_sel_step() 3579 if (old_sel < 0) in _regulator_set_voltage_sel_step() 3580 return old_sel; in _regulator_set_voltage_sel_step() 3582 diff = new_selector - old_sel; in _regulator_set_voltage_sel_step() 3588 for (curr_sel = old_sel + rdev->desc->vsel_step; in _regulator_set_voltage_sel_step() 3603 for (curr_sel = old_sel - rdev->desc->vsel_step; in _regulator_set_voltage_sel_step() 3621 (void)ops->set_voltage_sel(rdev, old_sel); in _regulator_set_voltage_sel_step() 4328 int old_sel = -1; in regulator_set_voltage_time() local 4347 if (old_sel >= 0 && new_sel >= 0) in regulator_set_voltage_time() [all …]
|