/trusty/user/base/lib/unittest/ |
D | unittest.c | 141 uevent_t evt = { in unittest_main() local 165 evt.handle = test->_port_handle; in unittest_main() 166 evt.cookie = test; in unittest_main() 167 ret = handle_set_ctrl(hset, HSET_ADD, &evt); in unittest_main() 178 ret = wait(hset, &evt, INFINITE_TIME); in unittest_main() 179 test = evt.cookie; in unittest_main() 180 TLOGI("got event (ret=%d): ev=%x handle=%d port=%s\n", ret, evt.event, in unittest_main() 181 evt.handle, test->port_name); in unittest_main() 184 if (evt.event & IPC_HANDLE_POLL_READY) { in unittest_main() 187 ret = accept(evt.handle, &unused_uuid); in unittest_main()
|
/trusty/user/base/lib/tipc/test/main/ |
D | main.c | 88 uevent_t evt; in sync_connect() local 94 rc = wait(chan, &evt, timeout); in sync_connect() 97 if (evt.handle == chan) { in sync_connect() 98 if (evt.event & IPC_HANDLE_POLL_READY) in sync_connect() 101 if (evt.event & IPC_HANDLE_POLL_HUP) in sync_connect() 1505 uevent_t evt = { in TEST() local 1512 rc = handle_set_ctrl(hset1, HSET_ADD, &evt); in TEST() 1516 rc = handle_set_ctrl(hset1, HSET_MOD, &evt); in TEST() 1520 rc = handle_set_ctrl(hset1, HSET_DEL, &evt); in TEST() 1541 uevent_t evt = { in TEST() local [all …]
|
/trusty/kernel/app/dpctest/ |
D | dpctest.c | 37 struct event evt; member 66 event_signal(&ctx->evt, true); in dpc_test_callback() 79 event_init(&test_ctx.evt, false, EVENT_FLAG_AUTOUNSIGNAL); in TEST() 86 rc = event_wait_timeout(&test_ctx.evt, 1000); in TEST()
|
/trusty/kernel/lib/unittest/ |
D | unittest.c | 149 struct handle_ref evt; in unittest_loop() local 155 ret = handle_set_wait(unittest_handle_set, &evt, INFINITE_TIME); in unittest_loop() 160 test = evt.cookie; in unittest_loop() 161 LTRACEF("got event (ret=%d): ev=%x handle=%p port=%s\n", ret, evt.emask, in unittest_loop() 162 evt.handle, test->port_name); in unittest_loop() 163 if (evt.emask & IPC_HANDLE_POLL_READY) { in unittest_loop() 165 ret = ipc_port_accept(evt.handle, &chandle, &unused_uuid_p); in unittest_loop()
|
/trusty/user/base/app/cfi-test/ |
D | cfi-test.c | 56 struct uevent evt; in crasher_wait() local 57 ret = wait(chan, &evt, INFINITE_TIME); in crasher_wait() 68 if (evt.event & IPC_HANDLE_POLL_HUP) { in crasher_wait() 69 ASSERT_EQ(evt.event & IPC_HANDLE_POLL_MSG, 0); in crasher_wait() 72 ASSERT_NE(evt.event & IPC_HANDLE_POLL_MSG, 0); in crasher_wait()
|
/trusty/user/base/lib/vmm_obj/ |
D | vmm_obj.c | 36 uevent_t evt; in vmm_obj_map_ro() local 58 rc = wait(chan, &evt, INFINITE_TIME); in vmm_obj_map_ro() 63 if (evt.event & IPC_HANDLE_POLL_HUP) { in vmm_obj_map_ro() 68 } while (!(evt.event & IPC_HANDLE_POLL_MSG)); in vmm_obj_map_ro()
|
/trusty/user/base/app/crash-test/ |
D | crash-test.c | 40 struct uevent evt; in crasher_command() local 49 ret = wait(chan, &evt, INFINITE_TIME); in crasher_command() 54 if (!(evt.event & IPC_HANDLE_POLL_MSG)) { in crasher_command() 55 EXPECT_EQ(evt.event, IPC_HANDLE_POLL_HUP); in crasher_command() 56 if (evt.event & IPC_HANDLE_POLL_HUP) { in crasher_command()
|
/trusty/user/base/lib/secure_dpu/ |
D | secure_dpu.c | 60 struct uevent evt; in handle_allocate_buffer_resp() local 83 rc = wait(chan, &evt, INFINITE_TIME); in handle_allocate_buffer_resp() 179 struct uevent evt; in handle_start_secure_display_resp() local 182 rc = wait(chan, &evt, INFINITE_TIME); in handle_start_secure_display_resp() 228 struct uevent evt; in handle_stop_secure_display_resp() local 231 rc = wait(chan, &evt, INFINITE_TIME); in handle_stop_secure_display_resp()
|
/trusty/user/base/lib/dlmalloc/test/ |
D | dlmalloc_test.c | 45 struct uevent evt; in dlmalloc_srv_rpc_expect() local 46 ret = wait(chan, &evt, INFINITE_TIME); in dlmalloc_srv_rpc_expect() 49 int event = evt.event & IPC_HANDLE_POLL_MSG; in dlmalloc_srv_rpc_expect() 50 if (evt.event & IPC_HANDLE_POLL_HUP) { in dlmalloc_srv_rpc_expect()
|
/trusty/kernel/lib/trusty/ |
D | tipc_dev_ql.c | 503 struct tipc_event* evt = (struct tipc_event*)((uint8_t*)dev->ns_va + in dev_get_event() local 519 evt->handle = 0; in dev_get_event() 520 evt->event = 0; in dev_get_event() 521 evt->cookie = 0; in dev_get_event() 529 evt->handle = target; in dev_get_event() 530 evt->event = chan_event; in dev_get_event() 531 evt->cookie = ept->cookie; in dev_get_event() 545 evt->handle = 0; in dev_get_event() 546 evt->event = 0; in dev_get_event() 547 evt->cookie = 0; in dev_get_event() [all …]
|
/trusty/user/app/sample/memref-test/ |
D | memref-test.c | 61 struct uevent evt; in lender_recv_handle() local 62 int rc = wait(chan, &evt, INFINITE_TIME); in lender_recv_handle() 106 struct uevent evt; in lender_read_bss() local 107 rc = wait(chan, &evt, INFINITE_TIME); in lender_read_bss() 138 struct uevent evt; in lender_write_bss() local 139 rc = wait(chan, &evt, INFINITE_TIME); in lender_write_bss()
|
/trusty/user/base/lib/tipc/ |
D | tipc.c | 287 struct uevent evt = UEVENT_INITIAL_VALUE(evt); in tipc_handle_event() local 293 rc = wait(hset->handle, &evt, timeout); in tipc_handle_event() 298 struct tipc_event_handler* handler = evt.cookie; in tipc_handle_event() 301 handler->proc(&evt, handler->priv); in tipc_handle_event()
|
/trusty/user/base/lib/libc-trusty/ |
D | ipc.c | 48 int handle_set_ctrl(handle_t handle, uint32_t cmd, struct uevent* evt) { in handle_set_ctrl() argument 49 return _trusty_handle_set_ctrl(handle, cmd, evt); in handle_set_ctrl()
|
/trusty/user/base/lib/scudo/test/ |
D | scudo_test.c | 72 struct uevent evt; in scudo_srv_rpc_memref() local 73 ret = wait(chan, &evt, INFINITE_TIME); in scudo_srv_rpc_memref() 79 if (evt.event & IPC_HANDLE_POLL_HUP) { in scudo_srv_rpc_memref() 80 ASSERT_EQ(evt.event & IPC_HANDLE_POLL_MSG, 0); in scudo_srv_rpc_memref() 83 ASSERT_NE(evt.event & IPC_HANDLE_POLL_MSG, 0); in scudo_srv_rpc_memref()
|
/trusty/user/base/lib/hwwsk/ |
D | client.c | 59 struct uevent evt; in handle_reply() local 63 wait(chan, &evt, INFINITE_TIME); in handle_reply()
|
/trusty/user/base/lib/coverage/common/ |
D | ipc.c | 93 uevent_t evt; in coverage_rpc() local 101 rc = wait(chan, &evt, INFINITE_TIME); in coverage_rpc()
|
/trusty/user/base/lib/spi/client/ |
D | client.c | 72 struct uevent evt; in handle_shm_resp() local 75 rc = wait(chan, &evt, INFINITE_TIME); in handle_shm_resp() 300 struct uevent evt; in handle_batch_resp() local 304 rc = wait(dev->h, &evt, INFINITE_TIME); in handle_batch_resp()
|
/trusty/user/base/include/user/ |
D | trusty_ipc.h | 131 int handle_set_ctrl(handle_t handle, uint32_t cmd, struct uevent* evt);
|
/trusty/user/base/app/line-coverage/ |
D | client.c | 47 uevent_t evt; in handle_send_list() local 66 rc = wait(chan, &evt, INFINITE_TIME); in handle_send_list()
|
/trusty/user/base/lib/tipc/test/srv/ |
D | srv.c | 362 uevent_t evt; in sync_connect() local 368 rc = wait(chan, &evt, timeout); in sync_connect() 371 if (evt.handle == chan) { in sync_connect() 372 if (evt.event & IPC_HANDLE_POLL_READY) in sync_connect() 375 if (evt.event & IPC_HANDLE_POLL_HUP) in sync_connect()
|
/trusty/kernel/lib/trusty/include/ |
D | syscall_table.h | 54 DEF_SYSCALL(0x16, handle_set_ctrl, long, 3, int32_t handle, uint32_t cmd, struct uevent *evt)
|
/trusty/user/base/lib/secure_fb/ |
D | secure_fb.c | 248 struct uevent evt; in handle_display_fb_resp() local 251 rc = wait(chan, &evt, INFINITE_TIME); in handle_display_fb_resp()
|