Lines Matching refs:srvsel
445 int opvsel = 0, srvsel = 0, vselmax = 0, mult = 0, sr = 0; in tps65910_get_voltage_dcdc_sel() local
456 ret = tps65910_reg_read(pmic->mfd, TPS65910_VDD1_SR, &srvsel); in tps65910_get_voltage_dcdc_sel()
461 srvsel &= VDD1_SR_SEL_MASK; in tps65910_get_voltage_dcdc_sel()
472 ret = tps65910_reg_read(pmic->mfd, TPS65910_VDD2_SR, &srvsel); in tps65910_get_voltage_dcdc_sel()
477 srvsel &= VDD2_SR_SEL_MASK; in tps65910_get_voltage_dcdc_sel()
486 &srvsel); in tps65910_get_voltage_dcdc_sel()
491 srvsel &= VDDCTRL_SR_SEL_MASK; in tps65910_get_voltage_dcdc_sel()
502 if (srvsel < 3) in tps65910_get_voltage_dcdc_sel()
503 srvsel = 3; in tps65910_get_voltage_dcdc_sel()
504 if (srvsel > vselmax) in tps65910_get_voltage_dcdc_sel()
505 srvsel = vselmax; in tps65910_get_voltage_dcdc_sel()
506 return srvsel - 3; in tps65910_get_voltage_dcdc_sel()
923 int opvsel, srvsel; in tps65910_set_ext_sleep_config() local
928 ret = tps65910_reg_read(pmic->mfd, sr_reg_add, &srvsel); in tps65910_set_ext_sleep_config()
933 u8 reg_val = srvsel & VDD1_OP_SEL_MASK; in tps65910_set_ext_sleep_config()