Lines Matching refs:selector
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()
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()
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()
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()
595 return range->min + (range->step * selector); in regulator_list_voltage_pickable_linear_range()
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()
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()
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()