Lines Matching refs:selector
596 unsigned selector) in tps65910_set_voltage_dcdc_sel() argument
604 dcdc_mult = (selector / VDD1_2_NUM_VOLT_FINE) + 1; in tps65910_set_voltage_dcdc_sel()
607 vsel = (selector % VDD1_2_NUM_VOLT_FINE) + 3; in tps65910_set_voltage_dcdc_sel()
614 dcdc_mult = (selector / VDD1_2_NUM_VOLT_FINE) + 1; in tps65910_set_voltage_dcdc_sel()
617 vsel = (selector % VDD1_2_NUM_VOLT_FINE) + 3; in tps65910_set_voltage_dcdc_sel()
624 vsel = selector + 3; in tps65910_set_voltage_dcdc_sel()
633 unsigned selector) in tps65910_set_voltage_sel() argument
654 selector << LDO_SEL_SHIFT); in tps65910_set_voltage_sel()
657 selector << BBCH_BBSEL_SHIFT); in tps65910_set_voltage_sel()
664 unsigned selector) in tps65911_set_voltage_sel() argument
679 selector << LDO_SEL_SHIFT); in tps65911_set_voltage_sel()
686 selector << LDO_SEL_SHIFT); in tps65911_set_voltage_sel()
689 selector << LDO_SEL_SHIFT); in tps65911_set_voltage_sel()
692 selector << BBCH_BBSEL_SHIFT); in tps65911_set_voltage_sel()
700 unsigned selector) in tps65910_list_voltage_dcdc() argument
707 mult = (selector / VDD1_2_NUM_VOLT_FINE) + 1; in tps65910_list_voltage_dcdc()
709 (selector % VDD1_2_NUM_VOLT_FINE) * VDD1_2_OFFSET; in tps65910_list_voltage_dcdc()
712 volt = VDDCTRL_MIN_VOLT + (selector * VDDCTRL_OFFSET); in tps65910_list_voltage_dcdc()
722 static int tps65911_list_voltage(struct regulator_dev *dev, unsigned selector) in tps65911_list_voltage() argument
732 if (selector < 5) in tps65911_list_voltage()
733 selector = 0; in tps65911_list_voltage()
735 selector -= 4; in tps65911_list_voltage()
745 if (selector < 3) in tps65911_list_voltage()
746 selector = 0; in tps65911_list_voltage()
748 selector -= 2; in tps65911_list_voltage()
753 return pmic->info[id]->voltage_table[selector]; in tps65911_list_voltage()
758 return (LDO_MIN_VOLT + selector * step_mv) * 1000; in tps65911_list_voltage()