Lines Matching refs:allocated
426 unsigned int count, unsigned int allocated, in mempool_alloc_from_pool() argument
433 if (unlikely(pool->curr_nr < count - allocated)) in mempool_alloc_from_pool()
435 while (allocated < count) in mempool_alloc_from_pool()
436 elems[allocated++] = remove_element(pool); in mempool_alloc_from_pool()
448 return allocated; in mempool_alloc_from_pool()
470 return allocated; in mempool_alloc_from_pool()
505 unsigned int allocated = 0; in mempool_alloc_bulk_noprof() local
525 while (allocated < count) { in mempool_alloc_bulk_noprof()
526 elems[allocated] = pool->alloc(gfp_temp, pool->pool_data); in mempool_alloc_bulk_noprof()
527 if (unlikely(!elems[allocated])) in mempool_alloc_bulk_noprof()
529 allocated++; in mempool_alloc_bulk_noprof()
535 allocated = mempool_alloc_from_pool(pool, elems, count, allocated, in mempool_alloc_bulk_noprof()