Searched refs:shm_hd (Results 1 – 2 of 2) sorted by relevance
/trusty/user/base/app/hwaes-benchmark/ |
D | hwaes-bench.c | 210 static int shm_alloc(size_t size, struct hwcrypt_shm_hd* shm_hd) { in shm_alloc() argument 211 memset(shm_hd, 0, sizeof(struct hwcrypt_shm_hd)); in shm_alloc() 224 shm_hd->handle = handle; in shm_alloc() 225 shm_hd->base = base; in shm_alloc() 226 shm_hd->size = size; in shm_alloc() 231 static void shm_free(struct hwcrypt_shm_hd* shm_hd) { in shm_free() argument 232 if (shm_hd->base) { in shm_free() 233 close(shm_hd->handle); in shm_free() 234 free((void*)shm_hd->base); in shm_free() 236 shm_hd->base = NULL; in shm_free()
|
/trusty/user/base/app/hwaes-unittest/ |
D | hwaes-test.c | 290 struct hwcrypt_shm_hd shm_hd; member 386 _state->shm_hd = (struct hwcrypt_shm_hd){ in TEST_F_SETUP() 407 .shm_hd_ptr = &_state->shm_hd, in TEST_F_SETUP() 413 .shm_hd_ptr = &_state->shm_hd, in TEST_F_SETUP() 435 .shm_hd_ptr = &_state->shm_hd, in TEST_F_SETUP() 441 .shm_hd_ptr = &_state->shm_hd, in TEST_F_SETUP() 711 struct hwcrypt_shm_hd shm_hd = { in TEST_F() local 716 parse_vector(vector, &shm_hd, &args, 1 /* encrypt */); in TEST_F() 741 struct hwcrypt_shm_hd shm_hd = { in TEST_F() local 746 parse_vector(vector, &shm_hd, &args, 0 /* decrypt */); in TEST_F() [all …]
|