/optee_test/host/xtest/ |
A D | regression_5000.c | 68 shm->flags = flags; in RegisterSharedMemory() 69 shm->size = size; in RegisterSharedMemory() 78 shm->flags = flags; in AllocateSharedMemory() 79 shm->size = size; in AllocateSharedMemory() 97 TEEC_SharedMemory shm = { }; in Allocate_In() local 199 shm.buffer = val; in Register_In() 225 shm.buffer = val; in Register_notZeroLength_Out() 251 shm.buffer = val; in Register_InOut() 276 shm.buffer = val; in Register_zeroLength_Out() 401 shm.buffer = val; in RegisterSameMemory_twice() [all …]
|
A D | regression_1000.c | 1114 memset(shm.buffer, 0, shm.size); in xtest_tee_test_1013_single() 1122 arg[n].shm = &shm; in xtest_tee_test_1013_single() 1156 memset(shm.buffer, 0, shm.size); in xtest_tee_test_1013_single() 1165 arg[n].shm = &shm; in xtest_tee_test_1013_single() 1431 &shm))) in xtest_tee_test_1018() 1474 memset(&shm, 0, sizeof(shm)); in xtest_tee_test_1018() 1491 memset(&shm, 0, sizeof(shm)); in xtest_tee_test_1018() 1931 memset(&shm, 0, sizeof(shm)); in xtest_tee_test_1025() 1934 shm.size = 0; in xtest_tee_test_1025() 1939 memset(&shm, 0, sizeof(shm)); in xtest_tee_test_1025() [all …]
|
A D | sdp_basic.c | 200 TEEC_SharedMemory *shm = malloc(sizeof(*shm)); in tee_register_buffer() local 202 if (!shm) in tee_register_buffer() 205 shm->flags = TEEC_MEM_INPUT | TEEC_MEM_OUTPUT; in tee_register_buffer() 206 teerc = TEEC_RegisterSharedMemoryFileDescriptor(&ctx->ctx, shm, fd); in tee_register_buffer() 213 *shm_ref = shm; in tee_register_buffer() 231 TEEC_SharedMemory *shm = (TEEC_SharedMemory *)shm_ref; in inject_sdp_data() local 261 op.params[1].memref.parent = shm; in inject_sdp_data() 276 TEEC_SharedMemory *shm = (TEEC_SharedMemory *)shm_ref; in transform_sdp_data() local 301 op.params[0].memref.parent = shm; in transform_sdp_data() 316 TEEC_SharedMemory *shm = (TEEC_SharedMemory *)shm_ref; in dump_sdp_data() local [all …]
|
A D | aes_perf.c | 232 static void register_shm(TEEC_SharedMemory *shm, int fd) in register_shm() argument 234 TEEC_Result res = TEEC_RegisterSharedMemoryFileDescriptor(&ctx, shm, fd); in register_shm() 240 static void allocate_shm(TEEC_SharedMemory *shm, size_t sz) in allocate_shm() argument 244 shm->buffer = NULL; in allocate_shm() 245 shm->size = sz; in allocate_shm() 246 res = TEEC_AllocateSharedMemory(&ctx, shm); in allocate_shm()
|
/optee_test/host/xtest/gp/include/ |
A D | xml_common_api.h | 204 TEEC_SharedMemory *shm, in AllocateSharedMemory() argument 208 shm->flags = flags; in AllocateSharedMemory() 209 shm->size = size; in AllocateSharedMemory() 210 return TEEC_AllocateSharedMemory(ctx, shm); in AllocateSharedMemory() 224 static TEEC_SharedMemory shm = { }; in GetObjectBufferAttribute_helper() local 234 shm.size = buffer_size; in GetObjectBufferAttribute_helper() 235 shm.flags = TEEC_MEM_OUTPUT; in GetObjectBufferAttribute_helper() 236 res = TEEC_AllocateSharedMemory(sess->ctx, &shm); in GetObjectBufferAttribute_helper() 239 SET_SHARED_MEMORY_OPERATION_PARAMETER(1, 0, &shm, shm.size); in GetObjectBufferAttribute_helper() 255 memcpy(saved_attr[n].buf, shm.buffer, in GetObjectBufferAttribute_helper() [all …]
|
A D | xml_client_api.h | 151 TEEC_SharedMemory *shm, in RegisterSharedMemory() argument 154 shm->flags = flags; in RegisterSharedMemory() 155 shm->size = size; in RegisterSharedMemory() 156 shm->buffer = malloc(size); in RegisterSharedMemory() 157 return TEEC_RegisterSharedMemory(ctx, shm); in RegisterSharedMemory() 269 #define TEEC_initialize_memory(shm, tmpMem, offset, _size, value_beginning, \ argument 272 if ((unsigned long)shm != IGNORE) {\ 273 TEEC_SharedMemory *__shm = (void *)(long)shm; \ 292 TEEC_SharedMemory *shm, in TEEC_prepare_OperationEachParameter_memref() argument 297 .parent = shm, .size = sz, .offset = offs, in TEEC_prepare_OperationEachParameter_memref()
|
A D | xml_datastorage_api.h | 1488 shm.size = strlen(obj_id); in Invoke_OpenPersistentObject() 1489 shm.flags = TEEC_MEM_INPUT; in Invoke_OpenPersistentObject() 1493 memcpy(shm.buffer, obj_id, shm.size); in Invoke_OpenPersistentObject() 1498 SET_SHARED_MEMORY_OPERATION_PARAMETER(2, 0, &shm, shm.size); in Invoke_OpenPersistentObject() 1505 TEEC_ReleaseSharedMemory(&shm); in Invoke_OpenPersistentObject() 1618 shm.flags = TEEC_MEM_OUTPUT; in Invoke_GetNextPersistentObject_All() 1627 SET_SHARED_MEMORY_OPERATION_PARAMETER(2, 0, &shm, shm.size); in Invoke_GetNextPersistentObject_All() 1968 shm.size = value_size; in Invoke_StoreAttributeBuffer() 1969 shm.flags = TEEC_MEM_INPUT; in Invoke_StoreAttributeBuffer() 1973 memcpy(shm.buffer, value_bufptr, shm.size); in Invoke_StoreAttributeBuffer() [all …]
|
A D | xml_timearithm_api.h | 936 TEEC_SharedMemory shm = { in Invoke_BigIntConvertToOctetString() local 941 res = TEEC_AllocateSharedMemory(sess->ctx, &shm); in Invoke_BigIntConvertToOctetString() 946 SET_SHARED_MEMORY_OPERATION_PARAMETER(2, 0, &shm, shm.size); in Invoke_BigIntConvertToOctetString() 957 memcpy(saved_octet_string, shm.buffer, sz); in Invoke_BigIntConvertToOctetString() 962 TEEC_ReleaseSharedMemory(&shm); in Invoke_BigIntConvertToOctetString() 978 TEEC_SharedMemory shm = { in Invoke_BigIntConvertFromOctetString() local 983 if (!ADBG_EXPECT_COMPARE_UNSIGNED(c, value_size, <=, shm.size)) in Invoke_BigIntConvertFromOctetString() 986 res = TEEC_AllocateSharedMemory(sess->ctx, &shm); in Invoke_BigIntConvertFromOctetString() 989 memcpy(shm.buffer, value, value_size); in Invoke_BigIntConvertFromOctetString() 993 SET_SHARED_MEMORY_OPERATION_PARAMETER(2, 0, &shm, shm.size); in Invoke_BigIntConvertFromOctetString() [all …]
|
A D | xml_crypto_api.h | 1136 TEEC_SharedMemory shm = { in Invoke_Crypto_GetOperationInfoMultiple() local 1150 SET_SHARED_MEMORY_OPERATION_PARAMETER(1, 0, &shm, shm.size); in Invoke_Crypto_GetOperationInfoMultiple() 1157 uint8_t *b = shm.buffer; in Invoke_Crypto_GetOperationInfoMultiple() 1177 TEEC_ReleaseSharedMemory(&shm); in Invoke_Crypto_GetOperationInfoMultiple() 1248 if (*offs + n > shm->size) in add_be32() 1448 TEEC_SharedMemory shm = { in Invoke_Crypto_AEInit() local 1469 TEEC_ReleaseSharedMemory(&shm); in Invoke_Crypto_AEInit() 3542 shm.size = value_size; in Invoke_StoreAttributeBuffer() 3543 shm.flags = TEEC_MEM_INPUT; in Invoke_StoreAttributeBuffer() 3547 memcpy(shm.buffer, value_bufptr, shm.size); in Invoke_StoreAttributeBuffer() [all …]
|
A D | xml_internal_api.h | 648 TEEC_SharedMemory shm = { in Invoke_OpenTASession() local 658 res = TEEC_RegisterSharedMemory(sess->ctx, &shm); in Invoke_OpenTASession() 669 op.params[1].memref.parent = &shm; in Invoke_OpenTASession() 672 TEEC_ReleaseSharedMemory(&shm); in Invoke_OpenTASession()
|
/optee_test/ta/concurrent_large/ |
A D | ta_entry.c | 38 static uint32_t inc_active_count(struct ta_concurrent_shm *shm) in inc_active_count() argument 40 return atomic_inc32(&shm->active_count); in inc_active_count() 43 static uint32_t dec_active_count(struct ta_concurrent_shm *shm) in dec_active_count() argument 45 return atomic_dec32(&shm->active_count); in dec_active_count()
|
/optee_test/ta/concurrent/ |
A D | ta_entry.c | 38 static uint32_t inc_active_count(struct ta_concurrent_shm *shm) in inc_active_count() argument 40 return atomic_inc32(&shm->active_count); in inc_active_count() 43 static uint32_t dec_active_count(struct ta_concurrent_shm *shm) in dec_active_count() argument 45 return atomic_dec32(&shm->active_count); in dec_active_count()
|