Lines Matching defs:max_ua
44 * @max_ua: maximum requested current, micro Amps
54 * - is always less or equal to max_ua;
62 unsigned int min_ua, unsigned int max_ua, u8 *dst)
66 if (min_ua > max_ua)
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;
85 * There is no risk of overflow 'max_ua' here because:
86 * - max_ua >= limits.high_start
89 current_bits = max_ua / limits->high_step;