Searched refs:min_idx (Results 1 – 3 of 3) sorted by relevance
67 uint16_t min_idx; member84 .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()[all …]
44 zassert_equal(r[0].min_idx, 0U); in ZTEST()
305 return linear_range_get_value(&buck2_range, idx + buck2_range.min_idx, volt_uv); in regulator_npm6001_list_voltage()