Searched refs:shm_descs (Results 1 – 4 of 4) sorted by relevance
/trusty/user/base/lib/hwaes/ |
D | hwaes.c | 98 struct hwaes_shm_desc* shm_descs, in hwaes_set_shm_arg_helper() argument 111 shm_descs[i].size = shm_hd_ptr->size; in hwaes_set_shm_arg_helper() 117 shm_descs[i].write = 1U; in hwaes_set_shm_arg_helper() 139 struct hwaes_shm_desc* shm_descs, in hwaes_set_shm_arg_out() argument 143 shm_descs, shm_wrapper_ptr); in hwaes_set_shm_arg_out() 156 struct hwaes_shm_desc* shm_descs, in hwaes_set_shm_arg_in() argument 160 shm_descs, shm_wrapper_ptr); in hwaes_set_shm_arg_in() 380 struct hwaes_shm_desc shm_descs[HWAES_MAX_NUM_HANDLES] = {0}; in hwaes_crypt() local 382 hwaes_set_shm_arg_in(&args->key, &cmd_header.key, shm_descs, &shm); in hwaes_crypt() 383 hwaes_set_shm_arg_in(&args->iv, &cmd_header.iv, shm_descs, &shm); in hwaes_crypt() [all …]
|
/trusty/user/base/lib/hwaes/srv/ |
D | hwaes_server.c | 98 struct hwaes_shm_desc* shm_descs, in hwaes_map_shm() argument 101 if (shm_descs[i].reserved) { in hwaes_map_shm() 103 shm_descs[i].reserved); in hwaes_map_shm() 107 if (~1U & shm_descs[i].write) { in hwaes_map_shm() 109 shm_descs[i].write); in hwaes_map_shm() 113 if (shm_descs[i].write) { in hwaes_map_shm() 117 uint64_t size64 = shm_descs[i].size; in hwaes_map_shm() 129 shms[i].base = mmap(0, shm_descs[i].size, mmap_prot, 0, handles[i], 0); in hwaes_map_shm() 134 shms[i].size = shm_descs[i].size; in hwaes_map_shm() 313 struct hwaes_shm_desc* shm_descs = in hwaes_handle_aes_cmd() local [all …]
|
/trusty/user/base/app/hwaes-benchmark/ |
D | hwaes-bench.c | 94 struct hwaes_shm_desc shm_descs[HWAES_MAX_NUM_HANDLES]; member 333 _state->shm_descs[0] = in BENCH_SETUP() 335 _state->shm_descs[1] = in BENCH_SETUP() 342 {&_state->shm_descs, in BENCH_SETUP()
|
/trusty/user/base/app/hwaes-unittest/ |
D | hwaes-test.c | 295 struct hwaes_shm_desc shm_descs[HWAES_MAX_NUM_HANDLES]; member 459 _state->shm_descs[0] = (struct hwaes_shm_desc){.size = _state->shm_len}; in TEST_F_SETUP() 465 {&_state->shm_descs, sizeof(struct hwaes_shm_desc)}, in TEST_F_SETUP() 520 _state->shm_descs[0].reserved = 1U; in TEST_F() 526 _state->shm_descs[0].write = 2U; in TEST_F() 533 _state->shm_descs[0].size = 4; in TEST_F()
|