Home
last modified time | relevance | path

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

/trusty/user/base/lib/hwaes/srv/
Dhwaes_server.c99 struct shm* shms) { in hwaes_map_shm() argument
129 shms[i].base = mmap(0, shm_descs[i].size, mmap_prot, 0, handles[i], 0); in hwaes_map_shm()
130 if (shms[i].base == MAP_FAILED) { in hwaes_map_shm()
134 shms[i].size = shm_descs[i].size; in hwaes_map_shm()
135 shms[i].mmap_prot = mmap_prot; in hwaes_map_shm()
146 static void hwaes_unmap_shm(size_t num, struct shm* shms) { in hwaes_unmap_shm() argument
148 if (shms[i].size) { in hwaes_unmap_shm()
149 munmap(shms[i].base, shms[i].size); in hwaes_unmap_shm()
169 struct shm* shms, in hwaes_set_arg_out() argument
193 int shm_mmap_prot = shms[data_desc_ptr->shm_idx].mmap_prot; in hwaes_set_arg_out()
[all …]