Lines Matching defs:limits
42 * @limits: constraints for charger, matching the MBCICHWRC register
53 * - is always between <limits.min, limits.max>;
59 * is outside of given charger limits) and 'dst' is not set.
61 int maxim_charger_calc_reg_current(const struct maxim_charger_current *limits,
69 if (min_ua > limits->max || max_ua < limits->min)
72 if (max_ua < limits->high_start) {
81 /* max_ua is in range: <high_start, infinite>, cut it to limits.max */
82 max_ua = min(limits->max, max_ua);
83 max_ua -= limits->high_start;
86 * - max_ua >= limits.high_start
87 * - BUILD_BUG checks that 'limits' are: max >= high_start + high_step
89 current_bits = max_ua / limits->high_step;
91 /* Turn Low Bit on (use range <limits.high_start, limits.max>) ... */