Searched refs:shm (Results 1 – 5 of 5) sorted by relevance
/optee_client/libteec/src/ |
A D | tee_client_api.c | 224 shm->id = -1; in teec_pre_process_tmpref() 273 memcpy(shm->shadow_buffer, shm->buffer, shm->size); in teec_pre_process_whole() 423 if (shm->shadow_buffer && MEMREF_SIZE(param) <= shm->size) in teec_post_process_whole() 424 memcpy(shm->buffer, shm->shadow_buffer, in teec_post_process_whole() 615 memset(&shm, 0, sizeof(shm)); in TEEC_OpenSession() 698 memset(&shm, 0, sizeof(shm)); in TEEC_InvokeCommand() 791 s = shm->size; in TEEC_RegisterSharedMemory() 929 if (!shm || shm->id == -1) in TEEC_ReleaseSharedMemory() 939 munmap(shm->shadow_buffer, shm->alloced_size); in TEEC_ReleaseSharedMemory() 947 munmap(shm->buffer, shm->alloced_size); in TEEC_ReleaseSharedMemory() [all …]
|
/optee_client/tee-supplicant/src/ |
A D | tee_supplicant.c | 233 memset(shm, 0, sizeof(*shm)); in get_param() 318 shm = calloc(1, sizeof(*shm)); in alloc_shm() 319 if (!shm) in alloc_shm() 325 free(shm); in alloc_shm() 333 free(shm); in alloc_shm() 354 shm = calloc(1, sizeof(*shm)); in register_local_shm() 391 if (!shm) in process_alloc() 413 if (!shm) in process_free() 419 if (munmap(shm->p, shm->size) != 0) { in process_free() 421 shm->p, shm->size, strerror(errno)); in process_free() [all …]
|
/optee_client/libckteec/src/ |
A D | invoke_ta.c | 57 if (!shm) in ckteec_alloc_shm() 60 shm->size = size; in ckteec_alloc_shm() 68 free(shm); in ckteec_alloc_shm() 72 return shm; in ckteec_alloc_shm() 90 if (!shm) in ckteec_register_shm() 93 shm->buffer = buffer; in ckteec_register_shm() 94 shm->size = size; in ckteec_register_shm() 102 free(shm); in ckteec_register_shm() 106 return shm; in ckteec_register_shm() 112 free(shm); in ckteec_free_shm() [all …]
|
A D | invoke_ta.h | 45 void ckteec_free_shm(TEEC_SharedMemory *shm);
|
A D | pkcs11_token.c | 66 TEEC_SharedMemory *shm = NULL; in ck_slot_get_list() local 87 shm = ckteec_alloc_shm(size, CKTEEC_SHM_OUT); in ck_slot_get_list() 88 if (!shm) in ck_slot_get_list() 92 NULL, shm, &size, NULL, NULL); in ck_slot_get_list() 102 slot_ids = shm->buffer; in ck_slot_get_list() 107 ckteec_free_shm(shm); in ck_slot_get_list()
|
Completed in 10 milliseconds