Lines Matching refs:opvsel
445 int opvsel = 0, srvsel = 0, vselmax = 0, mult = 0, sr = 0; in tps65910_get_voltage_dcdc_sel() local
449 ret = tps65910_reg_read(pmic->mfd, TPS65910_VDD1_OP, &opvsel); in tps65910_get_voltage_dcdc_sel()
459 sr = opvsel & VDD1_OP_CMD_MASK; in tps65910_get_voltage_dcdc_sel()
460 opvsel &= VDD1_OP_SEL_MASK; in tps65910_get_voltage_dcdc_sel()
465 ret = tps65910_reg_read(pmic->mfd, TPS65910_VDD2_OP, &opvsel); in tps65910_get_voltage_dcdc_sel()
475 sr = opvsel & VDD2_OP_CMD_MASK; in tps65910_get_voltage_dcdc_sel()
476 opvsel &= VDD2_OP_SEL_MASK; in tps65910_get_voltage_dcdc_sel()
482 &opvsel); in tps65910_get_voltage_dcdc_sel()
489 sr = opvsel & VDDCTRL_OP_CMD_MASK; in tps65910_get_voltage_dcdc_sel()
490 opvsel &= VDDCTRL_OP_SEL_MASK; in tps65910_get_voltage_dcdc_sel()
510 if (opvsel < 3) in tps65910_get_voltage_dcdc_sel()
511 opvsel = 3; in tps65910_get_voltage_dcdc_sel()
512 if (opvsel > vselmax) in tps65910_get_voltage_dcdc_sel()
513 opvsel = vselmax; in tps65910_get_voltage_dcdc_sel()
514 return opvsel - 3; in tps65910_get_voltage_dcdc_sel()
923 int opvsel, srvsel; in tps65910_set_ext_sleep_config() local
925 ret = tps65910_reg_read(pmic->mfd, op_reg_add, &opvsel); in tps65910_set_ext_sleep_config()
932 if (opvsel & VDD1_OP_CMD_MASK) { in tps65910_set_ext_sleep_config()