Lines Matching refs:opvsel
441 int opvsel = 0, srvsel = 0, vselmax = 0, mult = 0, sr = 0; in tps65910_get_voltage_dcdc_sel() local
445 ret = regmap_read(regmap, TPS65910_VDD1_OP, &opvsel); in tps65910_get_voltage_dcdc_sel()
455 sr = opvsel & VDD1_OP_CMD_MASK; in tps65910_get_voltage_dcdc_sel()
456 opvsel &= VDD1_OP_SEL_MASK; in tps65910_get_voltage_dcdc_sel()
461 ret = regmap_read(regmap, TPS65910_VDD2_OP, &opvsel); in tps65910_get_voltage_dcdc_sel()
471 sr = opvsel & VDD2_OP_CMD_MASK; in tps65910_get_voltage_dcdc_sel()
472 opvsel &= VDD2_OP_SEL_MASK; in tps65910_get_voltage_dcdc_sel()
477 ret = regmap_read(regmap, TPS65911_VDDCTRL_OP, &opvsel); in tps65910_get_voltage_dcdc_sel()
483 sr = opvsel & VDDCTRL_OP_CMD_MASK; in tps65910_get_voltage_dcdc_sel()
484 opvsel &= VDDCTRL_OP_SEL_MASK; in tps65910_get_voltage_dcdc_sel()
504 if (opvsel < 3) in tps65910_get_voltage_dcdc_sel()
505 opvsel = 3; in tps65910_get_voltage_dcdc_sel()
506 if (opvsel > vselmax) in tps65910_get_voltage_dcdc_sel()
507 opvsel = vselmax; in tps65910_get_voltage_dcdc_sel()
508 return opvsel - 3; in tps65910_get_voltage_dcdc_sel()
920 int opvsel, srvsel; in tps65910_set_ext_sleep_config() local
922 ret = regmap_read(mfd->regmap, op_reg_add, &opvsel); in tps65910_set_ext_sleep_config()
929 if (opvsel & VDD1_OP_CMD_MASK) { in tps65910_set_ext_sleep_config()