Lines Matching refs:pool
51 * tee_shm_pool_alloc_res_mem() - Create a shared memory pool from reserved
53 * @priv_info: Information for driver private shared memory pool
54 * @dmabuf_info: Information for dma-buf shared memory pool
72 * Create the pool for driver private shared memory
82 * Create the pool for dma_buf shared memory
155 struct tee_shm_pool *pool;
160 pool = kzalloc(sizeof(*pool), GFP_KERNEL);
161 if (!pool)
164 pool->private_mgr = priv_mgr;
165 pool->dma_buf_mgr = dmabuf_mgr;
167 return pool;
172 * tee_shm_pool_free() - Free a shared memory pool
173 * @pool: The shared memory pool to free
175 * There must be no remaining shared memory allocated from this pool when
178 void tee_shm_pool_free(struct tee_shm_pool *pool)
180 if (pool->private_mgr)
181 tee_shm_pool_mgr_destroy(pool->private_mgr);
182 if (pool->dma_buf_mgr)
183 tee_shm_pool_mgr_destroy(pool->dma_buf_mgr);
184 kfree(pool);