/trusty/user/base/lib/coverage/common/ |
D | cov_shm.c | 35 size_t shm_len; in cov_shm_alloc() local 37 shm_len = round_up(len, PAGE_SIZE); in cov_shm_alloc() 38 base = memalign(PAGE_SIZE, shm_len); in cov_shm_alloc() 40 TLOGE("failed to allocate %zu bytes of shared memory\n", shm_len); in cov_shm_alloc() 44 rc = memref_create(base, shm_len, MMAP_FLAG_PROT_RW); in cov_shm_alloc() 53 shm->len = shm_len; in cov_shm_alloc()
|
/trusty/user/app/confirmationui/src/ |
D | main.cpp | 38 size_t shm_len; member 125 uint32_t shm_len, in handle_init() argument 135 if (shm_len > CONFIRMATIONUI_MAX_MSG_SIZE) { in handle_init() 152 void* shm_base = mmap(0, shm_len, PROT_READ | PROT_WRITE, 0, shm_handle, 0); in handle_init() 169 ctx->shm_len = shm_len; in handle_init() 173 munmap(shm_base, shm_len); in handle_init() 180 uint32_t resp_len = ctx->shm_len; in handle_msg() 189 if (req_len > ctx->shm_len) { in handle_msg() 256 munmap(ctx->shm_base, ctx->shm_len); in on_channel_cleanup() 284 rc = handle_init(chan, shm_handle, req.init_args.shm_len, ctx); in on_message()
|
D | ipc.h | 64 uint32_t shm_len; member
|
/trusty/user/base/lib/line-coverage/ |
D | shm.c | 76 size_t shm_len; in setup_shm() local 107 shm_len = cov_resp.get_record_args.shm_len; in setup_shm() 109 if (shm_len < ctx.record_len) { in setup_shm() 111 shm_len, ctx.record_len); in setup_shm() 116 rc = cov_shm_mmap(&ctx.data, memref, cov_resp.get_record_args.shm_len); in setup_shm()
|
/trusty/user/base/lib/sancov/ |
D | sancov.c | 144 size_t shm_len; in get_record() local 159 shm_len = resp.get_record_args.shm_len; in get_record() 161 if (shm_len < ctx->record_len) { in get_record() 163 shm_len, ctx->record_len); in get_record() 168 rc = cov_shm_mmap(&ctx->data, memref, resp.get_record_args.shm_len); in get_record()
|
/trusty/user/base/interface/coverage/include/interface/coverage/ |
D | client.h | 90 uint32_t shm_len; member
|
D | aggregator.h | 88 uint32_t shm_len; member
|
/trusty/user/base/interface/line-coverage/include/interface/line-coverage/ |
D | aggregator.h | 94 uint32_t shm_len; member
|
D | client.h | 115 uint32_t shm_len; member
|
/trusty/user/base/app/hwaes-unittest/ |
D | hwaes-test.c | 289 size_t shm_len; member 367 size_t shm_len = AUX_PAGE_SIZE(); in TEST_F_SETUP() local 375 shm_base = memalign(AUX_PAGE_SIZE(), shm_len); in TEST_F_SETUP() 378 rc = memref_create(shm_base, shm_len, PROT_READ | PROT_WRITE); in TEST_F_SETUP() 382 _state->shm_len = shm_len; in TEST_F_SETUP() 383 memset(_state->shm_base, 0, _state->shm_len); in TEST_F_SETUP() 389 .size = _state->shm_len, in TEST_F_SETUP() 459 _state->shm_descs[0] = (struct hwaes_shm_desc){.size = _state->shm_len}; in TEST_F_SETUP() 545 _state->cmd_hdr.key.len = _state->shm_len + 1ULL; in TEST_F() 559 .size = _state->shm_len, in TEST_F() [all …]
|
/trusty/user/base/app/coverage/ |
D | aggregator.c | 63 resp.get_record_args.shm_len = record->data.len; in handle_get_record()
|
D | client.c | 88 cov_shm_init(&record->data, memref, NULL, req->share_record_args.shm_len); in handle_share_record()
|
/trusty/user/base/app/line-coverage/ |
D | aggregator.c | 65 resp.get_record_args.shm_len = record->data.len; in handle_get_record()
|
D | client.c | 136 cov_shm_init(&record->data, memref, NULL, req->share_record_args.shm_len); in handle_share_record()
|