/optee_test-3.20.0/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 | 1135 memset(shm.buffer, 0, shm.size); in xtest_tee_test_1013_single() 1143 arg[n].shm = &shm; in xtest_tee_test_1013_single() 1177 memset(shm.buffer, 0, shm.size); in xtest_tee_test_1013_single() 1186 arg[n].shm = &shm; in xtest_tee_test_1013_single() 1452 &shm))) in xtest_tee_test_1018() 1495 memset(&shm, 0, sizeof(shm)); in xtest_tee_test_1018() 1512 memset(&shm, 0, sizeof(shm)); in xtest_tee_test_1018() 1952 memset(&shm, 0, sizeof(shm)); in xtest_tee_test_1025() 1955 shm.size = 0; in xtest_tee_test_1025() 1960 memset(&shm, 0, sizeof(shm)); in xtest_tee_test_1025() [all …]
|
A D | sdp_basic.c | 235 TEEC_SharedMemory *shm = malloc(sizeof(*shm)); in tee_register_buffer() local 237 if (!shm) in tee_register_buffer() 240 shm->flags = TEEC_MEM_INPUT | TEEC_MEM_OUTPUT; in tee_register_buffer() 241 teerc = TEEC_RegisterSharedMemoryFileDescriptor(&ctx->ctx, shm, fd); in tee_register_buffer() 248 *shm_ref = shm; in tee_register_buffer() 266 TEEC_SharedMemory *shm = (TEEC_SharedMemory *)shm_ref; in inject_sdp_data() local 296 op.params[1].memref.parent = shm; in inject_sdp_data() 311 TEEC_SharedMemory *shm = (TEEC_SharedMemory *)shm_ref; in transform_sdp_data() local 336 op.params[0].memref.parent = shm; in transform_sdp_data() 351 TEEC_SharedMemory *shm = (TEEC_SharedMemory *)shm_ref; in dump_sdp_data() local [all …]
|
A D | aes_perf.c | 235 static void register_shm(TEEC_SharedMemory *shm, int fd) in register_shm() argument 237 TEEC_Result res = TEEC_RegisterSharedMemoryFileDescriptor(&ctx, shm, fd); in register_shm() 243 static void allocate_shm(TEEC_SharedMemory *shm, size_t sz) in allocate_shm() argument 247 shm->buffer = NULL; in allocate_shm() 248 shm->size = sz; in allocate_shm() 249 res = TEEC_AllocateSharedMemory(&ctx, shm); in allocate_shm()
|
/optee_test-3.20.0/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 | 660 TEEC_SharedMemory shm = { in Invoke_OpenTASession() local 670 res = TEEC_RegisterSharedMemory(sess->ctx, &shm); in Invoke_OpenTASession() 681 op.params[1].memref.parent = &shm; in Invoke_OpenTASession() 684 TEEC_ReleaseSharedMemory(&shm); in Invoke_OpenTASession()
|
/optee_test-3.20.0/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()
|
/optee_test-3.20.0/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()
|