Lines Matching refs:selector
680 /* The first 5 values of the selector correspond to 1V */
695 /* The first 3 values of the selector correspond to 1V */
715 unsigned selector)
723 dcdc_mult = (selector / VDD1_2_NUM_VOLT_FINE) + 1;
726 vsel = (selector % VDD1_2_NUM_VOLT_FINE) + 3;
734 dcdc_mult = (selector / VDD1_2_NUM_VOLT_FINE) + 1;
737 vsel = (selector % VDD1_2_NUM_VOLT_FINE) + 3;
745 vsel = selector + 3;
753 unsigned selector)
773 (selector << LDO_SEL_SHIFT), LDO_SEL_MASK);
780 unsigned selector)
794 (selector << LDO_SEL_SHIFT), LDO1_SEL_MASK);
801 (selector << LDO_SEL_SHIFT), LDO3_SEL_MASK);
804 (selector << LDO_SEL_SHIFT), LDO_SEL_MASK);
812 unsigned selector)
819 mult = (selector / VDD1_2_NUM_VOLT_FINE) + 1;
821 (selector % VDD1_2_NUM_VOLT_FINE) * VDD1_2_OFFSET;
824 volt = VDDCTRL_MIN_VOLT + (selector * VDDCTRL_OFFSET);
835 unsigned selector)
843 if (selector >= pmic->info[id]->n_voltages)
846 voltage = pmic->info[id]->voltage_table[selector] * 1000;
851 static int tps65911_list_voltage(struct regulator_dev *dev, unsigned selector)
860 /* The first 5 values of the selector correspond to 1V */
861 if (selector < 5)
862 selector = 0;
864 selector -= 4;
873 /* The first 3 values of the selector correspond to 1V */
874 if (selector < 3)
875 selector = 0;
877 selector -= 2;
882 return pmic->info[id]->voltage_table[selector] * 1000;
887 return (LDO_MIN_VOLT + selector * step_mv) * 1000;