Home
last modified time | relevance | path

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

/trusty/user/app/confirmationui/src/
Dmain.cpp37 void* shm_base; member
43 return ctx->shm_base; in is_inited()
152 void* shm_base = mmap(0, shm_len, PROT_READ | PROT_WRITE, 0, shm_handle, 0); in handle_init() local
153 if (shm_base == MAP_FAILED) { in handle_init()
168 ctx->shm_base = shm_base; in handle_init()
173 munmap(shm_base, shm_len); in handle_init()
195 memcpy(msg, ctx->shm_base, req_len); in handle_msg()
197 ctx->op->handleMsg(msg, req_len, ctx->shm_base, &resp_len); in handle_msg()
256 munmap(ctx->shm_base, ctx->shm_len); in on_channel_cleanup()
/trusty/user/base/app/hwaes-unittest/
Dhwaes-test.c288 void* shm_base; member
366 void* shm_base; in TEST_F_SETUP() local
370 _state->shm_base = NULL; in TEST_F_SETUP()
375 shm_base = memalign(AUX_PAGE_SIZE(), shm_len); in TEST_F_SETUP()
376 ASSERT_NE(NULL, shm_base, "fail to allocate shared memory"); in TEST_F_SETUP()
378 rc = memref_create(shm_base, shm_len, PROT_READ | PROT_WRITE); in TEST_F_SETUP()
381 _state->shm_base = shm_base; in TEST_F_SETUP()
383 memset(_state->shm_base, 0, _state->shm_len); in TEST_F_SETUP()
384 memcpy(_state->shm_base, hwaes_cbc_plaintext, sizeof(hwaes_cbc_plaintext)); in TEST_F_SETUP()
388 .base = _state->shm_base, in TEST_F_SETUP()
[all …]
/trusty/user/base/lib/spi/client/
Dclient.c93 static int shm_map(struct spi_dev* dev, void* shm_base, size_t shm_size) { in shm_map() argument
99 rc = memref_create(shm_base, shm_size, in shm_map()
150 void* shm_base; in spi_dev_open() local
166 shm_base = memalign(PAGE_SIZE, shm_size); in spi_dev_open()
167 if (!shm_base) { in spi_dev_open()
169 shm_base, shm_size); in spi_dev_open()
175 rc = shm_map(dev, shm_base, shm_size); in spi_dev_open()
181 mb_init(&dev->shm, shm_base, shm_size, SPI_CMD_SHM_ALIGN); in spi_dev_open()
/trusty/user/base/lib/spi/srv/tipc/
Dtipc.c121 void* shm_base; in handle_msg_shm_map_req() local
125 shm_base = mmap(0, shm_req->len, MMAP_FLAG_PROT_READ | MMAP_FLAG_PROT_WRITE, in handle_msg_shm_map_req()
127 if (shm_base == MAP_FAILED) { in handle_msg_shm_map_req()
146 mb_init(&ctx->shm, shm_base, shm_req->len, SPI_CMD_SHM_ALIGN); in handle_msg_shm_map_req()
151 munmap(shm_base, shm_req->len); in handle_msg_shm_map_req()
/trusty/user/base/lib/hwaes/
Dhwaes.c120 const uint8_t* shm_base = shm_hd_ptr->base; in hwaes_set_shm_arg_helper() local
121 data_desc_ptr->offset = data_ptr - shm_base; in hwaes_set_shm_arg_helper()