Lines Matching full:optee
187 static void handle_rpc_func_cmd_wq(struct optee *optee, in handle_rpc_func_cmd_wq() argument
199 wq_sleep(&optee->wait_queue, arg->params[0].u.value.b); in handle_rpc_func_cmd_wq()
202 wq_wakeup(&optee->wait_queue, arg->params[0].u.value.b); in handle_rpc_func_cmd_wq()
267 struct optee *optee = tee_get_drvdata(ctx->teedev); in cmd_alloc_suppl() local
279 mutex_lock(&optee->supp.mutex); in cmd_alloc_suppl()
281 shm = tee_shm_get_from_id(optee->supp.ctx, param.u.value.c); in cmd_alloc_suppl()
282 mutex_unlock(&optee->supp.mutex); in cmd_alloc_suppl()
287 struct optee *optee, in handle_rpc_func_cmd_shm_alloc() argument
317 shm = tee_shm_alloc(optee->ctx, sz, in handle_rpc_func_cmd_shm_alloc()
451 static void handle_rpc_func_cmd(struct tee_context *ctx, struct optee *optee, in handle_rpc_func_cmd() argument
468 handle_rpc_func_cmd_wq(optee, arg); in handle_rpc_func_cmd()
475 handle_rpc_func_cmd_shm_alloc(ctx, optee, arg, call_ctx); in handle_rpc_func_cmd()
500 struct optee *optee = tee_get_drvdata(teedev); in optee_handle_rpc() local
506 shm = tee_shm_alloc(optee->ctx, param->a1, in optee_handle_rpc()
533 handle_rpc_func_cmd(ctx, optee, shm, call_ctx); in optee_handle_rpc()