Lines Matching refs:srvsel
440 int opvsel = 0, srvsel = 0, vselmax = 0, mult = 0, sr = 0; in tps65910_get_voltage_dcdc_sel() local
451 ret = regmap_read(regmap, TPS65910_VDD1_SR, &srvsel); in tps65910_get_voltage_dcdc_sel()
456 srvsel &= VDD1_SR_SEL_MASK; in tps65910_get_voltage_dcdc_sel()
467 ret = regmap_read(regmap, TPS65910_VDD2_SR, &srvsel); in tps65910_get_voltage_dcdc_sel()
472 srvsel &= VDD2_SR_SEL_MASK; in tps65910_get_voltage_dcdc_sel()
479 ret = regmap_read(regmap, TPS65911_VDDCTRL_SR, &srvsel); in tps65910_get_voltage_dcdc_sel()
484 srvsel &= VDDCTRL_SR_SEL_MASK; in tps65910_get_voltage_dcdc_sel()
495 if (srvsel < 3) in tps65910_get_voltage_dcdc_sel()
496 srvsel = 3; in tps65910_get_voltage_dcdc_sel()
497 if (srvsel > vselmax) in tps65910_get_voltage_dcdc_sel()
498 srvsel = vselmax; in tps65910_get_voltage_dcdc_sel()
499 return srvsel - 3; in tps65910_get_voltage_dcdc_sel()
919 int opvsel, srvsel; in tps65910_set_ext_sleep_config() local
924 ret = regmap_read(mfd->regmap, sr_reg_add, &srvsel); in tps65910_set_ext_sleep_config()
929 u8 reg_val = srvsel & VDD1_OP_SEL_MASK; in tps65910_set_ext_sleep_config()