/trusty/user/app/avb/ipc/ |
D | avb_ipc.cpp | 239 static void HandleChannelEvent(const uevent_t& event) { in HandleChannelEvent() argument 240 if ((event.event & IPC_HANDLE_POLL_ERROR) || in HandleChannelEvent() 241 (event.event & IPC_HANDLE_POLL_READY)) { in HandleChannelEvent() 243 TLOGE("Error event on channel %x: 0x%x\n", event.event, event.handle); in HandleChannelEvent() 244 close(event.handle); in HandleChannelEvent() 247 if (event.event & IPC_HANDLE_POLL_HUP) { in HandleChannelEvent() 249 close(event.handle); in HandleChannelEvent() 253 if (event.event & IPC_HANDLE_POLL_MSG) { in HandleChannelEvent() 254 if (ProcessMessages(event.handle) != NO_ERROR) { in HandleChannelEvent() 255 close(event.handle); in HandleChannelEvent() [all …]
|
/trusty/user/app/sample/hwcrypto/ |
D | main.c | 40 if (ev->event == IPC_HANDLE_POLL_NONE) { in dispatch_event() 55 TLOGE("no handler for event (0x%x) with handle %d\n", ev->event, in dispatch_event() 68 uevent_t event; in main() local 92 event.handle = INVALID_IPC_HANDLE; in main() 93 event.event = 0; in main() 94 event.cookie = NULL; in main() 96 rc = wait_any(&event, INFINITE_TIME); in main() 103 dispatch_event(&event); in main()
|
/trusty/kernel/lib/ktipc/test/main/ |
D | main.c | 53 uint32_t event; in wait_for_hup() local 55 rc = handle_wait(chan, &event, TIMEOUT_MSEC); in wait_for_hup() 57 ASSERT_NE(0, (event & IPC_HANDLE_POLL_READY)); in wait_for_hup() 59 if (!(event & IPC_HANDLE_POLL_HUP)) { in wait_for_hup() 64 rc = handle_wait(chan, &event, TIMEOUT_MSEC); in wait_for_hup() 68 ASSERT_NE(0, (event & IPC_HANDLE_POLL_HUP)); in wait_for_hup() 123 uint32_t event; in TEST() local 131 rc = handle_wait(chan[i], &event, TIMEOUT_MSEC); in TEST() 133 ASSERT_NE(0, (event & IPC_HANDLE_POLL_READY)); in TEST() 144 rc = handle_wait(chan[i], &event, TIMEOUT_MSEC); in TEST() [all …]
|
/trusty/hardware/nxp/app/hwcrypto/ |
D | main.c | 56 if ((ev->event & IPC_HANDLE_POLL_ERROR) || in tipc_handle_port_errors() 57 (ev->event & IPC_HANDLE_POLL_HUP) || in tipc_handle_port_errors() 58 (ev->event & IPC_HANDLE_POLL_MSG) || in tipc_handle_port_errors() 59 (ev->event & IPC_HANDLE_POLL_SEND_UNBLOCKED)) { in tipc_handle_port_errors() 61 TLOGE("error event (0x%x) for port (%d)\n", ev->event, ev->handle); in tipc_handle_port_errors() 70 if ((ev->event & IPC_HANDLE_POLL_ERROR) || in tipc_handle_chan_errors() 71 (ev->event & IPC_HANDLE_POLL_READY)) { in tipc_handle_chan_errors() 73 TLOGE("error event (0x%x) for chan (%d)\n", ev->event, ev->handle); in tipc_handle_chan_errors() 193 if (ev->event == IPC_HANDLE_POLL_NONE) { in dispatch_event() 208 TLOGE("no handler for event (0x%x) with handle %d\n", ev->event, in dispatch_event() [all …]
|
/trusty/user/app/gatekeeper/ipc/ |
D | gatekeeper_ipc.cpp | 226 if ((ev->event & IPC_HANDLE_POLL_ERROR) || in gatekeeper_handle_port() 227 (ev->event & IPC_HANDLE_POLL_HUP) || in gatekeeper_handle_port() 228 (ev->event & IPC_HANDLE_POLL_MSG) || in gatekeeper_handle_port() 229 (ev->event & IPC_HANDLE_POLL_SEND_UNBLOCKED)) { in gatekeeper_handle_port() 231 TLOGE("error event (0x%x) for port (%d)\n", ev->event, ev->handle); in gatekeeper_handle_port() 236 if (ev->event & IPC_HANDLE_POLL_READY) { in gatekeeper_handle_port() 247 if ((ev->event & IPC_HANDLE_POLL_ERROR) || in gatekeeper_handle_channel() 248 (ev->event & IPC_HANDLE_POLL_READY)) { in gatekeeper_handle_channel() 250 TLOGE("error event (0x%x) for chan (%d)\n", ev->event, ev->handle); in gatekeeper_handle_channel() 256 if (ev->event & IPC_HANDLE_POLL_MSG) { in gatekeeper_handle_channel() [all …]
|
/trusty/kernel/app/busytest/ |
D | busytest.c | 35 static struct event busy_test_event = 40 uint32_t event; in busy_test_connected() local 49 ret = handle_wait(chandle, &event, INFINITE_TIME); in busy_test_connected() 50 LTRACEF("got channel event (ret=%d): ev=%x\n", ret, event); in busy_test_connected() 64 uint32_t event; in busy_test_server() local 68 ret = handle_wait(phandle, &event, INFINITE_TIME); in busy_test_server() 73 LTRACEF("got port event (ret=%d): ev=%x\n", ret, event); in busy_test_server() 74 if (event & IPC_HANDLE_POLL_READY) { in busy_test_server()
|
/trusty/user/base/lib/tipc/test/srv/ |
D | srv.c | 339 if ((ev->event & IPC_HANDLE_POLL_ERROR) || in handle_port_errors() 340 (ev->event & IPC_HANDLE_POLL_HUP) || in handle_port_errors() 341 (ev->event & IPC_HANDLE_POLL_MSG) || in handle_port_errors() 342 (ev->event & IPC_HANDLE_POLL_SEND_UNBLOCKED)) { in handle_port_errors() 344 TLOGI("error event (0x%x) for port (%d)\n", ev->event, ev->handle); in handle_port_errors() 372 if (evt.event & IPC_HANDLE_POLL_READY) in sync_connect() 375 if (evt.event & IPC_HANDLE_POLL_HUP) in sync_connect() 390 if (ev->event & IPC_HANDLE_POLL_READY) { in connect_handle_port() 421 if (ev->event & IPC_HANDLE_POLL_READY) { in closer1_handle_port() 451 if (ev->event & IPC_HANDLE_POLL_READY) { in closer2_handle_port() [all …]
|
/trusty/kernel/lib/ktipc/ |
D | ktipc.c | 42 uint32_t event); 84 uint32_t event) { in chan_event_handler() argument 89 if ((event & IPC_HANDLE_POLL_ERROR) || (event & IPC_HANDLE_POLL_READY)) { in chan_event_handler() 91 TRACEF("error event (0x%" PRIx32 ")\n", event); in chan_event_handler() 96 if (event & IPC_HANDLE_POLL_MSG) { in chan_event_handler() 110 if (event & IPC_HANDLE_POLL_HUP) { in chan_event_handler() 122 if (event & IPC_HANDLE_POLL_SEND_UNBLOCKED) { in chan_event_handler() 235 uint32_t event) { in port_event_handler() argument 238 if ((event & IPC_HANDLE_POLL_ERROR) || (event & IPC_HANDLE_POLL_HUP) || in port_event_handler() 239 (event & IPC_HANDLE_POLL_MSG) || in port_event_handler() [all …]
|
/trusty/user/base/lib/tipc/ |
D | tipc.c | 165 if ((ev->event & IPC_HANDLE_POLL_ERROR) || in tipc_handle_port_errors() 166 (ev->event & IPC_HANDLE_POLL_HUP) || in tipc_handle_port_errors() 167 (ev->event & IPC_HANDLE_POLL_MSG) || in tipc_handle_port_errors() 168 (ev->event & IPC_HANDLE_POLL_SEND_UNBLOCKED)) { in tipc_handle_port_errors() 170 TLOGE("error event (0x%x) for port (%d)\n", ev->event, ev->handle); in tipc_handle_port_errors() 179 if ((ev->event & IPC_HANDLE_POLL_ERROR) || in tipc_handle_chan_errors() 180 (ev->event & IPC_HANDLE_POLL_READY)) { in tipc_handle_chan_errors() 182 TLOGE("error event (0x%x) for chan (%d)\n", ev->event, ev->handle); in tipc_handle_chan_errors() 233 .event = evt_mask, in tipc_hset_add_entry() 255 .event = evt_mask, in tipc_hset_mod_entry() [all …]
|
/trusty/kernel/lib/metrics/ |
D | metrics.c | 314 uint32_t event; in handle_chan() local 318 event = ctx.chan->ops->poll(ctx.chan, ~0U, true); in handle_chan() 319 if (event & IPC_HANDLE_POLL_HUP) { in handle_chan() 326 if (!(event & IPC_HANDLE_POLL_READY)) { in handle_chan() 327 TRACEF("unexpected channel event: 0x%x\n", event); in handle_chan() 335 TRACEF("unexpected channel event: 0x%x\n", event); in handle_chan() 339 if (!(event & IPC_HANDLE_POLL_MSG)) { in handle_chan() 340 TRACEF("unexpected channel event: 0x%x\n", event); in handle_chan() 365 if (!(event & IPC_HANDLE_POLL_MSG)) { in handle_chan() 366 TRACEF("unexpected channel event: 0x%x\n", event); in handle_chan() [all …]
|
/trusty/user/base/lib/libc-trusty/ |
D | ipc.c | 52 int wait(handle_t handle, struct uevent* event, uint32_t timeout_msecs) { in wait() argument 53 return _trusty_wait(handle, event, timeout_msecs); in wait() 56 int wait_any(struct uevent* event, uint32_t timeout_msecs) { in wait_any() argument 57 return _trusty_wait_any(event, timeout_msecs); in wait_any()
|
/trusty/user/base/include/user/ |
D | trusty_ipc.h | 115 uint32_t event; /* combination of IPC_HANDLE_POLL_XXX flags */ member 119 #define UEVENT_INITIAL_VALUE(event) \ argument 132 int wait(handle_t handle, uevent_t* event, uint32_t timeout_msecs); 133 int wait_any(uevent_t* event, uint32_t timeout_msecs);
|
/trusty/user/app/sample/app-mgmt-test/port-start-srv/ |
D | main.c | 95 uevt.event = ~0U; in prepare_port() 157 if (rc != NO_ERROR || !(uevt.event & IPC_HANDLE_POLL_READY)) { in main() 158 TLOGI("Port wait failed: %d(%d)\n", rc, uevt.event); in main() 170 uevt.event = ~0U; in main() 182 TLOGI("Channel wait failed: %d\n", uevt.event); in main() 189 if (!(uevt.event & IPC_HANDLE_POLL_MSG)) { in main() 190 TLOGI("Received unexpected event %d\n", uevt.event); in main()
|
/trusty/user/base/lib/unittest/ |
D | unittest.c | 66 if (ev.event & IPC_HANDLE_POLL_SEND_UNBLOCKED) { in send_msg_wait() 70 if (ev.event & IPC_HANDLE_POLL_MSG) { in send_msg_wait() 74 if (ev.event & IPC_HANDLE_POLL_HUP) { in send_msg_wait() 142 .event = ~0U, in unittest_main() 180 TLOGI("got event (ret=%d): ev=%x handle=%d port=%s\n", ret, evt.event, in unittest_main() 184 if (evt.event & IPC_HANDLE_POLL_READY) { in unittest_main()
|
/trusty/user/app/storage/ |
D | ipc.c | 60 if ((ev->event & IPC_HANDLE_POLL_ERROR) || in handle_port_errors() 61 (ev->event & IPC_HANDLE_POLL_HUP) || in handle_port_errors() 62 (ev->event & IPC_HANDLE_POLL_MSG) || in handle_port_errors() 63 (ev->event & IPC_HANDLE_POLL_SEND_UNBLOCKED)) { in handle_port_errors() 65 TLOGE("error event (0x%x) for port (%d)\n", ev->event, ev->handle); in handle_port_errors() 71 if ((ev->event & IPC_HANDLE_POLL_ERROR) || in handle_chan_errors() 72 (ev->event & IPC_HANDLE_POLL_READY)) { in handle_chan_errors() 73 TLOGE("error event (0x%x) for chan (%d)\n", ev->event, ev->handle); in handle_chan_errors() 93 if (ev->event & IPC_HANDLE_POLL_READY) { in do_connect() 209 if (ev->event & IPC_HANDLE_POLL_MSG) { in handle_channel() [all …]
|
/trusty/user/app/sample/app-mgmt-test/restart-srv/ |
D | main.c | 43 if (rc != NO_ERROR || !(uevt.event & IPC_HANDLE_POLL_READY)) { in main() 44 TLOGI("Port wait failed: %d(%d)\n", rc, uevt.event); in main()
|
/trusty/user/app/sample/app-mgmt-test/port-waiter-srv/ |
D | main.c | 53 if (rc != NO_ERROR || !(uevt.event & IPC_HANDLE_POLL_READY)) { in main() 54 TLOGI("Port wait failed(%d) event:%d handle:%d\n", rc, uevt.event, in main() 79 if (rc != NO_ERROR || !(uevt.event & IPC_HANDLE_POLL_MSG)) { in main() 80 TLOGI("Port wait failed(%d) event:%d handle:%d\n", rc, uevt.event, in main()
|
/trusty/kernel/lib/trusty/ |
D | handle.c | 136 uint32_t event; in handle_wait() local 149 event = handle->ops->poll(handle, ~0U, true); in handle_wait() 150 if (event) in handle_wait() 152 ret = __do_wait(&ew.event, timeout); in handle_wait() 157 *handle_event = event; in handle_wait() 162 event_destroy(&ew.event); in handle_wait() 207 uint32_t event = handle->ops->poll(handle, ~0U, false); in handle_list_add() local 208 if (event) { in handle_list_add() 300 uint32_t event = next->ops->poll(next, ~0U, true); in _hlist_do_poll_locked() local 301 if (event) { in _hlist_do_poll_locked() [all …]
|
D | handle_set.c | 81 uint32_t event = 0; in hset_poll() local 85 event = IPC_HANDLE_POLL_READY; in hset_poll() 87 return event & emask; in hset_poll() 272 uint32_t event; in _hset_do_poll() local 292 event = ref->handle->ops->poll(ref->handle, ref->emask, true); in _hset_do_poll() 293 if (event) { in _hset_do_poll() 298 out->emask = event; in _hset_do_poll() 335 ret = event_wait_timeout(&ew.event, timeout); in hset_wait() 343 event_destroy(&ew.event); in hset_wait() 378 uint32_t event; in handle_ref_wait() local [all …]
|
/trusty/user/base/lib/tipc/test/main/ |
D | main.c | 98 if (evt.event & IPC_HANDLE_POLL_READY) in sync_connect() 101 if (evt.event & IPC_HANDLE_POLL_HUP) in sync_connect() 117 uevent_t event; in TEST() local 121 rc = wait(INVALID_IPC_HANDLE, &event, timeout); in TEST() 134 rc = wait(handle_base + MAX_USER_HANDLES, &event, timeout); in TEST() 137 rc = wait(handle_base + MAX_USER_HANDLES + 1, &event, timeout); in TEST() 140 rc = wait(handle_base - 1, &event, timeout); in TEST() 145 rc = wait(handle_base + i, &event, timeout); in TEST() 356 uevent_t event; in TEST() local 374 rc = wait(ports[i], &event, 0); in TEST() [all …]
|
/trusty/user/base/experimental/lib/tidl/ |
D | ipc.cpp | 237 uevent_t event = UEVENT_INITIAL_VALUE(event); in wait_for_msg() local 238 int rc = wait(chan, &event, INFINITE_TIME); in wait_for_msg() 243 if (event.event & IPC_HANDLE_POLL_HUP) { in wait_for_msg() 246 if (!(event.event & IPC_HANDLE_POLL_MSG)) { in wait_for_msg()
|
/trusty/user/app/sample/app-mgmt-test/never-start-srv/ |
D | main.c | 44 if (rc != NO_ERROR || !(uevt.event & IPC_HANDLE_POLL_READY)) { in main() 45 TLOGI("Port wait failed(%d) event:%d handle:%d\n", rc, uevt.event, in main()
|
/trusty/user/app/sample/app-mgmt-test/port-start-fail-srv/ |
D | main.c | 52 if (rc != NO_ERROR || !(uevt.event & IPC_HANDLE_POLL_READY)) { in main() 53 TLOGI("Port wait failed(%d) event:%d handle:%d\n", rc, uevt.event, in main()
|
/trusty/user/base/lib/dlmalloc/test/ |
D | dlmalloc_test.c | 49 int event = evt.event & IPC_HANDLE_POLL_MSG; in dlmalloc_srv_rpc_expect() local 50 if (evt.event & IPC_HANDLE_POLL_HUP) { in dlmalloc_srv_rpc_expect() 51 ASSERT_EQ(event, 0); in dlmalloc_srv_rpc_expect() 55 ASSERT_NE(event, 0); in dlmalloc_srv_rpc_expect()
|
/trusty/kernel/lib/trusty/include/lib/trusty/ |
D | handle.h | 80 struct event event; member 86 event_signal(&hew->event, false); in handle_event_waiter_notify() 93 .event = EVENT_INITIAL_VALUE((ew).event, false, \
|