Lines Matching defs:allocated
201 * May be called on a zeroed but uninitialized mempool (i.e. allocated with
217 * @pool: pointer to the memory pool which was allocated via
275 * allocated for this pool.
298 * allocated for this pool.
335 * @pool: pointer to the memory pool which was allocated via
338 * allocated for this pool.
413 unsigned int count, unsigned int allocated,
420 if (unlikely(pool->curr_nr < count - allocated))
422 while (allocated < count)
423 elems[allocated++] = remove_element(pool);
435 return allocated;
457 return allocated;
477 * @count: number of entries in @elem that need to be allocated
492 unsigned int allocated = 0;
512 while (allocated < count) {
513 elems[allocated] = pool->alloc(gfp_temp, pool->pool_data);
514 if (unlikely(!elems[allocated]))
516 allocated++;
522 allocated = mempool_alloc_from_pool(pool, elems, count, allocated,
541 * Return: pointer to the allocated element or %NULL when failing to allocate
594 * Return: pointer to the allocated element or %NULL if no elements are
645 * if curr_nr + #allocated == min_nr. Testing curr_nr < min_nr
654 * allocated after that are subject to the same guarantee.