Lines Matching refs:pool
164 struct tee_shm_pool *pool; in tee_shm_pool_alloc() local
169 pool = kzalloc(sizeof(*pool), GFP_KERNEL); in tee_shm_pool_alloc()
170 if (!pool) in tee_shm_pool_alloc()
173 pool->private_mgr = priv_mgr; in tee_shm_pool_alloc()
174 pool->dma_buf_mgr = dmabuf_mgr; in tee_shm_pool_alloc()
176 return pool; in tee_shm_pool_alloc()
187 void tee_shm_pool_free(struct tee_shm_pool *pool) in tee_shm_pool_free() argument
189 if (pool->private_mgr) in tee_shm_pool_free()
190 tee_shm_pool_mgr_destroy(pool->private_mgr); in tee_shm_pool_free()
191 if (pool->dma_buf_mgr) in tee_shm_pool_free()
192 tee_shm_pool_mgr_destroy(pool->dma_buf_mgr); in tee_shm_pool_free()
193 kfree(pool); in tee_shm_pool_free()