/trusty/user/base/lib/tipc/test/srv/ |
D | srv.c | 32 typedef void (*event_handler_proc_t)(const uevent_t* ev); 58 static void closer1_handle_port(const uevent_t* ev); 64 static void closer2_handle_port(const uevent_t* ev); 70 static void closer3_handle_port(const uevent_t* ev); 78 static void connect_handle_port(const uevent_t* ev); 81 static void datasink_handle_port(const uevent_t* ev); 82 static void datasink_handle_chan(const uevent_t* ev); 93 static void echo_handle_port(const uevent_t* ev); 94 static void echo_handle_chan(const uevent_t* ev); 110 static void uuid_handle_port(const uevent_t* ev); [all …]
|
/trusty/hardware/nxp/app/hwcrypto/ |
D | main.c | 55 void tipc_handle_port_errors(const uevent_t* ev) { in tipc_handle_port_errors() argument 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() 69 void tipc_handle_chan_errors(const uevent_t* ev) { in tipc_handle_chan_errors() argument 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() [all …]
|
D | hwrng_srv.c | 46 static void hwrng_port_handler(const uevent_t* ev, void* priv); 47 static void hwrng_chan_handler(const uevent_t* ev, void* priv); 181 static void hwrng_chan_handler(const uevent_t* ev, void* priv) { in hwrng_chan_handler() argument 185 assert(ev->handle == ctx->chan); in hwrng_chan_handler() 187 tipc_handle_chan_errors(ev); in hwrng_chan_handler() 189 if (ev->event & IPC_HANDLE_POLL_HUP) { in hwrng_chan_handler() 192 if (ev->event & IPC_HANDLE_POLL_SEND_UNBLOCKED) { in hwrng_chan_handler() 196 if (ev->event & IPC_HANDLE_POLL_MSG) { in hwrng_chan_handler() 211 static void hwrng_port_handler(const uevent_t* ev, void* priv) { in hwrng_port_handler() argument 214 tipc_handle_port_errors(ev); in hwrng_port_handler() [all …]
|
D | hwkey_srv.c | 43 static void hwkey_port_handler(const uevent_t* ev, void* priv); 44 static void hwkey_chan_handler(const uevent_t* ev, void* priv); 247 static void hwkey_chan_handler(const uevent_t* ev, void* priv) { in hwkey_chan_handler() argument 251 assert(ev->handle == ctx->chan); in hwkey_chan_handler() 253 tipc_handle_chan_errors(ev); in hwkey_chan_handler() 255 if (ev->event & IPC_HANDLE_POLL_HUP) { in hwkey_chan_handler() 261 if (ev->event & IPC_HANDLE_POLL_MSG) { in hwkey_chan_handler() 266 ev->handle); in hwkey_chan_handler() 275 static void hwkey_port_handler(const uevent_t* ev, void* priv) { in hwkey_port_handler() argument 278 tipc_handle_port_errors(ev); in hwkey_port_handler() [all …]
|
D | common.h | 23 typedef void (*event_handler_proc_t)(const uevent_t* ev, void* ctx); 35 void tipc_handle_port_errors(const uevent_t* ev); 36 void tipc_handle_chan_errors(const uevent_t* ev);
|
/trusty/user/app/storage/ |
D | ipc.c | 44 static void handle_channel(const uevent_t* ev, void* self); 45 static void handle_port(const uevent_t* ev, void* self); 59 static inline void handle_port_errors(const uevent_t* ev) { in handle_port_errors() argument 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() 70 static inline void handle_chan_errors(const uevent_t* ev) { in handle_chan_errors() argument 71 if ((ev->event & IPC_HANDLE_POLL_ERROR) || in handle_chan_errors() [all …]
|
/trusty/user/app/sample/hwcrypto/ |
D | main.c | 37 static void dispatch_event(const uevent_t* ev) { in dispatch_event() argument 38 assert(ev); in dispatch_event() 40 if (ev->event == IPC_HANDLE_POLL_NONE) { in dispatch_event() 47 struct tipc_event_handler* handler = ev->cookie; in dispatch_event() 50 handler->proc(ev, handler->priv); in dispatch_event() 55 TLOGE("no handler for event (0x%x) with handle %d\n", ev->event, in dispatch_event() 56 ev->handle); in dispatch_event() 58 close(ev->handle); in dispatch_event()
|
D | hwrng_srv.c | 43 static void hwrng_port_handler(const uevent_t* ev, void* priv); 44 static void hwrng_chan_handler(const uevent_t* ev, void* priv); 184 static void hwrng_chan_handler(const uevent_t* ev, void* priv) { in hwrng_chan_handler() argument 188 assert(ev->handle == ctx->chan); in hwrng_chan_handler() 190 tipc_handle_chan_errors(ev); in hwrng_chan_handler() 192 if (ev->event & IPC_HANDLE_POLL_HUP) { in hwrng_chan_handler() 195 if (ev->event & IPC_HANDLE_POLL_SEND_UNBLOCKED) { in hwrng_chan_handler() 199 if (ev->event & IPC_HANDLE_POLL_MSG) { in hwrng_chan_handler() 214 static void hwrng_port_handler(const uevent_t* ev, void* priv) { in hwrng_port_handler() argument 217 tipc_handle_port_errors(ev); in hwrng_port_handler() [all …]
|
D | hwkey_srv.c | 68 static void hwkey_port_handler(const uevent_t* ev, void* priv); 69 static void hwkey_chan_handler(const uevent_t* ev, void* priv); 584 static void hwkey_chan_handler(const uevent_t* ev, void* priv) { in hwkey_chan_handler() argument 588 assert(ev->handle == ctx->chan); in hwkey_chan_handler() 590 tipc_handle_chan_errors(ev); in hwkey_chan_handler() 592 if (ev->event & IPC_HANDLE_POLL_HUP) { in hwkey_chan_handler() 598 if (ev->event & IPC_HANDLE_POLL_MSG) { in hwkey_chan_handler() 603 ev->handle); in hwkey_chan_handler() 612 static void hwkey_port_handler(const uevent_t* ev, void* priv) { in hwkey_port_handler() argument 615 tipc_handle_port_errors(ev); in hwkey_port_handler() [all …]
|
/trusty/user/app/gatekeeper/ipc/ |
D | gatekeeper_ipc.cpp | 225 static void gatekeeper_handle_port(uevent_t* ev) { in gatekeeper_handle_port() argument 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() 238 int rc = accept(ev->handle, &peer_uuid); in gatekeeper_handle_port() 240 TLOGE("failed (%d) to accept on port %d\n", rc, ev->handle); in gatekeeper_handle_port() 246 static void gatekeeper_handle_channel(uevent_t* ev) { in gatekeeper_handle_channel() argument [all …]
|
/trusty/user/app/sample/hwcrypto/keybox/ |
D | srv.c | 40 static void keybox_port_handler(const uevent_t* ev, void* priv); 41 static void keybox_chan_handler(const uevent_t* ev, void* priv); 140 static void keybox_chan_handler(const uevent_t* ev, void* priv) { in keybox_chan_handler() argument 143 assert(ev->handle == ctx->chan); in keybox_chan_handler() 145 tipc_handle_chan_errors(ev); in keybox_chan_handler() 147 if (ev->event & IPC_HANDLE_POLL_MSG) { in keybox_chan_handler() 150 if (ev->event & IPC_HANDLE_POLL_HUP) { in keybox_chan_handler() 158 static void keybox_port_handler(const uevent_t* ev, void* priv) { in keybox_port_handler() argument 161 tipc_handle_port_errors(ev); in keybox_port_handler() 163 if (ev->event & IPC_HANDLE_POLL_READY) { in keybox_port_handler() [all …]
|
/trusty/user/app/keymaster/ipc/ |
D | keymaster_ipc.cpp | 39 typedef void (*event_handler_proc_t)(const uevent_t* ev, void* ctx); 61 static void keymaster_port_handler_secure(const uevent_t* ev, void* priv); 62 static void keymaster_port_handler_non_secure(const uevent_t* ev, void* priv); 74 static void keymaster_chan_handler(const uevent_t* ev, void* priv); 78 static long handle_port_errors(const uevent_t* ev) { in handle_port_errors() argument 79 if ((ev->event & IPC_HANDLE_POLL_ERROR) || in handle_port_errors() 80 (ev->event & IPC_HANDLE_POLL_HUP) || in handle_port_errors() 81 (ev->event & IPC_HANDLE_POLL_MSG) || in handle_port_errors() 82 (ev->event & IPC_HANDLE_POLL_SEND_UNBLOCKED)) { in handle_port_errors() 84 LOG_E("error event (0x%x) for port (%d)", ev->event, ev->handle); in handle_port_errors() [all …]
|
/trusty/user/base/lib/tipc/ |
D | tipc.c | 164 void tipc_handle_port_errors(const struct uevent* ev) { in tipc_handle_port_errors() argument 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() 178 void tipc_handle_chan_errors(const struct uevent* ev) { in tipc_handle_chan_errors() argument 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()
|
D | tipc_srv.c | 37 static void port_event_handler_proc(const struct uevent* ev, void* port_ctx); 38 static void chan_event_handler_proc(const struct uevent* ev, void* chan_ctx); 131 static void chan_event_handler_proc(const struct uevent* ev, void* chan_ctx) { in chan_event_handler_proc() argument 136 assert(ev->handle == chan->handle); in chan_event_handler_proc() 138 tipc_handle_chan_errors(ev); in chan_event_handler_proc() 142 if (ev->event & IPC_HANDLE_POLL_MSG) { in chan_event_handler_proc() 148 ev->handle); in chan_event_handler_proc() 155 if (ev->event & IPC_HANDLE_POLL_HUP) { in chan_event_handler_proc() 168 if (ev->event & IPC_HANDLE_POLL_SEND_UNBLOCKED) { in chan_event_handler_proc() 175 ev->handle); in chan_event_handler_proc() [all …]
|
/trusty/user/base/lib/tipc/include/lib/tipc/ |
D | tipc.h | 150 void tipc_handle_port_errors(const struct uevent* ev); 163 void tipc_handle_chan_errors(const struct uevent* ev); 172 typedef void (*event_handler_proc_t)(const struct uevent* ev, void* priv);
|
/trusty/user/base/lib/unittest/ |
D | unittest.c | 54 struct uevent ev; in send_msg_wait() local 61 ret = wait(handle, &ev, INFINITE_TIME); in send_msg_wait() 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()
|
/trusty/kernel/lib/trusty/ |
D | handle.c | 84 static int __do_wait(event_t* ev, lk_time_t timeout) { in __do_wait() argument 88 ret = event_wait_timeout(ev, timeout); in __do_wait() 93 static int _prepare_wait_handle(event_t* ev, struct handle* handle) { in _prepare_wait_handle() argument 102 handle->wait_event = ev; in _prepare_wait_handle() 324 event_t ev; in handle_list_wait() local 330 event_init(&ev, false, EVENT_FLAG_AUTOUNSIGNAL); in handle_list_wait() 339 hlist->wait_event = &ev; in handle_list_wait() 348 ret = __do_wait(&ev, timeout); in handle_list_wait() 376 event_destroy(&ev); in handle_list_wait()
|
/trusty/user/base/lib/storage/ |
D | storage.c | 128 uevent_t* ev, in wait_infinite_logged() argument 135 rc = wait(session, ev, wait_time); in wait_infinite_logged() 163 uevent_t ev; in get_response() local 174 int rc = wait_infinite_logged(session, &ev, __func__); in get_response() 204 struct uevent ev; in wait_to_send() local 206 rc = wait_infinite_logged(session, &ev, __func__); in wait_to_send() 212 if (ev.event & IPC_HANDLE_POLL_SEND_UNBLOCKED) { in wait_to_send() 216 if (ev.event & IPC_HANDLE_POLL_MSG) { in wait_to_send() 220 if (ev.event & IPC_HANDLE_POLL_HUP) { in wait_to_send()
|