Home
last modified time | relevance | path

Searched refs:min_sel (Results 1 – 8 of 8) sorted by relevance

/linux-6.6.21/lib/
Dlinear_ranges.c31 return r->max_sel - r->min_sel + 1; in linear_range_values_in_range()
72 return r->min + (r->max_sel - r->min_sel) * r->step; in linear_range_get_max_value()
90 if (r->min_sel > selector || r->max_sel < selector) in linear_range_get_value()
93 *val = r->min + (selector - r->min_sel) * r->step; in linear_range_get_value()
117 if (r[i].min_sel <= selector && r[i].max_sel >= selector) in linear_range_get_value_array()
155 *selector = r->min_sel; in linear_range_get_selector_low()
157 *selector = (val - r->min) / r->step + r->min_sel; in linear_range_get_selector_low()
229 *selector = r->min_sel; in linear_range_get_selector_high()
238 *selector = DIV_ROUND_UP(val - r->min, r->step) + r->min_sel; in linear_range_get_selector_high()
259 *selector = r->min_sel; in linear_range_get_selector_within()
[all …]
/linux-6.6.21/drivers/regulator/
Dmax77693-regulator.c42 unsigned int min_sel; member
71 if (sel <= reg_data->min_sel) in max77693_chg_get_current_limit()
74 sel -= reg_data->min_sel; in max77693_chg_get_current_limit()
97 sel += reg_data->min_sel; in max77693_chg_set_current_limit()
185 .min_sel = 3,
225 .min_sel = 2,
Ds2mps11.c407 #define regulator_desc_s2mps11_buck67810(num, min, step, min_sel, voltages) { \ argument
415 .linear_min_sel = min_sel, \
497 #define regulator_desc_s2mps13_ldo(num, min, step, min_sel) { \ argument
505 .linear_min_sel = min_sel, \
513 #define regulator_desc_s2mps13_buck(num, min, step, min_sel) { \ argument
521 .linear_min_sel = min_sel, \
530 #define regulator_desc_s2mps13_buck7(num, min, step, min_sel) { \ argument
538 .linear_min_sel = min_sel, \
547 #define regulator_desc_s2mps13_buck8_10(num, min, step, min_sel) { \ argument
555 .linear_min_sel = min_sel, \
[all …]
Dhelpers.c197 sel += rdev->desc->linear_ranges[i].min_sel; in regulator_set_voltage_sel_pickable_regmap()
492 ret = selector + sel - range->min_sel; in regulator_map_voltage_pickable_linear_range()
Dmax77857-regulator.c345 range->min = range->step * range->min_sel; in max77857_calc_range()
/linux-6.6.21/include/linux/
Dlinear_range.h24 unsigned int min_sel; member
32 .min_sel = _min_sel, \
/linux-6.6.21/drivers/power/supply/
Drt9471.c182 [RT9471_RANGE_AICR] = { .min = 50000, .min_sel = 1, .max_sel = 63, .step = 50000 },
183 [RT9471_RANGE_MIVR] = { .min = 3900000, .min_sel = 0, .max_sel = 15, .step = 100000 },
184 [RT9471_RANGE_IPRE] = { .min = 50000, .min_sel = 0, .max_sel = 15, .step = 50000 },
185 [RT9471_RANGE_VCHG] = { .min = 3900000, .min_sel = 0, .max_sel = 80, .step = 10000 },
186 [RT9471_RANGE_ICHG] = { .min = 0, .min_sel = 0, .max_sel = 63, .step = 50000 },
187 [RT9471_RANGE_IEOC] = { .min = 50000, .min_sel = 0, .max_sel = 15, .step = 50000 },
/linux-6.6.21/include/linux/regulator/
Ddriver.h56 .min_sel = _min_sel, \