Home
last modified time | relevance | path

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

/trusty/user/base/lib/unittest/
Dunittest.c141 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/
Dmain.c88 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/
Ddpctest.c37 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/
Dunittest.c149 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/
Dcfi-test.c56 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/
Dvmm_obj.c36 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/
Dcrash-test.c40 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/
Dsecure_dpu.c60 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/
Ddlmalloc_test.c45 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/
Dtipc_dev_ql.c503 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/
Dmemref-test.c61 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/
Dtipc.c287 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/
Dipc.c48 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/
Dscudo_test.c72 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/
Dclient.c59 struct uevent evt; in handle_reply() local
63 wait(chan, &evt, INFINITE_TIME); in handle_reply()
/trusty/user/base/lib/coverage/common/
Dipc.c93 uevent_t evt; in coverage_rpc() local
101 rc = wait(chan, &evt, INFINITE_TIME); in coverage_rpc()
/trusty/user/base/lib/spi/client/
Dclient.c72 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/
Dtrusty_ipc.h131 int handle_set_ctrl(handle_t handle, uint32_t cmd, struct uevent* evt);
/trusty/user/base/app/line-coverage/
Dclient.c47 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/
Dsrv.c362 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/
Dsyscall_table.h54 DEF_SYSCALL(0x16, handle_set_ctrl, long, 3, int32_t handle, uint32_t cmd, struct uevent *evt)
/trusty/user/base/lib/secure_fb/
Dsecure_fb.c248 struct uevent evt; in handle_display_fb_resp() local
251 rc = wait(chan, &evt, INFINITE_TIME); in handle_display_fb_resp()