Lines Matching refs:TeeSmc32Arg

22 static TEEC_Result OpteeSmcCall(t_teesmc32_arg *TeeSmc32Arg);
54 t_teesmc32_arg *TeeSmc32Arg = NULL; in TEEC_SMC_OpenSession() local
66 TeeSmc32Arg = (t_teesmc32_arg *)OpteeClientMemAlloc(TeeSmc32ArgLength); in TEEC_SMC_OpenSession()
68 if (TeeSmc32Arg == NULL) { in TEEC_SMC_OpenSession()
73 memset(TeeSmc32Arg, 0, TeeSmc32ArgLength); in TEEC_SMC_OpenSession()
87 TeeSmc32Arg->cmd = TEESMC_CMD_OPEN_SESSION; in TEEC_SMC_OpenSession()
88 TeeSmc32Arg->num_params = TEEC_CONFIG_PAYLOAD_REF_COUNT + MetaNum; in TEEC_SMC_OpenSession()
90 TeeSmc32Param = TEESMC32_GET_PARAMS(TeeSmc32Arg); in TEEC_SMC_OpenSession()
120 TeecResult = OpteeSmcCall(TeeSmc32Arg); in TEEC_SMC_OpenSession()
124 session->id = TeeSmc32Arg->session; in TEEC_SMC_OpenSession()
125 TeecResult = TeeSmc32Arg->ret; in TEEC_SMC_OpenSession()
126 *error_origin = TeeSmc32Arg->ret_origin; in TEEC_SMC_OpenSession()
131 if (TeeSmc32Arg != NULL) in TEEC_SMC_OpenSession()
132 OpteeClientMemFree(TeeSmc32Arg); in TEEC_SMC_OpenSession()
154 t_teesmc32_arg *TeeSmc32Arg = NULL; in TEEC_SMC_CloseSession() local
161 TeeSmc32Arg = (t_teesmc32_arg *)OpteeClientMemAlloc(TeeSmc32ArgLength); in TEEC_SMC_CloseSession()
163 if (TeeSmc32Arg == NULL) { in TEEC_SMC_CloseSession()
168 memset(TeeSmc32Arg, 0, TeeSmc32ArgLength); in TEEC_SMC_CloseSession()
170 TeeSmc32Arg->cmd = TEESMC_CMD_CLOSE_SESSION; in TEEC_SMC_CloseSession()
171 TeeSmc32Arg->session = session->id; in TEEC_SMC_CloseSession()
175 TeecResult = OpteeSmcCall(TeeSmc32Arg); in TEEC_SMC_CloseSession()
180 TeecResult = TeeSmc32Arg->ret; in TEEC_SMC_CloseSession()
181 *error_origin = TeeSmc32Arg->ret_origin; in TEEC_SMC_CloseSession()
184 if (TeeSmc32Arg != NULL) in TEEC_SMC_CloseSession()
185 OpteeClientMemFree(TeeSmc32Arg); in TEEC_SMC_CloseSession()
201 t_teesmc32_arg *TeeSmc32Arg = NULL; in TEEC_SMC_InvokeCommand() local
209 TeeSmc32Arg = (t_teesmc32_arg *)OpteeClientMemAlloc(TeeSmc32ArgLength); in TEEC_SMC_InvokeCommand()
211 if (TeeSmc32Arg == NULL) { in TEEC_SMC_InvokeCommand()
216 memset(TeeSmc32Arg, 0, TeeSmc32ArgLength); in TEEC_SMC_InvokeCommand()
218 TeeSmc32Arg->cmd = TEESMC_CMD_INVOKE_COMMAND; in TEEC_SMC_InvokeCommand()
219 TeeSmc32Arg->ta_func = cmd_id; in TEEC_SMC_InvokeCommand()
220 TeeSmc32Arg->session = session->id; in TEEC_SMC_InvokeCommand()
221 TeeSmc32Arg->num_params = TEEC_CONFIG_PAYLOAD_REF_COUNT; in TEEC_SMC_InvokeCommand()
223 TeeSmc32Param = TEESMC32_GET_PARAMS(TeeSmc32Arg); in TEEC_SMC_InvokeCommand()
229 TeecResult = OpteeSmcCall(TeeSmc32Arg); in TEEC_SMC_InvokeCommand()
233 TeecResult = TeeSmc32Arg->ret; in TEEC_SMC_InvokeCommand()
234 *error_origin = TeeSmc32Arg->ret_origin; in TEEC_SMC_InvokeCommand()
239 if (TeeSmc32Arg != NULL) in TEEC_SMC_InvokeCommand()
240 OpteeClientMemFree(TeeSmc32Arg); in TEEC_SMC_InvokeCommand()
329 TEEC_Result OpteeSmcCall(t_teesmc32_arg *TeeSmc32Arg) in OpteeSmcCall() argument
336 ArmSmcArgs.Arg2 = (uint32_t) (size_t)TeeSmc32Arg; in OpteeSmcCall()