Lines Matching refs:new_pool

1198 	__qdf_mempool_ctxt_t *new_pool = NULL;  in __qdf_mempool_init()  local
1209 new_pool = (__qdf_mempool_ctxt_t *) in __qdf_mempool_init()
1211 if (!new_pool) in __qdf_mempool_init()
1214 memset(new_pool, 0, sizeof(*new_pool)); in __qdf_mempool_init()
1216 new_pool->flags = flags; in __qdf_mempool_init()
1217 new_pool->elem_size = elem_size; in __qdf_mempool_init()
1218 new_pool->max_elem = elem_cnt; in __qdf_mempool_init()
1219 *pool_addr = new_pool; in __qdf_mempool_init()
1231 new_pool = osdev->mem_pool[pool_id] = (__qdf_mempool_ctxt_t *) in __qdf_mempool_init()
1233 if (!new_pool) in __qdf_mempool_init()
1236 memset(new_pool, 0, sizeof(*new_pool)); in __qdf_mempool_init()
1238 new_pool->flags = flags; in __qdf_mempool_init()
1239 new_pool->pool_id = pool_id; in __qdf_mempool_init()
1242 new_pool->elem_size = roundup(elem_size, L1_CACHE_BYTES); in __qdf_mempool_init()
1243 new_pool->mem_size = elem_cnt * new_pool->elem_size + in __qdf_mempool_init()
1246 new_pool->pool_mem = kzalloc(new_pool->mem_size, GFP_KERNEL); in __qdf_mempool_init()
1247 if (!new_pool->pool_mem) { in __qdf_mempool_init()
1249 kfree(new_pool); in __qdf_mempool_init()
1254 spin_lock_init(&new_pool->lock); in __qdf_mempool_init()
1257 aligned_pool_mem = (unsigned long)(new_pool->pool_mem) + in __qdf_mempool_init()
1258 ((align) ? (unsigned long)(new_pool->pool_mem)%align:0); in __qdf_mempool_init()
1259 STAILQ_INIT(&new_pool->free_list); in __qdf_mempool_init()
1262 STAILQ_INSERT_TAIL(&(new_pool->free_list), in __qdf_mempool_init()
1264 (new_pool->elem_size * i)), mempool_entry); in __qdf_mempool_init()
1267 new_pool->free_cnt = elem_cnt; in __qdf_mempool_init()
1268 *pool_addr = new_pool; in __qdf_mempool_init()