Lines Matching refs:count
48 vector->count = 0;
55 uint32_t count,
63 if (!struct_size || !count) {
69 vector->container = kcalloc(count, struct_size, GFP_KERNEL);
78 for (i = 0; i < count; ++i)
85 vector->capacity = count;
87 vector->count = count;
133 vector->count = 0;
150 return vector->count;
157 if (vector->container == NULL || index >= vector->count)
166 if (index >= vector->count)
169 if (index != vector->count - 1)
173 (vector->count - index - 1) * vector->struct_size);
174 vector->count -= 1;
209 if (vector->count == vector->capacity) {
218 if (vector->count && position < vector->count)
222 vector->struct_size * (vector->count - position));
229 vector->count++;
238 return dal_vector_insert_at(vector, item, vector->count);
245 uint32_t count;
248 count = dal_vector_get_count(vector);
250 if (count == 0)
251 /* when count is 0 we still want to create clone of the vector
263 vec_cloned = dal_vector_presized_create(vector->ctx, count,
305 vector->count = 0;