Lines Matching full:selector
178 * written if the range changed, even if the old selector was same as in write_separate_vsel_and_range()
194 * @sel: Selector to set
275 * @sel: Selector to set
316 int selector = 0; in regulator_map_voltage_iterate() local
329 selector = i; in regulator_map_voltage_iterate()
334 return selector; in regulator_map_voltage_iterate()
482 unsigned int selector = 0; in regulator_map_voltage_pickable_linear_range() local
498 selector += linear_range_values_in_range(range); in regulator_map_voltage_pickable_linear_range()
505 selector += linear_range_values_in_range(range); in regulator_map_voltage_pickable_linear_range()
509 ret = selector + sel - range->min_sel; in regulator_map_voltage_pickable_linear_range()
519 selector += linear_range_values_in_range(range); in regulator_map_voltage_pickable_linear_range()
535 * @selector: Selector to convert into a voltage
544 unsigned int selector) in regulator_desc_list_voltage_linear() argument
546 if (selector >= desc->n_voltages) in regulator_desc_list_voltage_linear()
549 if (selector < desc->linear_min_sel) in regulator_desc_list_voltage_linear()
552 selector -= desc->linear_min_sel; in regulator_desc_list_voltage_linear()
554 return desc->min_uV + (desc->uV_step * selector); in regulator_desc_list_voltage_linear()
562 * @selector: Selector to convert into a voltage
569 unsigned int selector) in regulator_list_voltage_linear() argument
571 return regulator_desc_list_voltage_linear(rdev->desc, selector); in regulator_list_voltage_linear()
579 * @selector: Selector to convert into a voltage
585 unsigned int selector) in regulator_list_voltage_pickable_linear_range() argument
603 if (all_sels + sel_indexes >= selector) { in regulator_list_voltage_pickable_linear_range()
604 selector -= all_sels; in regulator_list_voltage_pickable_linear_range()
607 * long as the first selector for each pickable in regulator_list_voltage_pickable_linear_range()
610 * selector (Eg. there is no gaps between ranges). in regulator_list_voltage_pickable_linear_range()
615 return range->min + (range->step * selector); in regulator_list_voltage_pickable_linear_range()
629 * @selector: Selector to convert into a voltage
638 unsigned int selector) in regulator_desc_list_voltage_linear_range() argument
646 desc->n_linear_ranges, selector, in regulator_desc_list_voltage_linear_range()
659 * @selector: Selector to convert into a voltage
666 unsigned int selector) in regulator_list_voltage_linear_range() argument
668 return regulator_desc_list_voltage_linear_range(rdev->desc, selector); in regulator_list_voltage_linear_range()
676 * @selector: Selector to convert into a voltage
683 unsigned int selector) in regulator_list_voltage_table() argument
690 if (selector >= rdev->desc->n_voltages) in regulator_list_voltage_table()
692 if (selector < rdev->desc->linear_min_sel) in regulator_list_voltage_table()
695 return rdev->desc->volt_table[selector]; in regulator_list_voltage_table()