Lines Matching refs:ctx
54 static void handle_rpc_func_cmd_i2c_transfer(struct tee_context *ctx,
138 static void handle_rpc_func_cmd_i2c_transfer(struct tee_context *ctx,
236 static void handle_rpc_supp_cmd(struct tee_context *ctx,
255 arg->ret = optee_supp_thrd_req(ctx, arg->cmd, arg->num_params, params);
263 static struct tee_shm *cmd_alloc_suppl(struct tee_context *ctx, size_t sz)
267 struct optee *optee = tee_get_drvdata(ctx->teedev);
275 ret = optee_supp_thrd_req(ctx, OPTEE_MSG_RPC_CMD_SHM_ALLOC, 1, ¶m);
281 shm = tee_shm_get_from_id(optee->supp.ctx, param.u.value.c);
286 static void handle_rpc_func_cmd_shm_alloc(struct tee_context *ctx,
314 shm = cmd_alloc_suppl(ctx, sz);
317 shm = tee_shm_alloc(optee->ctx, sz,
384 static void cmd_free_suppl(struct tee_context *ctx, struct tee_shm *shm)
406 optee_supp_thrd_req(ctx, OPTEE_MSG_RPC_CMD_SHM_FREE, 1, ¶m);
409 static void handle_rpc_func_cmd_shm_free(struct tee_context *ctx,
425 cmd_free_suppl(ctx, shm);
451 static void handle_rpc_func_cmd(struct tee_context *ctx, struct optee *optee,
475 handle_rpc_func_cmd_shm_alloc(ctx, optee, arg, call_ctx);
478 handle_rpc_func_cmd_shm_free(ctx, arg);
481 handle_rpc_func_cmd_i2c_transfer(ctx, arg);
484 handle_rpc_supp_cmd(ctx, arg);
490 * @ctx: context doing the RPC
496 void optee_handle_rpc(struct tee_context *ctx, struct optee_rpc_param *param,
499 struct tee_device *teedev = ctx->teedev;
506 shm = tee_shm_alloc(optee->ctx, param->a1,
533 handle_rpc_func_cmd(ctx, optee, shm, call_ctx);