Lines Matching refs:srvsel
441 int opvsel = 0, srvsel = 0, vselmax = 0, mult = 0, sr = 0; in tps65910_get_voltage_dcdc_sel() local
452 ret = regmap_read(regmap, TPS65910_VDD1_SR, &srvsel); in tps65910_get_voltage_dcdc_sel()
457 srvsel &= VDD1_SR_SEL_MASK; in tps65910_get_voltage_dcdc_sel()
468 ret = regmap_read(regmap, TPS65910_VDD2_SR, &srvsel); in tps65910_get_voltage_dcdc_sel()
473 srvsel &= VDD2_SR_SEL_MASK; in tps65910_get_voltage_dcdc_sel()
480 ret = regmap_read(regmap, TPS65911_VDDCTRL_SR, &srvsel); in tps65910_get_voltage_dcdc_sel()
485 srvsel &= VDDCTRL_SR_SEL_MASK; in tps65910_get_voltage_dcdc_sel()
496 if (srvsel < 3) in tps65910_get_voltage_dcdc_sel()
497 srvsel = 3; in tps65910_get_voltage_dcdc_sel()
498 if (srvsel > vselmax) in tps65910_get_voltage_dcdc_sel()
499 srvsel = vselmax; in tps65910_get_voltage_dcdc_sel()
500 return srvsel - 3; in tps65910_get_voltage_dcdc_sel()
920 int opvsel, srvsel; in tps65910_set_ext_sleep_config() local
925 ret = regmap_read(mfd->regmap, sr_reg_add, &srvsel); in tps65910_set_ext_sleep_config()
930 u8 reg_val = srvsel & VDD1_OP_SEL_MASK; in tps65910_set_ext_sleep_config()