Lines Matching refs:min_idx
67 uint16_t min_idx; member
84 .min_idx = (_min_idx), \
97 return r->max_idx - r->min_idx + 1U; in linear_range_values_count()
129 return r->min + (int32_t)(r->step * (r->max_idx - r->min_idx)); in linear_range_get_max_value()
145 if ((idx < r->min_idx) || (idx > r->max_idx)) { in linear_range_get_value()
149 *val = r->min + (int32_t)(r->step * (idx - r->min_idx)); in linear_range_get_value()
197 *idx = r->min_idx; in linear_range_get_index()
207 *idx = r->min_idx; in linear_range_get_index()
209 *idx = r->min_idx + DIV_ROUND_UP((uint32_t)(val - r->min), in linear_range_get_index()
276 *idx = r->min_idx; in linear_range_get_win_index()
286 *idx = r->min_idx; in linear_range_get_win_index()
290 *idx = r->min_idx + DIV_ROUND_UP((uint32_t)(val_min - r->min), r->step); in linear_range_get_win_index()
291 if ((r->min + r->step * (*idx - r->min_idx)) > val_max) { in linear_range_get_win_index()