Lines Matching refs:res

47 	TEEC_Result res = TEEC_ERROR_GENERIC;  in ta_crypt_cmd_allocate_operation()  local
59 res = TEEC_InvokeCommand(s, TA_CRYPT_CMD_ALLOCATE_OPERATION, &op, in ta_crypt_cmd_allocate_operation()
62 if (res != TEEC_SUCCESS) { in ta_crypt_cmd_allocate_operation()
67 if (res == TEEC_SUCCESS) in ta_crypt_cmd_allocate_operation()
70 return res; in ta_crypt_cmd_allocate_operation()
79 TEEC_Result res = TEEC_ERROR_GENERIC; in ta_crypt_cmd_allocate_transient_object() local
89 res = TEEC_InvokeCommand(s, TA_CRYPT_CMD_ALLOCATE_TRANSIENT_OBJECT, &op, in ta_crypt_cmd_allocate_transient_object()
92 if (res != TEEC_SUCCESS) { in ta_crypt_cmd_allocate_transient_object()
97 if (res == TEEC_SUCCESS) in ta_crypt_cmd_allocate_transient_object()
100 return res; in ta_crypt_cmd_allocate_transient_object()
198 TEEC_Result res = TEEC_ERROR_GENERIC; in ta_crypt_cmd_populate_transient_object() local
204 res = pack_attrs(attrs, attr_count, &buf, &blen); in ta_crypt_cmd_populate_transient_object()
205 if (!ADBG_EXPECT_TEEC_SUCCESS(c, res)) in ta_crypt_cmd_populate_transient_object()
206 return res; in ta_crypt_cmd_populate_transient_object()
218 res = TEEC_InvokeCommand(s, TA_CRYPT_CMD_POPULATE_TRANSIENT_OBJECT, &op, in ta_crypt_cmd_populate_transient_object()
221 if (res != TEEC_SUCCESS && res != TEEC_ERROR_TARGET_DEAD) { in ta_crypt_cmd_populate_transient_object()
227 return res; in ta_crypt_cmd_populate_transient_object()
234 TEEC_Result res = TEEC_ERROR_GENERIC; in ta_crypt_cmd_set_operation_key() local
247 res = TEEC_InvokeCommand(s, TA_CRYPT_CMD_SET_OPERATION_KEY, &op, in ta_crypt_cmd_set_operation_key()
250 if (res != TEEC_SUCCESS) { in ta_crypt_cmd_set_operation_key()
255 return res; in ta_crypt_cmd_set_operation_key()
261 TEEC_Result res = TEEC_ERROR_GENERIC; in ta_crypt_cmd_free_transient_object() local
270 res = TEEC_InvokeCommand(s, TA_CRYPT_CMD_FREE_TRANSIENT_OBJECT, &op, in ta_crypt_cmd_free_transient_object()
273 if (res != TEEC_SUCCESS) { in ta_crypt_cmd_free_transient_object()
278 return res; in ta_crypt_cmd_free_transient_object()
286 TEEC_Result res = TEEC_ERROR_GENERIC; in ta_crypt_cmd_derive_key() local
292 res = pack_attrs(params, paramCount, &buf, &blen); in ta_crypt_cmd_derive_key()
294 if (!ADBG_EXPECT_TEEC_SUCCESS(c, res)) in ta_crypt_cmd_derive_key()
295 return res; in ta_crypt_cmd_derive_key()
310 res = TEEC_InvokeCommand(s, TA_CRYPT_CMD_DERIVE_KEY, &op, &ret_orig); in ta_crypt_cmd_derive_key()
312 if (res != TEEC_SUCCESS) { in ta_crypt_cmd_derive_key()
318 return res; in ta_crypt_cmd_derive_key()
327 TEEC_Result res = TEEC_ERROR_GENERIC; in ta_crypt_cmd_get_object_buffer_attribute() local
342 res = TEEC_InvokeCommand(s, TA_CRYPT_CMD_GET_OBJECT_BUFFER_ATTRIBUTE, in ta_crypt_cmd_get_object_buffer_attribute()
345 if (res != TEEC_SUCCESS) { in ta_crypt_cmd_get_object_buffer_attribute()
350 if (res == TEEC_SUCCESS) in ta_crypt_cmd_get_object_buffer_attribute()
353 return res; in ta_crypt_cmd_get_object_buffer_attribute()
359 TEEC_Result res = TEEC_ERROR_GENERIC; in ta_crypt_cmd_free_operation() local
368 res = TEEC_InvokeCommand(s, TA_CRYPT_CMD_FREE_OPERATION, &op, in ta_crypt_cmd_free_operation()
371 if (res != TEEC_SUCCESS) { in ta_crypt_cmd_free_operation()
376 return res; in ta_crypt_cmd_free_operation()
382 TEEC_Result res = TEEC_ERROR_GENERIC; in ta_crypt_cmd_is_algo_supported() local
393 res = TEEC_InvokeCommand(s, TA_CRYPT_CMD_IS_ALGO_SUPPORTED, &op, in ta_crypt_cmd_is_algo_supported()
395 if (res != TEEC_SUCCESS) { in ta_crypt_cmd_is_algo_supported()
398 return res; in ta_crypt_cmd_is_algo_supported()