Lines Matching refs:call_ctx
679 struct optee_call_ctx *call_ctx) in handle_rpc_func_cmd_shm_alloc() argument
743 call_ctx->pages_list = pages_list; in handle_rpc_func_cmd_shm_alloc()
744 call_ctx->num_entries = page_num; in handle_rpc_func_cmd_shm_alloc()
773 static void free_pages_list(struct optee_call_ctx *call_ctx) in free_pages_list() argument
775 if (call_ctx->pages_list) { in free_pages_list()
776 optee_free_pages_list(call_ctx->pages_list, in free_pages_list()
777 call_ctx->num_entries); in free_pages_list()
778 call_ctx->pages_list = NULL; in free_pages_list()
779 call_ctx->num_entries = 0; in free_pages_list()
783 static void optee_rpc_finalize_call(struct optee_call_ctx *call_ctx) in optee_rpc_finalize_call() argument
785 free_pages_list(call_ctx); in optee_rpc_finalize_call()
790 struct optee_call_ctx *call_ctx) in handle_rpc_func_cmd() argument
795 free_pages_list(call_ctx); in handle_rpc_func_cmd()
796 handle_rpc_func_cmd_shm_alloc(ctx, optee, arg, call_ctx); in handle_rpc_func_cmd()
817 struct optee_call_ctx *call_ctx) in optee_handle_rpc() argument
865 handle_rpc_func_cmd(ctx, optee, arg, call_ctx); in optee_handle_rpc()
893 struct optee_call_ctx call_ctx = { }; in optee_smc_do_call_with_arg() local
951 optee_handle_rpc(ctx, rpc_arg, ¶m, &call_ctx); in optee_smc_do_call_with_arg()
958 optee_rpc_finalize_call(&call_ctx); in optee_smc_do_call_with_arg()