Lines Matching full:capacity
32 uint32_t capacity, in dal_vector_construct() argument
37 if (!struct_size || !capacity) { in dal_vector_construct()
43 vector->container = kcalloc(capacity, struct_size, GFP_KERNEL); in dal_vector_construct()
46 vector->capacity = capacity; in dal_vector_construct()
85 vector->capacity = count; in dal_vector_presized_costruct()
113 uint32_t capacity, in dal_vector_create() argument
121 if (dal_vector_construct(vector, ctx, capacity, struct_size)) in dal_vector_create()
134 vector->capacity = 0; in dal_vector_destruct()
209 if (vector->count == vector->capacity) { in dal_vector_insert_at()
212 calc_increased_capacity(vector->capacity))) in dal_vector_insert_at()
255 vector->capacity, in dal_vector_clone()
274 vec_cloned->struct_size * vec_cloned->capacity); in dal_vector_clone()
281 return vector->capacity; in dal_vector_capacity()
284 bool dal_vector_reserve(struct vector *vector, uint32_t capacity) in dal_vector_reserve() argument
288 if (capacity <= vector->capacity) in dal_vector_reserve()
292 capacity * vector->struct_size, GFP_KERNEL); in dal_vector_reserve()
296 vector->capacity = capacity; in dal_vector_reserve()