Lines Matching refs:optee
18 struct optee *optee; member
39 rp->protmem = tee_shm_alloc_dma_mem(rp->optee->ctx, rp->page_count); in init_dyn_protmem()
53 rc = rp->optee->ops->lend_protmem(rp->optee, rp->protmem, in init_dyn_protmem()
78 rp->optee->ops->reclaim_protmem(rp->optee, rp->protmem); in init_dyn_protmem()
114 rp->optee->ops->reclaim_protmem(rp->optee, rp->protmem); in release_dyn_protmem()
207 static int get_protmem_config(struct optee *optee, u32 use_case, in get_protmem_config() argument
229 shm_param = tee_shm_alloc_priv_buf(optee->ctx, in get_protmem_config()
236 msg_arg = optee_get_msg_arg(optee->ctx, ARRAY_SIZE(params), &entry, in get_protmem_config()
244 rc = optee->ops->to_msg_param(optee, msg_arg->params, in get_protmem_config()
249 rc = optee->ops->do_call_with_arg(optee->ctx, shm, offs, false); in get_protmem_config()
257 rc = optee->ops->from_msg_param(optee, params, ARRAY_SIZE(params), in get_protmem_config()
282 optee_free_msg_arg(optee->ctx, entry, offs); in get_protmem_config()
289 struct tee_protmem_pool *optee_protmem_alloc_dyn_pool(struct optee *optee, in optee_protmem_alloc_dyn_pool() argument
302 rc = get_protmem_config(optee, id, &min_size, &pa_width, NULL, in optee_protmem_alloc_dyn_pool()
313 rc = get_protmem_config(optee, id, &min_size, &pa_width, in optee_protmem_alloc_dyn_pool()
319 rc = optee_set_dma_mask(optee, pa_width); in optee_protmem_alloc_dyn_pool()
324 rp->optee = optee; in optee_protmem_alloc_dyn_pool()