Home
last modified time | relevance | path

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

/linux/drivers/regulator/
H A 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()
H A Dmcp16502.c289 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 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()
H A Ds5m8767.c339 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 Dcore.c3569 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 …]