Lines Matching refs:element_size
41 int data_size = fa->element_size * fa->total_nr_elements; in elements_fit_in_base()
88 struct flex_array *flex_array_alloc(int element_size, unsigned int total, in flex_array_alloc() argument
96 if (element_size) { in flex_array_alloc()
97 elems_per_part = FLEX_ARRAY_ELEMENTS_PER_PART(element_size); in flex_array_alloc()
108 ret->element_size = element_size; in flex_array_alloc()
162 return part_offset * fa->element_size; in index_inside_part()
207 if (!fa->element_size) in flex_array_put()
218 memcpy(dst, src, fa->element_size); in flex_array_put()
238 if (!fa->element_size) in flex_array_clear()
249 memset(dst, FLEX_ARRAY_FREE, fa->element_size); in flex_array_clear()
288 if (!fa->element_size) in flex_array_prealloc()
320 if (!fa->element_size) in flex_array_get()
382 if (!fa->total_nr_elements || !fa->element_size) in flex_array_shrink()