Lines Matching refs:old_sel
168 unsigned int old_sel, tmp, val, mask = rdev->desc->vsel_mask; in rk808_buck1_2_i2c_set_voltage_sel() local
175 old_sel = val & mask; in rk808_buck1_2_i2c_set_voltage_sel()
176 old_sel >>= ffs(mask) - 1; in rk808_buck1_2_i2c_set_voltage_sel()
177 delta_sel = sel - old_sel; in rk808_buck1_2_i2c_set_voltage_sel()
185 old_sel += MAX_STEPS_ONE_TIME; in rk808_buck1_2_i2c_set_voltage_sel()
186 val = old_sel << (ffs(mask) - 1); in rk808_buck1_2_i2c_set_voltage_sel()
196 delta_sel = sel - old_sel; in rk808_buck1_2_i2c_set_voltage_sel()
220 unsigned old_sel; in rk808_buck1_2_set_voltage_sel() local
229 ret = regmap_read(rdev->regmap, rdev->desc->vsel_reg, &old_sel); in rk808_buck1_2_set_voltage_sel()
233 &old_sel); in rk808_buck1_2_set_voltage_sel()
240 sel |= old_sel & ~rdev->desc->vsel_mask; in rk808_buck1_2_set_voltage_sel()