Searched refs:element_size (Results 1 – 2 of 2) sorted by relevance
/lib/ |
D | flex_array.c | 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() 157 return part_offset * fa->element_size; in index_inside_part() 202 if (!fa->element_size) in flex_array_put() 213 memcpy(dst, src, fa->element_size); in flex_array_put() 233 if (!fa->element_size) in flex_array_clear() 244 memset(dst, FLEX_ARRAY_FREE, fa->element_size); in flex_array_clear() [all …]
|
D | lru_cache.c | 136 lc->element_size = e_size; in lc_create() 149 memset(p, 0, lc->element_size); in lc_create() 227 memset(p, 0, lc->element_size); in lc_reset()
|