Lines Matching full:selector
166 * @sel: Selector to set
255 * @sel: Selector to set
296 int selector = 0; in regulator_map_voltage_iterate() local
309 selector = i; in regulator_map_voltage_iterate()
314 return selector; in regulator_map_voltage_iterate()
462 unsigned int selector = 0; in regulator_map_voltage_pickable_linear_range() local
478 selector += linear_range_values_in_range(range); in regulator_map_voltage_pickable_linear_range()
485 selector += linear_range_values_in_range(range); in regulator_map_voltage_pickable_linear_range()
489 ret = selector + sel - range->min_sel; in regulator_map_voltage_pickable_linear_range()
499 selector += linear_range_values_in_range(range); in regulator_map_voltage_pickable_linear_range()
515 * @selector: Selector to convert into a voltage
524 unsigned int selector) in regulator_desc_list_voltage_linear() argument
526 if (selector >= desc->n_voltages) in regulator_desc_list_voltage_linear()
529 if (selector < desc->linear_min_sel) in regulator_desc_list_voltage_linear()
532 selector -= desc->linear_min_sel; in regulator_desc_list_voltage_linear()
534 return desc->min_uV + (desc->uV_step * selector); in regulator_desc_list_voltage_linear()
542 * @selector: Selector to convert into a voltage
549 unsigned int selector) in regulator_list_voltage_linear() argument
551 return regulator_desc_list_voltage_linear(rdev->desc, selector); in regulator_list_voltage_linear()
559 * @selector: Selector to convert into a voltage
565 unsigned int selector) in regulator_list_voltage_pickable_linear_range() argument
583 if (all_sels + sel_indexes >= selector) { in regulator_list_voltage_pickable_linear_range()
584 selector -= all_sels; in regulator_list_voltage_pickable_linear_range()
587 * long as the first selector for each pickable in regulator_list_voltage_pickable_linear_range()
590 * selector (Eg. there is no gaps between ranges). in regulator_list_voltage_pickable_linear_range()
595 return range->min + (range->step * selector); in regulator_list_voltage_pickable_linear_range()
609 * @selector: Selector to convert into a voltage
618 unsigned int selector) in regulator_desc_list_voltage_linear_range() argument
626 desc->n_linear_ranges, selector, in regulator_desc_list_voltage_linear_range()
639 * @selector: Selector to convert into a voltage
646 unsigned int selector) in regulator_list_voltage_linear_range() argument
648 return regulator_desc_list_voltage_linear_range(rdev->desc, selector); in regulator_list_voltage_linear_range()
656 * @selector: Selector to convert into a voltage
663 unsigned int selector) in regulator_list_voltage_table() argument
670 if (selector >= rdev->desc->n_voltages) in regulator_list_voltage_table()
672 if (selector < rdev->desc->linear_min_sel) in regulator_list_voltage_table()
675 return rdev->desc->volt_table[selector]; in regulator_list_voltage_table()