Lines Matching refs:call_ctx
659 struct optee_call_ctx *call_ctx) in handle_rpc_func_cmd_shm_alloc() argument
723 call_ctx->pages_list = pages_list; in handle_rpc_func_cmd_shm_alloc()
724 call_ctx->num_entries = page_num; in handle_rpc_func_cmd_shm_alloc()
753 static void free_pages_list(struct optee_call_ctx *call_ctx) in free_pages_list() argument
755 if (call_ctx->pages_list) { in free_pages_list()
756 optee_free_pages_list(call_ctx->pages_list, in free_pages_list()
757 call_ctx->num_entries); in free_pages_list()
758 call_ctx->pages_list = NULL; in free_pages_list()
759 call_ctx->num_entries = 0; in free_pages_list()
763 static void optee_rpc_finalize_call(struct optee_call_ctx *call_ctx) in optee_rpc_finalize_call() argument
765 free_pages_list(call_ctx); in optee_rpc_finalize_call()
770 struct optee_call_ctx *call_ctx) in handle_rpc_func_cmd() argument
775 free_pages_list(call_ctx); in handle_rpc_func_cmd()
776 handle_rpc_func_cmd_shm_alloc(ctx, optee, arg, call_ctx); in handle_rpc_func_cmd()
797 struct optee_call_ctx *call_ctx) in optee_handle_rpc() argument
845 handle_rpc_func_cmd(ctx, optee, arg, call_ctx); in optee_handle_rpc()
873 struct optee_call_ctx call_ctx = { }; in optee_smc_do_call_with_arg() local
931 optee_handle_rpc(ctx, rpc_arg, ¶m, &call_ctx); in optee_smc_do_call_with_arg()
938 optee_rpc_finalize_call(&call_ctx); in optee_smc_do_call_with_arg()