Home
last modified time | relevance | path

Searched refs:hset (Results 1 – 25 of 70) sorted by relevance

123

/trusty/kernel/lib/trusty/
Dhandle_set.c82 struct handle_set* hset = handle_to_handle_set(h); in hset_poll() local
84 if (!list_is_empty(&hset->ready_list)) in hset_poll()
90 static void hset_detach_ref_locked(struct handle_set* hset, in hset_detach_ref_locked() argument
94 DEBUG_ASSERT(ref->parent == &hset->handle); in hset_detach_ref_locked()
100 spin_lock_save(&hset->handle.slock, &state, SLOCK_FLAGS); in hset_detach_ref_locked()
103 spin_unlock_restore(&hset->handle.slock, state, SLOCK_FLAGS); in hset_detach_ref_locked()
108 handle_decref(&hset->handle); in hset_detach_ref_locked()
112 struct handle_set* hset = handle_to_handle_set(h); in hset_destroy() local
116 free(hset); in hset_destroy()
119 static void hset_init(struct handle_set* hset) { in hset_init() argument
[all …]
/trusty/user/base/app/metrics/
Dmain.cpp31 struct tipc_hset* hset; in main() local
33 hset = tipc_hset_create(); in main()
34 if (IS_ERR(hset)) { in main()
35 TLOGE("failed (%d) to create handle set\n", PTR_ERR(hset)); in main()
36 return PTR_ERR(hset); in main()
41 rc = add_metrics_consumer_service(hset, &state); in main()
47 return tipc_run_event_loop(hset); in main()
/trusty/user/base/app/coverage/
Dmain.c28 struct tipc_hset* hset; in main() local
31 hset = tipc_hset_create(); in main()
32 if (IS_ERR(hset)) { in main()
33 TLOGE("failed (%d) to create handle set\n", PTR_ERR(hset)); in main()
34 return PTR_ERR(hset); in main()
36 state.hset = hset; in main()
58 return tipc_run_event_loop(hset); in main()
/trusty/user/base/app/line-coverage/
Dmain.c30 struct tipc_hset* hset; in main() local
32 hset = tipc_hset_create(); in main()
33 if (IS_ERR(hset)) { in main()
34 TLOGE("failed (%d) to create handle set\n", PTR_ERR(hset)); in main()
35 return PTR_ERR(hset); in main()
37 state.hset = hset; in main()
59 return tipc_run_event_loop(hset); in main()
/trusty/user/base/lib/tipc/
Dtipc.c190 int tipc_hset_init(struct tipc_hset* hset) { in tipc_hset_init() argument
193 assert(!IS_ERR(hset) && hset); in tipc_hset_init()
195 hset->handle = INVALID_IPC_HANDLE; in tipc_hset_init()
201 hset->handle = (handle_t)rc; in tipc_hset_init()
209 struct tipc_hset* hset; in tipc_hset_create() local
211 hset = malloc(sizeof(struct tipc_hset)); in tipc_hset_create()
212 if (!hset) in tipc_hset_create()
215 int rc = tipc_hset_init(hset); in tipc_hset_create()
217 free(hset); in tipc_hset_create()
221 return hset; in tipc_hset_create()
[all …]
Dtipc_srv.c58 struct tipc_hset* hset; member
74 (void)tipc_hset_mod_entry(srv->hset, p->handle, mask, in set_ports_event_mask()
92 rc = tipc_hset_remove_entry(srv->hset, chan->handle); in tipc_chan_close()
253 rc = tipc_hset_add_entry(srv->hset, hchan, ~0u, &chan->event_handler); in handle_connect()
308 int tipc_add_service(struct tipc_hset* hset, in tipc_add_service() argument
318 if (IS_ERR(hset)) { in tipc_add_service()
319 TLOGE("invalid handle set (%d)\n", PTR_ERR(hset)); in tipc_add_service()
323 if (!hset || !ports || !num_ports || !ops) { in tipc_add_service()
336 srv->hset = hset; in tipc_add_service()
375 rc = tipc_hset_add_entry(hset, port->handle, ~0u, &port->event_handler); in tipc_add_service()
/trusty/user/base/app/system_state_server_static/
Dmain.c58 struct tipc_hset* hset; in main() local
60 hset = tipc_hset_create(); in main()
61 if (IS_ERR(hset)) { in main()
62 TLOGE("failed (%d) to create handle set\n", PTR_ERR(hset)); in main()
63 return PTR_ERR(hset); in main()
66 rc = add_system_state_service(hset); in main()
72 return tipc_run_event_loop(hset); in main()
/trusty/user/base/app/metrics/test/crasher/
Dcrasher.c49 struct tipc_hset* hset; in main() local
51 hset = tipc_hset_create(); in main()
52 if (IS_ERR(hset)) { in main()
53 return PTR_ERR(hset); in main()
56 rc = tipc_add_service(hset, &crasher_port, 1, 0, &crasher_ops); in main()
61 return tipc_run_event_loop(hset); in main()
/trusty/user/app/sample/spi/swspi-srv/
Dswspi-srv.c84 struct tipc_hset* hset; in main() local
86 hset = tipc_hset_create(); in main()
87 if (IS_ERR(hset)) { in main()
88 TLOGE("failed (%d) to create handle set\n", PTR_ERR(hset)); in main()
89 return PTR_ERR(hset); in main()
92 rc = add_spi_service(hset, ports, countof(ports)); in main()
98 return tipc_run_event_loop(hset); in main()
/trusty/user/app/sample/hwbcc/
Dmain.c30 struct tipc_hset* hset; in main() local
33 hset = tipc_hset_create(); in main()
34 if (IS_ERR(hset)) { in main()
35 TLOGE("failed (%d) to create handle set\n", PTR_ERR(hset)); in main()
36 return PTR_ERR(hset); in main()
68 rc = add_hwbcc_service(hset, &ops); in main()
74 return tipc_run_event_loop(hset); in main()
/trusty/user/app/storage/
Dmain.c46 struct tipc_hset* hset = tipc_hset_create(); in main() local
47 if (IS_ERR(hset)) { in main()
48 TLOGE("Failed to create handle set (%d)\n", PTR_ERR(hset)); in main()
52 int rc = storage_aidl_create_service(&ctx.aidl_ctx, hset); in main()
58 rc = ipc_port_create(hset, &ctx.tipc_ctx, STORAGE_DISK_PROXY_PORT, 1, in main()
71 rc = tipc_run_event_loop(hset); in main()
Dipc.c91 struct tipc_hset* hset = ctx->common.hset; in do_connect() local
115 .hset = hset, in do_connect()
118 rc = tipc_hset_add_entry(hset, chan_handle, ~0u, in do_connect()
189 tipc_hset_remove_entry(context->common.hset, ev->handle); in do_disconnect()
376 int ipc_port_create(struct tipc_hset* hset, in ipc_port_create() argument
396 .hset = hset, in ipc_port_create()
399 rc = tipc_hset_add_entry(hset, port_handle, ~0u, &ctxp->common.evt_handler); in ipc_port_create()
422 tipc_hset_remove_entry(ctx->common.hset, ctx->common.handle); in ipc_port_destroy()
430 tipc_hset_remove_entry(chan_ctx->common.hset, chan_ctx->common.handle); in ipc_port_destroy()
Daidl_service.h58 struct tipc_hset* hset);
102 struct tipc_hset* hset) {
Dipc.h85 struct tipc_hset* hset; member
115 int ipc_port_create(struct tipc_hset* hset,
/trusty/user/base/app/device_tree/
Dmain.cpp53 tipc_hset* hset = tipc_hset_create(); in main() local
54 if (IS_ERR(hset)) { in main()
55 TLOGE("Failed to create handle set (%d)\n", PTR_ERR(hset)); in main()
66 hset, IDeviceTree::PORT().c_str(), in main()
81 return tipc_run_event_loop(hset); in main()
/trusty/user/base/lib/sancov/test/srv/
Dmain.c144 struct tipc_hset* hset; in main() local
146 hset = tipc_hset_create(); in main()
147 if (IS_ERR(hset)) { in main()
148 TLOGE("failed (%d) to create handle set\n", PTR_ERR(hset)); in main()
149 return PTR_ERR(hset); in main()
152 rc = tipc_add_service(hset, &port, 1, 1, &ops); in main()
158 return tipc_run_event_loop(hset); in main()
/trusty/user/base/lib/tipc/include/lib/tipc/
Dtipc.h209 int tipc_hset_add_entry(struct tipc_hset* hset,
227 int tipc_hset_mod_entry(struct tipc_hset* hset,
239 int tipc_hset_remove_entry(struct tipc_hset* hset, handle_t handle);
254 int tipc_handle_event(struct tipc_hset* hset, uint32_t timeout);
264 int tipc_run_event_loop(struct tipc_hset* hset);
/trusty/user/app/sample/secure_fb_mock_impl/
Dmain.cpp183 struct tipc_hset* hset; in main() local
185 hset = tipc_hset_create(); in main()
186 if (IS_ERR(hset)) { in main()
187 TLOGE("failed (%d) to create handle set\n", PTR_ERR(hset)); in main()
188 return PTR_ERR(hset); in main()
191 rc = add_secure_dpu_service(hset, &secure_dpu_handle); in main()
197 rc = add_secure_fb_service(hset, &ops, 1); in main()
203 return tipc_run_event_loop(hset); in main()
/trusty/user/base/lib/uirq/test/
Dmain.c36 handle_t hset; member
43 _state->hset = INVALID_IPC_HANDLE; in TEST_F_SETUP()
50 (void)close(_state->hset); in TEST_F_TEARDOWN()
96 _state->hset = handle_set_create(); in TEST_F()
97 ASSERT_GE(_state->hset, 0, "create handle set"); in TEST_F()
111 rc = handle_set_ctrl(_state->hset, HSET_ADD, &uevt); in TEST_F()
117 rc = handle_set_ctrl(_state->hset, HSET_ADD, &uevt); in TEST_F()
122 rc = wait(_state->hset, &uevt, FAIL_TIMEOUT); in TEST_F()
/trusty/user/app/sample/memref-test/receiver/
Dreceiver.c119 struct tipc_hset* hset = tipc_hset_create(); in main() local
121 if (IS_ERR(hset)) { in main()
122 return PTR_ERR(hset); in main()
125 int rc = tipc_add_service(hset, &receiver_port, 1, 1, &receiver_ops); in main()
130 rc = tipc_run_event_loop(hset); in main()
/trusty/user/base/app/cfi-test/cfi-crasher/
Dcfi-crasher.c305 struct tipc_hset* hset = tipc_hset_create(); in main() local
306 if (IS_ERR(hset)) { in main()
307 TLOGE("Failed to create handle set (%d)\n", PTR_ERR(hset)); in main()
308 return PTR_ERR(hset); in main()
311 int rc = tipc_add_service(hset, &crasher_port, 1, 1, &crasher_ops); in main()
318 return tipc_run_event_loop(hset); in main()
/trusty/user/app/sample/stats-test/relayer/
Drelayer.cpp138 tipc_hset* hset = tipc_hset_create(); in main() local
139 if (IS_ERR(hset)) { in main()
140 TLOGE("Failed to create handle set (%d)\n", PTR_ERR(hset)); in main()
162 hset, RELAYER_PORT_ISTATS, in main()
173 hset, RELAYER_PORT_ISTATS_SETTER_NORMAL_WORLD, in main()
182 hset, RELAYER_PORT_ISTATS_SETTER_SECURE_WORLD, in main()
190 int rc = tipc_run_event_loop(hset); in main()
/trusty/user/base/app/crash-test/crasher/
Dcrasher.c123 struct tipc_hset* hset = tipc_hset_create(); in main() local
124 if (!hset) { in main()
128 int rc = tipc_add_service(hset, &crasher_port, 1, 1, &crasher_ops); in main()
133 rc = tipc_run_event_loop(hset); in main()
/trusty/user/base/lib/dlmalloc/test/srv/
Ddlmalloc_app.cpp240 struct tipc_hset* hset = tipc_hset_create(); in main() local
241 if (IS_ERR(hset)) { in main()
242 TLOGE("Failed to create handle set (%d)\n", PTR_ERR(hset)); in main()
243 return PTR_ERR(hset); in main()
246 int rc = tipc_add_service(hset, &dlmalloc_port, 1, 1, &dlmalloc_ops); in main()
253 return tipc_run_event_loop(hset); in main()
/trusty/user/app/confirmationui/src/
Dmain.cpp321 struct tipc_hset* hset; in main() local
325 hset = tipc_hset_create(); in main()
326 if (IS_ERR(hset)) { in main()
327 TLOGE("Failed to create handle set (%d)\n", PTR_ERR(hset)); in main()
328 return PTR_ERR(hset); in main()
331 rc = tipc_add_service(hset, &confirmationui_port, 1, 1, in main()
337 return tipc_run_event_loop(hset); in main()

123