Home
last modified time | relevance | path

Searched refs:element_nr (Results 1 – 1 of 1) sorted by relevance

/lib/
Dflex_array.c120 unsigned int element_nr) in fa_element_to_part_nr() argument
127 return reciprocal_divide(element_nr, fa->reciprocal_elems); in fa_element_to_part_nr()
156 unsigned int element_nr, in index_inside_part() argument
161 part_offset = element_nr - part_nr * fa->elems_per_part; in index_inside_part()
198 int flex_array_put(struct flex_array *fa, unsigned int element_nr, void *src, in flex_array_put() argument
205 if (element_nr >= fa->total_nr_elements) in flex_array_put()
212 part_nr = fa_element_to_part_nr(fa, element_nr); in flex_array_put()
217 dst = &part->elements[index_inside_part(fa, element_nr, part_nr)]; in flex_array_put()
230 int flex_array_clear(struct flex_array *fa, unsigned int element_nr) in flex_array_clear() argument
236 if (element_nr >= fa->total_nr_elements) in flex_array_clear()
[all …]