Home
last modified time | relevance | path

Searched refs:data_desc_ptr (Results 1 – 2 of 2) sorted by relevance

/trusty/user/base/lib/hwaes/srv/
Dhwaes_server.c167 static int hwaes_set_arg_out(struct hwaes_data_desc* data_desc_ptr, in hwaes_set_arg_out() argument
175 if (data_desc_ptr->reserved) { in hwaes_set_arg_out()
177 data_desc_ptr->reserved); in hwaes_set_arg_out()
182 if (data_desc_ptr->len) { in hwaes_set_arg_out()
183 if (data_desc_ptr->len > SIZE_MAX) { in hwaes_set_arg_out()
187 arg_ptr->len = data_desc_ptr->len; in hwaes_set_arg_out()
188 if (HWAES_INVALID_INDEX != data_desc_ptr->shm_idx) { in hwaes_set_arg_out()
189 if (data_desc_ptr->shm_idx >= num_shms) { in hwaes_set_arg_out()
193 int shm_mmap_prot = shms[data_desc_ptr->shm_idx].mmap_prot; in hwaes_set_arg_out()
199 if (__builtin_add_overflow(data_desc_ptr->offset, in hwaes_set_arg_out()
[all …]
/trusty/user/base/lib/hwaes/
Dhwaes.c97 struct hwaes_data_desc* data_desc_ptr, in hwaes_set_shm_arg_helper() argument
121 data_desc_ptr->offset = data_ptr - shm_base; in hwaes_set_shm_arg_helper()
122 data_desc_ptr->len = len; in hwaes_set_shm_arg_helper()
123 data_desc_ptr->shm_idx = i; in hwaes_set_shm_arg_helper()
125 data_desc_ptr->shm_idx = HWAES_INVALID_INDEX; in hwaes_set_shm_arg_helper()
138 struct hwaes_data_desc* data_desc_ptr, in hwaes_set_shm_arg_out() argument
142 arg_ptr->shm_hd_ptr, true, data_desc_ptr, in hwaes_set_shm_arg_out()
155 struct hwaes_data_desc* data_desc_ptr, in hwaes_set_shm_arg_in() argument
159 arg_ptr->shm_hd_ptr, false, data_desc_ptr, in hwaes_set_shm_arg_in()
218 struct hwaes_data_desc* data_desc_ptr, in hwaes_set_iov_arg_helper() argument
[all …]