Lines Matching full:range
3 * helpers to map values in a linear range to range index
18 * linear_range_values_in_range - return the amount of values in a range
19 * @r: pointer to linear range where values are counted
21 * Compute the amount of values in range pointed by @r. Note, values can
22 * be all equal - range with selectors 0,...,2 with step 0 still contains
25 * Return: the amount of values in range pointed by @r
41 * be all equal - range with selectors 0,...,2 with step 0 still contains
65 * linear_range_get_max_value - return the largest value in a range
66 * @r: pointer to linear range where value is looked from
68 * Return: the largest value in the given range
77 * linear_range_get_value - fetch a value from given range
78 * @r: pointer to linear range where value is looked from
125 * linear_range_get_selector_low - return linear range selector for value
126 * @r: pointer to linear range where selector is looked from
129 * @found: flag to indicate that given value was in the range
131 * Return selector for which range value is closest match for given
133 * value. If given value is in the range, then @found is set true.
135 * Return: 0 on success, -EINVAL if range is invalid or does not contain
164 * linear_range_get_selector_low_array - return linear range selector for value
169 * @found: flag to indicate that given value was in the range
171 * Scan array of ranges for selector for which range value matches given
173 * value. If given value is found to be in a range scanning is stopped and
174 * @found is set true. If a range with values smaller than given value is found
175 * but the range max is being smaller than given value, then the range's
179 * Return: 0 on success, -EINVAL if range array is invalid or does not contain
180 * range with a value smaller or equal to given value
206 * linear_range_get_selector_high - return linear range selector for value
207 * @r: pointer to linear range where selector is looked from
210 * @found: flag to indicate that given value was in the range
212 * Return selector for which range value is closest match for given
214 * value. If given value is in the range, then @found is set true.
216 * Return: 0 on success, -EINVAL if range is invalid or does not contain
245 * linear_range_get_selector_within - return linear range selector for value
246 * @r: pointer to linear range where selector is looked from
250 * Return selector for which range value is closest match for given