/trusty/user/app/sample/hwbcc/ |
D | main.c | 31 struct hwbcc_ops ops; in main() local 39 ops.init = swbcc_init; in main() 40 ops.close = swbcc_close; in main() 41 ops.sign_key = swbcc_sign_key; in main() 42 ops.get_bcc = swbcc_get_bcc; in main() 43 ops.get_dice_artifacts = swbcc_get_dice_artifacts; in main() 44 ops.ns_deprivilege = swbcc_ns_deprivilege; in main() 68 rc = add_hwbcc_service(hset, &ops); in main()
|
/trusty/kernel/lib/ktipc/ |
D | ktipc.c | 48 const struct ktipc_srv_ops* ops; member 55 const struct ktipc_srv_ops* ops; member 65 const struct ktipc_srv_ops* ops = kchan->ops; in ktipc_chan_close() local 78 ops->on_channel_cleanup(user_ctx); in ktipc_chan_close() 99 rc = kchan->ops->on_message(kchan->port, kchan->href.handle, in chan_event_handler() 114 if (kchan->ops->on_disconnect) { in chan_event_handler() 115 kchan->ops->on_disconnect(kchan->port, kchan->href.handle, in chan_event_handler() 125 if (kchan->ops->on_send_unblocked) { in chan_event_handler() 126 rc = kchan->ops->on_send_unblocked(kchan->port, kchan->href.handle, in chan_event_handler() 196 kchan->ops = kport->ops; in handle_connect() [all …]
|
/trusty/user/base/lib/secure_fb/srv/ |
D | secure_fb_server.c | 35 const struct secure_fb_impl_ops* ops; member 63 static int secure_fb_check_impl_ops(const struct secure_fb_impl_ops* ops) { in secure_fb_check_impl_ops() argument 64 if (!ops->init || !ops->get_fbs || !ops->display_fb || !ops->release) { in secure_fb_check_impl_ops() 81 ctx->ops = (const struct secure_fb_impl_ops*)port->priv; in secure_fb_on_connect() 82 assert(ctx->ops); in secure_fb_on_connect() 83 ctx->session = ctx->ops->init(); in secure_fb_on_connect() 97 ctx->ops->release(ctx->session); in secure_fb_on_channel_cleanup() 111 rc = ctx->ops->get_fbs(session, &buffers); in handle_get_fbs_req() 166 rc = ctx->ops->display_fb(session, display_fb->buffer_id); in handle_display_fb() 226 ctx->ops->release(ctx->session); in secure_fb_on_message() [all …]
|
/trusty/kernel/lib/trusty/ |
D | syscall.c | 66 status_t install_sys_fd_handler(uint32_t fd, const struct sys_fd_ops* ops) { in install_sys_fd_handler() argument 74 sys_fds[fd] = ops; in install_sys_fd_handler() 84 const struct sys_fd_ops* ops; in get_sys_fd_handler() local 86 ops = uctx_get_fd_ops(fd); in get_sys_fd_handler() 87 if (ops) in get_sys_fd_handler() 88 return ops; in get_sys_fd_handler() 163 const struct sys_fd_ops* ops = get_sys_fd_handler(fd); in sys_writev() local 165 if (ops && ops->writev) in sys_writev() 166 return ops->writev(fd, iov_uaddr, iov_cnt); in sys_writev() 209 const struct sys_fd_ops* ops = get_sys_fd_handler(fd); in sys_readv() local [all …]
|
D | event.c | 124 const struct event_source_ops* ops; member 194 ASSERT(h->ops == &event_source_handle_ops); in handle_to_event_source() 247 if (es->ops) in event_source_destroy() 248 es->ops->close(es->ops_arg); in event_source_destroy() 261 es->ops = NULL; in event_source_destroy() 332 if (es->ops && es->ops->open) { in event_source_attach_client_locked() 333 es->ops->open(es->ops_arg); in event_source_attach_client_locked() 349 if (es->ops && es->ops->unmask) { in event_source_notify_done_slocked() 350 es->ops->unmask(es->ops_arg); in event_source_notify_done_slocked() 364 if (es->ops && es->ops->mask) { in event_source_signal() [all …]
|
D | handle.c | 44 struct handle_ops* ops, in handle_init_etc() argument 47 DEBUG_ASSERT(ops); in handle_init_etc() 48 DEBUG_ASSERT(ops->destroy); in handle_init_etc() 52 handle->ops = ops; in handle_init_etc() 64 handle->ops->destroy(handle); in __handle_destroy_ref() 79 if (handle->ops->shutdown) in handle_close() 80 handle->ops->shutdown(handle); in handle_close() 143 if (!handle->ops->poll) in handle_wait() 149 event = handle->ops->poll(handle, ~0U, true); in handle_wait() 207 uint32_t event = handle->ops->poll(handle, ~0U, false); in handle_list_add() [all …]
|
D | trusty_virtio.c | 321 if (!vd->ops) { in validate_vdev() 327 const struct vdev_ops* ops = vd->ops; in validate_vdev() local 328 if (!ops->descr_sz || !ops->get_descr || !ops->probe || !ops->reset || in validate_vdev() 329 !ops->kick_vqueue) { in validate_vdev() 373 offset += vd->ops->descr_sz(vd); in finalize_vdev_registry() 445 DEBUG_ASSERT(vd->descr_offset + vd->ops->descr_sz(vd) <= in virtio_get_description() 451 vd->ops->get_descr(vd, (uint8_t*)descr + vd->descr_offset); in virtio_get_description() 534 vd->ops->probe(vd, (void*)((uint8_t*)descr_va + vd->descr_offset)); in virtio_start() 591 vd->ops->reset(vd); in virtio_stop() 631 ret = vd->ops->reset(vd); in virtio_device_reset() [all …]
|
D | uctx.c | 267 if (!h || !h->ops->poll) in rebuild_hset_all() 285 if (!h || !h->ops->poll) in rebuild_hset_all() 390 if (ctx->hset_all && handle->ops->poll) { in uctx_handle_install() 429 if (ctx->hset_all && h->ops->poll) { in uctx_handle_get_tmp_ref() 641 if (!ctx->htbl[ret].handle->ops->poll) { in sys_set_cookie() 823 if (h->ops && h->ops->user_writev) { in uctx_handle_writev() 824 rc = h->ops->user_writev(h, iov_uaddr, iov_cnt); in uctx_handle_writev() 844 if (h->ops && h->ops->user_readv) { in uctx_handle_readv() 845 rc = h->ops->user_readv(h, iov_uaddr, iov_cnt); in uctx_handle_readv()
|
D | uirq.c | 58 const struct event_source_ops* ops, in uirq_register_sw_irq() argument 69 rc = event_source_create(uirq->name, ops, ops_arg, uirq->uuids, in uirq_register_sw_irq()
|
/trusty/user/base/lib/tipc/ |
D | tipc_srv.c | 57 const struct tipc_srv_ops* ops; member 123 if (srv->ops->on_channel_cleanup && user_ctx) { in tipc_chan_close() 124 srv->ops->on_channel_cleanup(user_ctx); in tipc_chan_close() 143 rc = srv->ops->on_message(chan->port->cfg, chan->handle, in chan_event_handler_proc() 159 if (srv->ops->on_disconnect) { in chan_event_handler_proc() 160 srv->ops->on_disconnect(chan->port->cfg, chan->handle, in chan_event_handler_proc() 169 if (srv->ops->on_send_unblocked) { in chan_event_handler_proc() 170 rc = srv->ops->on_send_unblocked(chan->port->cfg, chan->handle, in chan_event_handler_proc() 260 if (srv->ops->on_connect) { in handle_connect() 261 rc = srv->ops->on_connect(port->cfg, chan->handle, &peer, &user_ctx); in handle_connect() [all …]
|
/trusty/user/app/storage/ |
D | ipc.c | 78 static int is_valid_port_ops(struct ipc_port_ops* ops) { in is_valid_port_ops() argument 79 return (ops->on_connect != NULL); in is_valid_port_ops() 82 static bool is_valid_chan_ops(struct ipc_channel_ops* ops) { in is_valid_chan_ops() argument 83 return (ops->on_disconnect != NULL); in is_valid_chan_ops() 103 chan_ctx = ctx->ops.on_connect(ctx, &peer_uuid, chan_handle); in do_connect() 111 assert(is_valid_chan_ops(&chan_ctx->ops)); in do_connect() 130 chan_ctx->ops.on_disconnect(chan_ctx); in do_connect() 179 rc = ctx->ops.on_handle_msg(ctx, msg_buf, msg_inf.len); in do_handle_msg() 190 context->ops.on_disconnect(context); in do_disconnect() 196 assert(is_valid_port_ops(&port_ctx->ops)); in handle_port() [all …]
|
D | ipc.h | 91 struct ipc_channel_ops ops; member 97 struct ipc_port_ops ops; member
|
D | main.c | 39 .tipc_ctx = {.ops = {.on_connect = proxy_connect}}, in main()
|
/trusty/user/base/lib/hwbcc/srv/ |
D | srv.c | 102 static int hwbcc_check_ops(const struct hwbcc_ops* ops) { in hwbcc_check_ops() argument 103 if (!ops->init || !ops->close || !ops->sign_key || !ops->get_bcc || in hwbcc_check_ops() 104 !ops->get_dice_artifacts || !ops->ns_deprivilege) { in hwbcc_check_ops() 331 int add_hwbcc_service(struct tipc_hset* hset, const struct hwbcc_ops* ops) { in add_hwbcc_service() argument 332 int rc = hwbcc_check_ops(ops); in add_hwbcc_service() 336 hwbcc_ops = ops; in add_hwbcc_service()
|
/trusty/kernel/lib/trusty/include/lib/trusty/ |
D | handle.h | 59 struct handle_ops* ops; member 152 struct handle_ops* ops, 155 static inline void handle_init(struct handle* handle, struct handle_ops* ops) { in handle_init() argument 156 handle_init_etc(handle, ops, 0); in handle_init()
|
D | sys_fd.h | 36 status_t install_sys_fd_handler(uint32_t fd, const struct sys_fd_ops* ops);
|
D | uirq.h | 65 const struct event_source_ops* ops,
|
D | event.h | 83 const struct event_source_ops* ops,
|
/trusty/user/base/lib/system_state/srv/ |
D | system_state_server.c | 99 static struct tipc_srv_ops ops = { in add_system_state_service() local 102 return tipc_add_service(hset, &port, 1, 1, &ops); in add_system_state_service()
|
/trusty/user/base/app/metrics/ |
D | consumer.c | 117 static struct tipc_srv_ops ops = { in add_metrics_consumer_service() local 123 return tipc_add_service(hset, &port, 1, MAX_METRICS_TA_CONNECTIONS, &ops); in add_metrics_consumer_service()
|
/trusty/user/base/lib/sancov/test/srv/ |
D | main.c | 138 static const struct tipc_srv_ops ops = { variable 152 rc = tipc_add_service(hset, &port, 1, 1, &ops); in main()
|
/trusty/kernel/lib/extmem/ |
D | external_memory.c | 52 struct vmm_obj_ops* ops, in ext_mem_obj_initialize() argument 58 obj->vmm_obj.ops = ops; in ext_mem_obj_initialize()
|
/trusty/user/base/lib/tipc/include/lib/tipc/ |
D | tipc_srv.h | 187 const struct tipc_srv_ops* ops);
|
/trusty/user/base/lib/hwbcc/srv/include/lib/hwbcc/srv/ |
D | srv.h | 86 int add_hwbcc_service(struct tipc_hset* hset, const struct hwbcc_ops* ops);
|
/trusty/user/base/app/coverage/ |
D | aggregator.c | 144 static struct tipc_srv_ops ops = { in coverage_aggregator_init() local 152 return tipc_add_service(state->hset, &port, 1, MAX_NUM_APPS, &ops); in coverage_aggregator_init()
|