Lines Matching refs:res

155 	TEE_Result res = TEE_SUCCESS;  in TEE_OpenTASession()  local
168 res = copy_param(&up, paramTypes, params, &tmp_buf, &tmp_len, tmp_va); in TEE_OpenTASession()
169 if (res) in TEE_OpenTASession()
171 res = _utee_open_ta_session(destination, cancellationRequestTimeout, in TEE_OpenTASession()
187 if (res != TEE_SUCCESS) in TEE_OpenTASession()
191 return res; in TEE_OpenTASession()
197 TEE_Result res = _utee_close_ta_session((uintptr_t)session); in TEE_CloseTASession() local
199 if (res != TEE_SUCCESS) in TEE_CloseTASession()
200 TEE_Panic(res); in TEE_CloseTASession()
210 TEE_Result res = TEE_SUCCESS; in TEE_InvokeTACommand() local
225 res = copy_param(&up, paramTypes, params, &tmp_buf, &tmp_len, tmp_va); in TEE_InvokeTACommand()
226 if (res) in TEE_InvokeTACommand()
228 res = _utee_invoke_ta_command((uintptr_t)session, in TEE_InvokeTACommand()
244 return res; in TEE_InvokeTACommand()
246 if (res != TEE_SUCCESS && in TEE_InvokeTACommand()
247 res != TEE_ERROR_OUT_OF_MEMORY && in TEE_InvokeTACommand()
248 res != TEE_ERROR_TARGET_DEAD) in TEE_InvokeTACommand()
249 TEE_Panic(res); in TEE_InvokeTACommand()
251 return res; in TEE_InvokeTACommand()
259 TEE_Result res = _utee_get_cancellation_flag(&c); in TEE_GetCancellationFlag() local
261 if (res != TEE_SUCCESS) in TEE_GetCancellationFlag()
269 TEE_Result res = _utee_unmask_cancellation(&old_mask); in TEE_UnmaskCancellation() local
271 if (res != TEE_SUCCESS) in TEE_UnmaskCancellation()
272 TEE_Panic(res); in TEE_UnmaskCancellation()
279 TEE_Result res = _utee_mask_cancellation(&old_mask); in TEE_MaskCancellation() local
281 if (res != TEE_SUCCESS) in TEE_MaskCancellation()
282 TEE_Panic(res); in TEE_MaskCancellation()
291 TEE_Result res; in TEE_CheckMemoryAccessRights() local
297 res = _utee_check_access_rights(accessFlags, buffer, size); in TEE_CheckMemoryAccessRights()
298 if (res != TEE_SUCCESS) in TEE_CheckMemoryAccessRights()
306 res = TEE_SUCCESS; in TEE_CheckMemoryAccessRights()
308 return res; in TEE_CheckMemoryAccessRights()
340 TEE_Result res = _utee_get_time(UTEE_TIME_CAT_SYSTEM, time); in TEE_GetSystemTime() local
342 if (res != TEE_SUCCESS) in TEE_GetSystemTime()
343 TEE_Panic(res); in TEE_GetSystemTime()
348 TEE_Result res = _utee_wait(timeout); in TEE_Wait() local
350 if (res != TEE_SUCCESS && res != TEE_ERROR_CANCEL) in TEE_Wait()
351 TEE_Panic(res); in TEE_Wait()
353 return res; in TEE_Wait()
358 TEE_Result res; in TEE_GetTAPersistentTime() local
360 res = _utee_get_time(UTEE_TIME_CAT_TA_PERSISTENT, time); in TEE_GetTAPersistentTime()
362 if (res != TEE_SUCCESS && res != TEE_ERROR_OVERFLOW) { in TEE_GetTAPersistentTime()
367 if (res != TEE_SUCCESS && in TEE_GetTAPersistentTime()
368 res != TEE_ERROR_TIME_NOT_SET && in TEE_GetTAPersistentTime()
369 res != TEE_ERROR_TIME_NEEDS_RESET && in TEE_GetTAPersistentTime()
370 res != TEE_ERROR_OVERFLOW && in TEE_GetTAPersistentTime()
371 res != TEE_ERROR_OUT_OF_MEMORY) in TEE_GetTAPersistentTime()
372 TEE_Panic(res); in TEE_GetTAPersistentTime()
374 return res; in TEE_GetTAPersistentTime()
379 TEE_Result res; in TEE_SetTAPersistentTime() local
381 res = _utee_set_ta_time(time); in TEE_SetTAPersistentTime()
383 if (res != TEE_SUCCESS && in TEE_SetTAPersistentTime()
384 res != TEE_ERROR_OUT_OF_MEMORY && in TEE_SetTAPersistentTime()
385 res != TEE_ERROR_STORAGE_NO_SPACE) in TEE_SetTAPersistentTime()
386 TEE_Panic(res); in TEE_SetTAPersistentTime()
388 return res; in TEE_SetTAPersistentTime()
393 TEE_Result res = _utee_get_time(UTEE_TIME_CAT_REE, time); in TEE_GetREETime() local
395 if (res != TEE_SUCCESS) in TEE_GetREETime()
396 TEE_Panic(res); in TEE_GetREETime()