Lines Matching refs:selector
600 unsigned selector) in tps65910_set_voltage_dcdc_sel() argument
608 dcdc_mult = (selector / VDD1_2_NUM_VOLT_FINE) + 1; in tps65910_set_voltage_dcdc_sel()
611 vsel = (selector % VDD1_2_NUM_VOLT_FINE) + 3; in tps65910_set_voltage_dcdc_sel()
619 dcdc_mult = (selector / VDD1_2_NUM_VOLT_FINE) + 1; in tps65910_set_voltage_dcdc_sel()
622 vsel = (selector % VDD1_2_NUM_VOLT_FINE) + 3; in tps65910_set_voltage_dcdc_sel()
630 vsel = selector + 3; in tps65910_set_voltage_dcdc_sel()
638 unsigned selector) in tps65910_set_voltage_sel() argument
658 selector << LDO_SEL_SHIFT); in tps65910_set_voltage_sel()
661 selector << BBCH_BBSEL_SHIFT); in tps65910_set_voltage_sel()
668 unsigned selector) in tps65911_set_voltage_sel() argument
682 selector << LDO_SEL_SHIFT); in tps65911_set_voltage_sel()
689 selector << LDO_SEL_SHIFT); in tps65911_set_voltage_sel()
692 selector << LDO_SEL_SHIFT); in tps65911_set_voltage_sel()
695 selector << BBCH_BBSEL_SHIFT); in tps65911_set_voltage_sel()
703 unsigned selector) in tps65910_list_voltage_dcdc() argument
710 mult = (selector / VDD1_2_NUM_VOLT_FINE) + 1; in tps65910_list_voltage_dcdc()
712 (selector % VDD1_2_NUM_VOLT_FINE) * VDD1_2_OFFSET; in tps65910_list_voltage_dcdc()
715 volt = VDDCTRL_MIN_VOLT + (selector * VDDCTRL_OFFSET); in tps65910_list_voltage_dcdc()
725 static int tps65911_list_voltage(struct regulator_dev *dev, unsigned selector) in tps65911_list_voltage() argument
735 if (selector < 5) in tps65911_list_voltage()
736 selector = 0; in tps65911_list_voltage()
738 selector -= 4; in tps65911_list_voltage()
748 if (selector < 3) in tps65911_list_voltage()
749 selector = 0; in tps65911_list_voltage()
751 selector -= 2; in tps65911_list_voltage()
756 return pmic->info[id]->voltage_table[selector]; in tps65911_list_voltage()
761 return (LDO_MIN_VOLT + selector * step_mv) * 1000; in tps65911_list_voltage()