Home
last modified time | relevance | path

Searched defs:ctx (Results 1 – 25 of 60) sorted by relevance

123

/trusty/hardware/nxp/app/hwcrypto/
Dhwkey_srv.c100 static void hwkey_ctx_close(struct hwkey_chan_ctx* ctx) { in hwkey_ctx_close()
108 static int hwkey_send_rsp(struct hwkey_chan_ctx* ctx, in hwkey_send_rsp()
117 static uint32_t _handle_slots(struct hwkey_chan_ctx* ctx, in _handle_slots()
145 static int hwkey_handle_get_keyslot_cmd(struct hwkey_chan_ctx* ctx, in hwkey_handle_get_keyslot_cmd()
174 static int hwkey_handle_derive_key_cmd(struct hwkey_chan_ctx* ctx, in hwkey_handle_derive_key_cmd()
208 static int hwkey_chan_handle_msg(struct hwkey_chan_ctx* ctx) { in hwkey_chan_handle_msg()
248 struct hwkey_chan_ctx* ctx = priv; in hwkey_chan_handler() local
289 struct hwkey_chan_ctx* ctx = calloc(1, sizeof(*ctx)); in hwkey_port_handler() local
Dhwrng_srv.c82 static void hwrng_close_chan(struct hwrng_chan_ctx* ctx) { in hwrng_close_chan()
95 struct hwrng_chan_ctx* ctx; in hwrng_handle_req_queue() local
152 static int hwrng_chan_handle_msg(struct hwrng_chan_ctx* ctx) { in hwrng_chan_handle_msg()
182 struct hwrng_chan_ctx* ctx = priv; in hwrng_chan_handler() local
228 struct hwrng_chan_ctx* ctx = calloc(1, sizeof(*ctx)); in hwrng_port_handler() local
/trusty/user/base/lib/spi/srv/tipc/
Dtipc.c43 static inline bool shm_is_mapped(struct chan_ctx* ctx) { in shm_is_mapped()
47 static inline void shm_unmap(struct chan_ctx* ctx) { in shm_unmap()
117 struct chan_ctx* ctx, in handle_msg_shm_map_req()
158 struct chan_ctx* ctx, in handle_msg_batch_req()
200 struct chan_ctx* ctx = calloc(1, sizeof(struct chan_ctx)); in on_connect() local
219 struct chan_ctx* ctx = (struct chan_ctx*)chan_ctx; in on_message() local
255 struct chan_ctx* ctx = (struct chan_ctx*)_ctx; in on_disconnect() local
287 struct chan_ctx* ctx = (struct chan_ctx*)_ctx; in on_channel_cleanup() local
/trusty/kernel/lib/trusty/
Ductx.c140 static int _check_handle_id(struct uctx* ctx, handle_id_t handle_id) { in _check_handle_id()
174 static struct handle* remove_handle(struct uctx* ctx, int idx) { in remove_handle()
241 static int rebuild_hset_all(struct uctx* ctx) { in rebuild_hset_all()
309 int uctx_create(void* priv, struct uctx** ctx) { in uctx_create()
335 void uctx_destroy(struct uctx* ctx) { in uctx_destroy()
357 void* uctx_get_priv(struct uctx* ctx) { in uctx_get_priv()
366 int uctx_handle_install(struct uctx* ctx, in uctx_handle_install()
409 static int uctx_handle_get_tmp_ref(struct uctx* ctx, in uctx_handle_get_tmp_ref()
445 int uctx_handle_get(struct uctx* ctx, in uctx_handle_get()
466 int uctx_handle_remove(struct uctx* ctx, in uctx_handle_remove()
[all …]
/trusty/user/app/confirmationui/examples/devices/emulator/
Ddevice_parameters.cpp34 context<ConUIParameters> ctx(6.45211, 400.0 / 412.0); in getDisplayContext() local
57 const context<ConUIParameters>& ctx) { in getDisplayLayout()
/trusty/kernel/services/hwrng/
Dhwrng_service.c63 struct hwrng_chan_ctx* ctx; in hwrng_handle_req_queue() local
121 struct hwrng_chan_ctx* ctx = ctx_v; in hwrng_handle_msg() local
155 struct hwrng_chan_ctx* ctx = calloc(1, sizeof(*ctx)); in hwrng_handle_connect() local
168 struct hwrng_chan_ctx* ctx = ctx_v; in hwrng_handle_channel_cleanup() local
180 struct hwrng_chan_ctx* ctx = ctx_v; in hwrng_handle_send_unblocked() local
/trusty/user/app/sample/hwcrypto/
Dhwrng_srv.c79 static void hwrng_close_chan(struct hwrng_chan_ctx* ctx) { in hwrng_close_chan()
93 struct hwrng_chan_ctx* ctx; in hwrng_handle_req_queue() local
155 static int hwrng_chan_handle_msg(struct hwrng_chan_ctx* ctx) { in hwrng_chan_handle_msg()
185 struct hwrng_chan_ctx* ctx = priv; in hwrng_chan_handler() local
231 struct hwrng_chan_ctx* ctx = calloc(1, sizeof(*ctx)); in hwrng_port_handler() local
Dhwkey_srv.c99 static void hwkey_ctx_close(struct hwkey_chan_ctx* ctx) { in hwkey_ctx_close()
115 static int hwkey_send_rsp(struct hwkey_chan_ctx* ctx, in hwkey_send_rsp()
155 static uint32_t insert_handle_node(struct hwkey_chan_ctx* ctx, in insert_handle_node()
174 static uint32_t _handle_slots(struct hwkey_chan_ctx* ctx, in _handle_slots()
319 static int hwkey_handle_get_keyslot_cmd(struct hwkey_chan_ctx* ctx, in hwkey_handle_get_keyslot_cmd()
365 static int hwkey_handle_derive_key_cmd(struct hwkey_chan_ctx* ctx, in hwkey_handle_derive_key_cmd()
414 struct hwkey_chan_ctx* ctx, in hwkey_handle_derive_versioned_key_cmd()
510 static int hwkey_chan_handle_msg(struct hwkey_chan_ctx* ctx) { in hwkey_chan_handle_msg()
585 struct hwkey_chan_ctx* ctx = priv; in hwkey_chan_handler() local
632 struct hwkey_chan_ctx* ctx = calloc(1, sizeof(*ctx)); in hwkey_port_handler() local
/trusty/user/app/confirmationui/src/
Dmain.cpp42 static inline bool is_inited(struct chan_ctx* ctx) { in is_inited()
126 struct chan_ctx* ctx) { in handle_init()
177 static int handle_msg(handle_t chan, uint32_t req_len, struct chan_ctx* ctx) { in handle_msg()
223 struct chan_ctx* ctx = (struct chan_ctx*)calloc(1, sizeof(*ctx)); in on_connect() local
254 struct chan_ctx* ctx = (struct chan_ctx*)_ctx; in on_channel_cleanup() local
266 struct chan_ctx* ctx = (struct chan_ctx*)_ctx; in on_message() local
/trusty/user/base/app/coverage/
Dclient.c43 struct chan_ctx* ctx) { in handle_open()
99 struct chan_ctx* ctx = malloc(sizeof(*ctx)); in on_connect() local
114 struct chan_ctx* ctx = (struct chan_ctx*)_ctx; in on_message() local
138 struct chan_ctx* ctx = (struct chan_ctx*)_ctx; in on_channel_cleanup() local
Daggregator.c105 static int on_message(const struct tipc_port* port, handle_t chan, void* ctx) { in on_message()
131 static void on_channel_cleanup(void* ctx) {} in on_channel_cleanup()
/trusty/user/base/app/line-coverage/
Dclient.c45 struct chan_ctx* ctx) { in handle_send_list()
89 struct chan_ctx* ctx) { in handle_open()
147 struct chan_ctx* ctx = calloc(1, sizeof(*ctx)); in on_connect() local
164 struct chan_ctx* ctx = (struct chan_ctx*)_ctx; in on_message() local
191 struct chan_ctx* ctx = (struct chan_ctx*)_ctx; in on_channel_cleanup() local
Daggregator.c107 static int on_message(const struct tipc_port* port, handle_t chan, void* ctx) { in on_message()
133 static void on_channel_cleanup(void* ctx) {} in on_channel_cleanup()
/trusty/user/base/lib/secure_fb/srv/
Dsecure_fb_server.c75 struct secure_fb_ctx* ctx = malloc(sizeof(*ctx)); in secure_fb_on_connect() local
95 struct secure_fb_ctx* ctx = (struct secure_fb_ctx*)_ctx; in secure_fb_on_channel_cleanup() local
102 static int handle_get_fbs_req(handle_t chan, struct secure_fb_ctx* ctx) { in handle_get_fbs_req()
161 struct secure_fb_ctx* ctx) { in handle_display_fb()
198 struct secure_fb_ctx* ctx = (struct secure_fb_ctx*)_ctx; in secure_fb_on_message() local
/trusty/kernel/lib/ktipc/test/srv/
Dsrv.c48 static int queue_buffer(struct chan_ctx* ctx, const uint8_t* buf, size_t len) { in queue_buffer()
68 struct chan_ctx* ctx = ctx_v; in test_handle_msg() local
127 struct chan_ctx* ctx = calloc(1, sizeof(*ctx)); in test_handle_connect() local
140 struct chan_ctx* ctx = ctx_v; in test_handle_channel_cleanup() local
158 struct chan_ctx* ctx = ctx_v; in test_handle_send_unblocked() local
/trusty/user/app/storage/
Dcrypt.c31 static void EVP_CIPHER_CTX_reset(EVP_CIPHER_CTX* ctx) { in EVP_CIPHER_CTX_reset()
37 HMAC_CTX* ctx = malloc(sizeof(HMAC_CTX)); in HMAC_CTX_new() local
44 static void HMAC_CTX_reset(HMAC_CTX* ctx) { in HMAC_CTX_reset()
49 static void HMAC_CTX_free(HMAC_CTX* ctx) { in HMAC_CTX_free()
Dmain.c37 struct proxy_connect_context ctx = { in main() local
Daidl_service.h45 #define STORAGE_SERVICE_AIDL_CONTEXT_INITIAL_VALUE(ctx) \ argument
/trusty/user/base/lib/sancov/
Dsancov.c96 static int init(struct sancov_ctx* ctx, size_t num_counters) { in init()
139 static int get_record(struct sancov_ctx* ctx) { in get_record()
187 static void update_record(struct sancov_ctx* ctx, size_t idx, uintptr_t pc) { in update_record()
201 static int get_event(struct sancov_ctx* ctx) { in get_event()
208 static struct sancov_ctx ctx; variable
/trusty/user/app/sample/hwcrypto/keybox/
Dsrv.c49 static void keybox_shutdown(struct keybox_chan_ctx* ctx) { in keybox_shutdown()
109 static int keybox_handle_msg(struct keybox_chan_ctx* ctx) { in keybox_handle_msg()
141 struct keybox_chan_ctx* ctx = (struct keybox_chan_ctx*)priv; in keybox_chan_handler() local
174 struct keybox_chan_ctx* ctx = calloc(1, sizeof(struct keybox_chan_ctx)); in keybox_port_handler() local
/trusty/user/app/keymaster/ipc/
Dkeymaster_ipc.cpp326 static long keymaster_dispatch_secure(keymaster_chan_ctx* ctx, in keymaster_dispatch_secure()
392 static long keymaster_dispatch_non_secure(keymaster_chan_ctx* ctx, in keymaster_dispatch_non_secure()
694 keymaster_chan_ctx* ctx = new (std::nothrow) keymaster_chan_ctx; in keymaster_ctx_open() local
708 static void keymaster_ctx_close(keymaster_chan_ctx* ctx) { in keymaster_ctx_close()
713 static long handle_msg(keymaster_chan_ctx* ctx) { in handle_msg()
779 keymaster_chan_ctx* ctx = reinterpret_cast<keymaster_chan_ctx*>(priv); in keymaster_chan_handler() local
829 keymaster_chan_ctx* ctx = keymaster_ctx_open(chan, &peer_uuid, secure); in keymaster_port_handler() local
880 static long keymaster_ipc_init(keymaster_srv_ctx* ctx) { in keymaster_ipc_init()
940 keymaster_srv_ctx ctx; in main() local
/trusty/kernel/app/dpctest/
Ddpctest.c44 struct dpc_test_ctx* ctx = arg; in dpc_test_timer_callback() local
52 struct dpc_test_ctx* ctx = containerof(work, struct dpc_test_ctx, work); in dpc_test_callback() local
/trusty/kernel/lib/vmm_obj_service/
Dvmm_obj_service.c117 void* ctx) { in vmm_obj_service_handle_msg()
145 static void vmm_obj_service_handle_channel_cleanup(void* ctx) {} in vmm_obj_service_handle_channel_cleanup()
/trusty/user/base/app/metrics/test/crasher/
Dcrasher.c37 static int on_message(const struct tipc_port* port, handle_t chan, void* ctx) { in on_message()
/trusty/user/base/app/crash-test/crasher/
Dcrasher.c48 crasher_on_message(const struct tipc_port* port, handle_t chan, void* ctx) { in crasher_on_message()

123