Lines Matching refs:selector
176 int selector = 0; in regulator_map_voltage_iterate() local
189 selector = i; in regulator_map_voltage_iterate()
194 return selector; in regulator_map_voltage_iterate()
350 unsigned int selector) in regulator_list_voltage_linear() argument
352 if (selector >= rdev->desc->n_voltages) in regulator_list_voltage_linear()
354 if (selector < rdev->desc->linear_min_sel) in regulator_list_voltage_linear()
357 selector -= rdev->desc->linear_min_sel; in regulator_list_voltage_linear()
359 return rdev->desc->min_uV + (rdev->desc->uV_step * selector); in regulator_list_voltage_linear()
374 unsigned int selector) in regulator_list_voltage_linear_range() argument
387 if (!(selector >= range->min_sel && in regulator_list_voltage_linear_range()
388 selector <= range->max_sel)) in regulator_list_voltage_linear_range()
391 selector -= range->min_sel; in regulator_list_voltage_linear_range()
393 return range->min_uV + (range->uV_step * selector); in regulator_list_voltage_linear_range()
411 unsigned int selector) in regulator_list_voltage_table() argument
418 if (selector >= rdev->desc->n_voltages) in regulator_list_voltage_table()
421 return rdev->desc->volt_table[selector]; in regulator_list_voltage_table()