Home
last modified time | relevance | path

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

/openbmc/linux/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()
117 if (r[i].min_sel <= selector && r[i].max_sel >= selector) in linear_range_get_value_array()
148 *selector = r->max_sel; in linear_range_get_selector_low()
236 *selector = r->max_sel; in linear_range_get_selector_high()
264 *selector = r->max_sel; in linear_range_get_selector_within()
/openbmc/linux/include/linux/
H A Dlinear_range.h25 unsigned int max_sel; member
33 .max_sel = _max_sel, \
/openbmc/linux/drivers/power/supply/
H A Drt9471.c195 [RT9471_RANGE_AICR] = { .min = 50000, .min_sel = 1, .max_sel = 63, .step = 50000 },
196 [RT9471_RANGE_MIVR] = { .min = 3900000, .min_sel = 0, .max_sel = 15, .step = 100000 },
197 [RT9471_RANGE_IPRE] = { .min = 50000, .min_sel = 0, .max_sel = 15, .step = 50000 },
198 [RT9471_RANGE_VCHG] = { .min = 3900000, .min_sel = 0, .max_sel = 80, .step = 10000 },
199 [RT9471_RANGE_ICHG] = { .min = 0, .min_sel = 0, .max_sel = 63, .step = 50000 },
200 [RT9471_RANGE_IEOC] = { .min = 50000, .min_sel = 0, .max_sel = 15, .step = 50000 },
H A Dmt6370-charger.c210 val = r->max_sel; in mt6370_chg_field_set()
H A Drt9467-charger.c379 value = range->max_sel; in rt9467_set_value_from_ranges()
/openbmc/u-boot/drivers/power/regulator/
H A Dstpmu1.c17 int max_sel; member
35 .max_sel = _max_sel, \
52 if (sel >= range->min_sel && sel <= range->max_sel) in stpmu1_output_find_uv()
73 (range->max_sel - range->min_sel) * range->step) in stpmu1_output_find_sel()
/openbmc/linux/drivers/clk/bcm/
H A Dclk-kona-setup.c290 u32 max_sel; in sel_valid() local
301 max_sel = sel->parent_sel[sel->parent_count - 1]; in sel_valid()
303 if (max_sel > limit) { in sel_valid()
306 __func__, clock_name, max_sel, in sel_valid()
/openbmc/linux/include/linux/regulator/
H A Ddriver.h57 .max_sel = _max_sel, \