Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/lib/
H A 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()
H A Dtest_linear_ranges.c112 .min_sel = RANGE1_MIN_SEL,
117 .min_sel = RANGE2_MIN_SEL,
/OK3568_Linux_fs/u-boot/drivers/power/regulator/
H A Drk806.c70 u8 min_sel; member
190 val = info->min_sel; in _buck_set_value()
192 val = ((uvolt - info->min_uv) / info->step_uv) + info->min_sel; in _buck_set_value()
234 val = info->min_sel; in _buck_set_suspend_value()
236 val = ((uvolt - info->min_uv) / info->step_uv) + info->min_sel; in _buck_set_suspend_value()
594 if (val >= info->min_sel && val <= info->max_sel) in buck_get_value()
600 if (val <= info->max_sel && val >= info->min_sel) in buck_get_value()
605 return info->min_uv + (val - info->min_sel) * info->step_uv; in buck_get_value()
630 if (val <= info->max_sel && val >= info->min_sel) in buck_get_suspend_value()
636 if (val <= info->max_sel && val >= info->min_sel) in buck_get_suspend_value()
[all …]
H A Drk8xx.c89 u8 min_sel; member
289 val = info->min_sel; in _buck_set_value()
291 val = ((uvolt - info->min_uv) / info->step_uv) + info->min_sel; in _buck_set_value()
373 val = info->min_sel; in _buck_set_suspend_value()
375 val = ((uvolt - info->min_uv) / info->step_uv) + info->min_sel; in _buck_set_suspend_value()
802 if (val >= info->min_sel && val <= info->max_sel) in buck_get_value()
808 if (val <= info->max_sel && val >= info->min_sel) in buck_get_value()
813 return info->min_uv + (val - info->min_sel) * info->step_uv; in buck_get_value()
838 if (val <= info->max_sel && val >= info->min_sel) in buck_get_suspend_value()
844 if (val <= info->max_sel && val >= info->min_sel) in buck_get_suspend_value()
[all …]
/OK3568_Linux_fs/kernel/drivers/regulator/
H A 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,
H A 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 …]
H A Dhelpers.c195 sel += rdev->desc->linear_ranges[i].min_sel; in regulator_set_voltage_sel_pickable_regmap()
489 ret = selector + sel - range->min_sel; in regulator_map_voltage_pickable_linear_range()
/OK3568_Linux_fs/kernel/drivers/power/supply/
H A Dbd99954-charger.c774 .min_sel = 0x0,
784 .min_sel = 0x0,
789 .min_sel = 0x11,
802 .min_sel = 0,
807 .min_sel = 0xA0,
812 .min_sel = 0x4B0,
822 .min_sel = 0,
827 .min_sel = 0x28,
832 .min_sel = 0x12C,
842 .min_sel = 0,
[all …]
H A Dbd70528-charger.c343 .min_sel = 0,
349 .min_sel = 0x23,
355 .min_sel = 0x27,
361 .min_sel = 0x2e,
367 .min_sel = 0x35,
381 .min_sel = 0,
387 .min_sel = 0x13,
/OK3568_Linux_fs/kernel/include/linux/
H A Dlinear_range.h24 unsigned int min_sel; member
/OK3568_Linux_fs/kernel/include/linux/regulator/
H A Ddriver.h48 .min_sel = _min_sel, \