Home
last modified time | relevance | path

Searched refs:res (Results 1 – 25 of 39) sorted by relevance

12

/optee_test/ta/os_test/
A Dos_test.c87 return res ? res : TEE_ERROR_GENERIC; in get_binblock_property()
101 return res; in get_binblock_property()
129 return res; in print_properties()
143 return res; in print_properties()
151 return res; in print_properties()
183 res = check_returned_prop(__LINE__, nbuf, res, in print_properties()
231 res = in print_properties()
260 res = in print_properties()
275 res = in print_properties()
293 if (res) in print_properties()
[all …]
/optee_test/ta/aes_perf/
A Dta_aes_perf.c73 CHECK(res, "TEE_CacheFlush(in)", return res;); in flush_memref_buffer()
74 return res; in flush_memref_buffer()
125 CHECK(res, "pre-flush in memref param", return res;); in cmd_process()
129 CHECK(res, "pre-flush out memref param", return res;); in cmd_process()
164 CHECK(res, "post-flush out memref param", return res;); in cmd_process()
238 CHECK(res, "TEE_AllocateOperation", return res;); in cmd_prepare_key()
241 CHECK(res, "TEE_AllocateTransientObject", return res;); in cmd_prepare_key()
248 CHECK(res, "TEE_PopulateTransientObject", return res;); in cmd_prepare_key()
253 CHECK(res, "TEE_AllocateTransientObject", return res;); in cmd_prepare_key()
261 CHECK(res, "TEE_SetOperationKey2", return res;); in cmd_prepare_key()
[all …]
/optee_test/ta/storage_benchmark/
A Dbenchmark.c78 if (res != TEE_SUCCESS) { in prepare_test_file()
80 res); in prepare_test_file()
101 return res; in prepare_test_file()
141 return res; in test_write()
184 return res; in test_read()
251 return res; in test_rewrite()
295 return res; in verify_file_data()
339 res); in ta_stroage_benchmark_chunk_access_test()
351 res); in ta_stroage_benchmark_chunk_access_test()
389 return res; in ta_stroage_benchmark_chunk_access_test()
[all …]
/optee_test/ta/crypt/
A Dderive_key_taf.c43 if (res != TEE_SUCCESS) in derive_unique_key()
46 return res; in derive_unique_key()
71 if (res != TEE_SUCCESS) in derive_ta_unique_key_test()
72 return res; in derive_ta_unique_key_test()
79 if (res != TEE_SUCCESS) in derive_ta_unique_key_test()
83 if (res != TEE_SUCCESS) in derive_ta_unique_key_test()
99 if (res != TEE_SUCCESS) in derive_ta_unique_key_test()
104 if (res != TEE_SUCCESS) in derive_ta_unique_key_test()
120 if (res != TEE_SUCCESS) in derive_ta_unique_key_test()
206 return res; in derive_ta_unique_key_test_shm()
[all …]
A Dcryp_taf.c35 return res; in ta_entry_allocate_operation()
280 return res; in ta_entry_allocate_transient_object()
371 return res; in unpack_attrs()
394 return res; in ta_entry_populate_transient_object()
429 return res; in ta_entry_generate_key()
454 return res; in ta_entry_asymmetric_encrypt()
479 return res; in ta_entry_asymmetric_decrypt()
505 return res; in ta_entry_asymmetric_sign_digest()
531 return res; in ta_entry_asymmetric_verify_digest()
638 if (!res) { in ta_entry_ae_encrypt_final()
[all …]
A Dmbedtls_taf.c69 TEE_Result res = TEE_SUCCESS; in ta_entry_mbedtls_check_cert() local
96 res = TEE_ERROR_BAD_FORMAT; in ta_entry_mbedtls_check_cert()
104 res = TEE_ERROR_BAD_FORMAT; in ta_entry_mbedtls_check_cert()
112 return res; in ta_entry_mbedtls_check_cert()
236 res = TEE_ERROR_BAD_FORMAT; in ta_entry_mbedtls_sign_cert()
244 res = TEE_ERROR_BAD_FORMAT; in ta_entry_mbedtls_sign_cert()
252 res = TEE_ERROR_BAD_FORMAT; in ta_entry_mbedtls_sign_cert()
259 res = TEE_ERROR_BAD_FORMAT; in ta_entry_mbedtls_sign_cert()
267 res = TEE_ERROR_BAD_FORMAT; in ta_entry_mbedtls_sign_cert()
322 if (res && res != TEE_ERROR_SHORT_BUFFER) in ta_entry_mbedtls_sign_cert()
[all …]
A Dseed_rng_taf.c14 TEE_Result res = TEE_ERROR_GENERIC; in seed_rng_pool() local
28 res = TEE_OpenTASession(&system_uuid, TEE_TIMEOUT_INFINITE, 0, NULL, in seed_rng_pool()
30 if (res != TEE_SUCCESS) { in seed_rng_pool()
35 res = TEE_InvokeTACommand(sess, TEE_TIMEOUT_INFINITE, in seed_rng_pool()
38 if (res != TEE_SUCCESS) { in seed_rng_pool()
45 return res; in seed_rng_pool()
/optee_test/host/xtest/
A Dxtest_uuid_helpers.c42 *res = TEE_SUCCESS; in parse_hex()
60 if (res) in xtest_uuid_from_str()
64 if (res) in xtest_uuid_from_str()
68 if (res) in xtest_uuid_from_str()
73 if (res) in xtest_uuid_from_str()
82 return res; in xtest_uuid_from_str()
118 res = TEEC_ERROR_GENERIC; in xtest_uuid_v5()
123 res = TEEC_ERROR_GENERIC; in xtest_uuid_v5()
128 res = TEEC_ERROR_GENERIC; in xtest_uuid_v5()
133 res = TEEC_ERROR_GENERIC; in xtest_uuid_v5()
[all …]
A Dxtest_helpers.c70 return res; in ta_crypt_cmd_allocate_operation()
100 return res; in ta_crypt_cmd_allocate_transient_object()
206 return res; in ta_crypt_cmd_populate_transient_object()
227 return res; in ta_crypt_cmd_populate_transient_object()
255 return res; in ta_crypt_cmd_set_operation_key()
278 return res; in ta_crypt_cmd_free_transient_object()
295 return res; in ta_crypt_cmd_derive_key()
318 return res; in ta_crypt_cmd_derive_key()
353 return res; in ta_crypt_cmd_get_object_buffer_attribute()
376 return res; in ta_crypt_cmd_free_operation()
[all …]
A Dstats.c64 if (res) in open_sess()
69 if (res) in open_sess()
72 res, eo); in open_sess()
101 if (res) in stat_pager()
104 res, eo); in stat_pager()
138 if (res != TEEC_ERROR_SHORT_BUFFER) in stat_alloc()
141 res, eo); in stat_alloc()
155 if (res) in stat_alloc()
158 res, eo); in stat_alloc()
204 if (res) in stat_memleak()
[all …]
A Dregression_4100.c30 if (!res) in cmd_new_var()
33 return res; in cmd_new_var()
49 if (!res) in cmd_new_fmm_var()
52 return res; in cmd_new_fmm_var()
70 if (!res) in cmd_new_fmm_ctx()
73 return res; in cmd_new_fmm_ctx()
93 return res; in cmd_free_handle()
115 return res; in cmd_from_octet_string()
149 if (!res) in cmd_get_bit()
168 if (!res) in cmd_get_bit_count()
[all …]
A Dinstall_ta.c62 TEEC_Result res = TEEC_ERROR_GENERIC; in install_ta() local
71 res = TEEC_InvokeCommand(sess, PTA_SECSTOR_TA_MGMT_BOOTSTRAP, &op, in install_ta()
73 if (res) in install_ta()
75 " err_origin %#" PRIx32, res, err_origin); in install_ta()
116 TEEC_Result res = TEEC_ERROR_GENERIC; in install_ta_runner_cmd_parser() local
123 res = TEEC_InitializeContext(NULL, &ctx); in install_ta_runner_cmd_parser()
124 if (res) in install_ta_runner_cmd_parser()
125 errx(1, "TEEC_InitializeContext: %#" PRIx32, res); in install_ta_runner_cmd_parser()
127 res = TEEC_OpenSession(&ctx, &sess, &uuid, TEEC_LOGIN_PUBLIC, NULL, in install_ta_runner_cmd_parser()
129 if (res) in install_ta_runner_cmd_parser()
[all …]
A Dbenchmark_1000.c42 TEEC_Result res = TEEC_ERROR_GENERIC; in run_test_with_args() local
46 res = xtest_teec_open_session(&sess, &storage_benchmark_ta_uuid, NULL, &orig); in run_test_with_args()
47 if (res != TEEC_SUCCESS) in run_test_with_args()
48 return res; in run_test_with_args()
58 res = TEEC_InvokeCommand(&sess, cmd, &op, &orig); in run_test_with_args()
67 return res; in run_test_with_args()
79 TEE_Result res = TEEC_ERROR_GENERIC; in run_chunk_access_test() local
82 res = run_test_with_args(cmd, data_size, chunk_size, DO_VERIFY, 0, in run_chunk_access_test()
89 return res; in run_chunk_access_test()
A Dsha_perf.c39 fprintf(stderr, "%s: 0x%08x", msg, res); in errx()
48 if (res != TEEC_SUCCESS) in check_res()
49 errx(errmsg, res, orig); in check_res()
54 TEEC_Result res = TEEC_ERROR_GENERIC; in open_ta() local
58 res = TEEC_InitializeContext(NULL, &ctx); in open_ta()
59 check_res(res,"TEEC_InitializeContext", NULL); in open_ta()
63 check_res(res,"TEEC_OpenSession", &err_origin); in open_ta()
150 TEEC_Result res = TEEC_ERROR_GENERIC; in alloc_shm() local
154 res = TEEC_AllocateSharedMemory(&ctx, &in_shm); in alloc_shm()
221 TEEC_Result res = TEEC_ERROR_GENERIC; in run_test_once() local
[all …]
A Dregression_1000.c300 TEEC_Result res; member
681 if (res) { in test_1008_corrupt_ta()
683 res)) in test_1008_corrupt_ta()
1037 TEEC_Result res; member
1584 if (res != TEEC_SUCCESS) in open_sec_session()
1587 return res; in open_sec_session()
1605 return res; in sims_get_counter()
2545 TEEC_Result res; in get_cpu_feature() local
2556 if (!res) { in get_cpu_feature()
2571 TEEC_Result res; in xtest_tee_test_1035() local
[all …]
/optee_test/host/xtest/gp/include/
A Dxml_crypto_api.h1082 if (!res) { in Invoke_Crypto_AllocateOperation()
1088 return res; in Invoke_Crypto_AllocateOperation()
1106 if (!res) in Invoke_Crypto_GetOperationInfo()
1118 return res; in Invoke_Crypto_GetOperationInfo()
1156 if (!res) { in Invoke_Crypto_GetOperationInfoMultiple()
1283 if (res) in add_attr()
1286 if (res) in add_attr()
1351 if (!res) in Invoke_Crypto_InitObjectWithKeys()
3235 if (!res) in rsa_verify_pss_digest()
3251 bool res; in rsa_verify_digest() local
[all …]
A Dxml_internal_api.h294 if (res) in Invoke_GetPropertyAsXXX_withoutEnum()
315 return res; in Invoke_GetPropertyAsXXX_withoutEnum()
354 return res; in Invoke_MemCompare()
379 return res; in Invoke_SetInstanceData()
414 return res; in Invoke_GetInstanceData()
454 return res; in Invoke_ProcessInvokeTAOpenSession()
501 return res; in Invoke_CheckMemoryAccessRight()
529 return res; in Invoke_AllocatePropertyEnumerator()
594 return res; in Invoke_GetPropertyName()
623 return res; in Invoke_Panic()
[all …]
A Dxml_datastorage_api.h1236 if (!res) { in Invoke_ReadObjectData()
1246 return res; in Invoke_ReadObjectData()
1287 return res; in Invoke_RenamePersistentObject()
1318 if (!res) { in Invoke_GetObjectInfo1()
1328 return res; in Invoke_GetObjectInfo1()
1472 return res; in Invoke_CreatePersistentObject()
1507 return res; in Invoke_OpenPersistentObject()
1661 return res; in Invoke_GetNextPersistentObject_All()
1760 if (!res) { in GetObjectValueAttribute_helper()
1769 return res; in GetObjectValueAttribute_helper()
[all …]
A Dxml_timearithm_api.h729 res = TEEC_ERROR_GENERIC; in Invoke_BigIntGetBit()
731 return res; in Invoke_BigIntGetBit()
753 return res; in Invoke_BigIntGetBitCount()
907 return res; in Macro_StoreBigInt()
911 return res; in Macro_StoreBigInt()
924 return res; in Macro_StoreBigInt()
943 return res; in Invoke_BigIntConvertToOctetString()
953 if (!res) { in Invoke_BigIntConvertToOctetString()
963 return res; in Invoke_BigIntConvertToOctetString()
988 return res; in Invoke_BigIntConvertFromOctetString()
[all …]
/optee_test/ta/bti_test/
A Dta_entry.c45 TEE_Result res = TEE_ERROR_GENERIC; in check_bti_implemented() local
55 res = TEE_GetPropertyAsBool( in check_bti_implemented()
59 if (res == TEE_SUCCESS && implemented) in check_bti_implemented()
62 if (res == TEE_ERROR_ITEM_NOT_FOUND) { in check_bti_implemented()
64 res = TEE_SUCCESS; in check_bti_implemented()
67 return res; in check_bti_implemented()
83 TEE_Result res = TEE_SUCCESS; in TA_InvokeCommandEntryPoint() local
89 res = test_bti(nCommandID, nParamTypes, pParams); in TA_InvokeCommandEntryPoint()
92 res = check_bti_implemented(nParamTypes, pParams); in TA_InvokeCommandEntryPoint()
98 return res; in TA_InvokeCommandEntryPoint()
/optee_test/ta/storage/
A Dstorage.c59 return res; in ta_storage_cmd_open()
105 return res; in ta_storage_cmd_create()
147 return res; in ta_storage_cmd_create_overwrite()
178 if (!res) in ta_storage_cmd_read()
182 return res; in ta_storage_cmd_read()
204 return res; in ta_storage_cmd_write()
227 return res; in ta_storage_cmd_seek()
276 return res; in ta_storage_cmd_rename()
301 return res; in ta_storage_cmd_alloc_enum()
378 if (res) in ta_storage_cmd_next_enum()
[all …]
/optee_test/ta/rpc_test/
A Dta_rpc.c31 if (res != TEE_SUCCESS) { in rpc_call_cryp()
33 (unsigned int)res); in rpc_call_cryp()
34 return res; in rpc_call_cryp()
71 if (res != TEE_SUCCESS) { in rpc_call_cryp()
73 (unsigned int)res); in rpc_call_cryp()
104 return res; in rpc_call_cryp()
151 if (res != TEE_SUCCESS) in rpc_open()
152 return res; in rpc_open()
155 res = in rpc_open()
159 if (res != TEE_SUCCESS) in rpc_open()
[all …]
/optee_test/ta/sha_perf/
A Dta_sha_perf.c15 #define CHECK(res, name, action) do { \ argument
16 if ((res) != TEE_SUCCESS) { \
17 DMSG(name ": 0x%08x", (res)); \
26 TEE_Result res = TEE_ERROR_GENERIC; in cmd_process() local
49 res = TEE_DigestDoFinal(digest_op, in, insz, out, &outsz); in cmd_process()
50 CHECK(res, "TEE_DigestDoFinal", return res;); in cmd_process()
57 TEE_Result res = TEE_ERROR_GENERIC; in cmd_prepare_op() local
90 res = TEE_AllocateOperation(&digest_op, algo, TEE_MODE_DIGEST, 0); in cmd_prepare_op()
91 CHECK(res, "TEE_AllocateOperation", return res;); in cmd_prepare_op()
/optee_test/ta/sdp_basic/
A Dta_sdp_basic.c253 TEE_Result res = TEE_ERROR_GENERIC; in cmd_invoke() local
258 if (res != TEE_SUCCESS) { in cmd_invoke()
267 if (res != TEE_SUCCESS) { in cmd_invoke()
269 res, ret_orig); in cmd_invoke()
273 if (res != TEE_SUCCESS) { in cmd_invoke()
277 return res; in cmd_invoke()
292 if (res != TEE_SUCCESS) { in cmd_invoke_pta()
301 if (res != TEE_SUCCESS) { in cmd_invoke_pta()
303 res, ret_orig); in cmd_invoke_pta()
307 if (res != TEE_SUCCESS) { in cmd_invoke_pta()
[all …]
/optee_test/ta/supp_plugin/
A Dta_entry.c47 TEE_Result res = TEE_ERROR_GENERIC; in pass_values() local
60 res = tee_invoke_supp_plugin(&uuid, TEST_PLUGIN_CMD_PASS_VALUES, in pass_values()
65 return res; in pass_values()
75 TEE_Result res = TEE_ERROR_GENERIC; in write_array() local
82 res = tee_invoke_supp_plugin(&uuid, TEST_PLUGIN_CMD_WRITE_ARR, 0, in write_array()
87 return res; in write_array()
97 TEE_Result res = TEE_ERROR_GENERIC; in get_array() local
103 res = tee_invoke_supp_plugin(&uuid, TEST_PLUGIN_CMD_GET_ARR, 0, in get_array()
109 return res; in get_array()

Completed in 57 milliseconds

12