/trusty/user/base/app/apploader/tests/ |
D | apploader_test.c | 33 static uint32_t make_request(handle_t channel, in make_request() argument 61 rc = send_msg(channel, &req_msg); in make_request() 64 rc = wait(channel, &event, INFINITE_TIME); in make_request() 68 rc = get_msg(channel, &msg_inf); in make_request() 84 rc = read_msg(channel, msg_inf.id, 0, &resp_msg); in make_request() 88 put_msg(channel, msg_inf.id); in make_request() 93 put_msg(channel, msg_inf.id); in make_request() 98 static uint32_t load_test_app(handle_t channel, in load_test_app() argument 114 error = make_request(channel, APPLOADER_CMD_LOAD_APPLICATION, &req, in load_test_app() 151 static handle_t get_memory_handle_from_service(handle_t channel, size_t size) { in get_memory_handle_from_service() argument [all …]
|
/trusty/user/base/lib/smc/tests/ |
D | smc_test.c | 28 handle_t channel; member 37 _state->channel = (handle_t)rc; in TEST_F_SETUP() 38 ASSERT_GT(_state->channel, 0); in TEST_F_SETUP() 44 close(_state->channel); in TEST_F_TEARDOWN() 69 rc = smc_send_request(_state->channel, &request); in TEST_F() 72 rc = smc_read_response(_state->channel, &response); in TEST_F() 89 channel1 = _state->channel; in TEST_F() 124 rc = smc_send_request(_state->channel, &request); in TEST_F() 127 rc = smc_read_response(_state->channel, &response); in TEST_F() 143 rc = smc_send_request(_state->channel, &request); in TEST_F() [all …]
|
/trusty/user/base/lib/smc/ |
D | smc.c | 24 int smc_read_response(handle_t channel, struct smc_msg* msg) { in smc_read_response() argument 33 rc = wait(channel, &event, INFINITE_TIME); in smc_read_response() 39 rc = tipc_recv2(channel, msg_len, msg, msg_len, &err, sizeof(err)); in smc_read_response() 56 int smc_send_request(handle_t channel, struct smc_msg* msg) { in smc_send_request() argument 58 int rc = tipc_send1(channel, msg, msg_len); in smc_send_request()
|
/trusty/user/app/avb/ipc/ |
D | avb_ipc.cpp | 138 static int ProcessOneMessage(handle_t channel, const ipc_msg_info_t& msg_info) { in ProcessOneMessage() argument 140 TLOGE("Message too large on channel %x: %zu", channel, msg_info.len); in ProcessOneMessage() 153 int rc = read_msg(channel, msg_info.id, 0, &request_msg); in ProcessOneMessage() 156 TLOGE("Failed to read msg for channel %x: %d\n", channel, rc); in ProcessOneMessage() 162 channel); in ProcessOneMessage() 196 rc = send_msg(channel, &response_msg); in ProcessOneMessage() 198 TLOGE("Failed to send_msg on channel %x: %d\n", channel, rc); in ProcessOneMessage() 207 static int ProcessMessages(handle_t channel) { in ProcessMessages() argument 210 int rc = get_msg(channel, &msg_info); in ProcessMessages() 216 TLOGE("Failed to get_msg on channel %x: %d\n", channel, rc); in ProcessMessages() [all …]
|
/trusty/user/app/sample/app-mgmt-test/port-start-srv/ |
D | main.c | 33 static bool handle_cmd(uint8_t cmd, handle_t channel, handle_t* start_port) { in handle_cmd() argument 68 rc = tipc_send1(channel, &rsp, sizeof(rsp)); in handle_cmd() 115 handle_t channel; in main() local 167 channel = (handle_t)rc; in main() 169 uevt.handle = channel; in main() 194 rc = tipc_recv1(channel, sizeof(cmd), &cmd, sizeof(cmd)); in main() 201 done = handle_cmd(cmd, channel, &start_port); in main() 208 close(channel); in main()
|
/trusty/user/base/lib/smc/include/lib/smc/ |
D | smc_ipc.h | 33 int smc_send_request(handle_t channel, struct smc_msg* msg); 43 int smc_read_response(handle_t channel, struct smc_msg* msg);
|
/trusty/user/base/lib/tipc/rust/src/service/ |
D | handle_set.rs | 156 fn do_set_ctrl(&self, cmd: u32, event: u32, channel: &Rc<Channel<D>>) -> Result<()> { in do_set_ctrl() 157 let cookie = Rc::downgrade(&channel).into_raw(); in do_set_ctrl() 160 handle: channel.handle().as_raw_fd(), in do_set_ctrl() 186 && Rc::weak_count(&channel) >= 1 in do_set_ctrl()
|
/trusty/kernel/services/smc/ |
D | smc_service.c | 91 struct handle* channel, in smc_service_handle_msg() argument 100 rc = ktipc_recv(channel, sizeof(request), &request, sizeof(request)); in smc_service_handle_msg() 151 rc = ktipc_send(channel, &response, sizeof(response)); in smc_service_handle_msg()
|
/trusty/user/base/lib/tipc/rust/src/ |
D | service.rs | 1099 let channel: Rc<Channel<D>> = unsafe { Channel::from_opaque_ptr(event.cookie) } in event_loop_inner() localVariable 1107 self.handler(channel, &event) in event_loop_inner() 1110 fn handler(&mut self, channel: Rc<Channel<D>>, event: &trusty_sys::uevent) -> Result<()> { in handler() 1112 match &channel.ty { in handler() 1114 self.handle_connect(&channel.handle, cfg) in handler() 1117 match self.handle_message(&channel.handle, &data) { in handler() 1120 self.handle_set.close(channel); in handler() 1125 self.handle_set.close(channel); in handler() 1131 self.handle_disconnect(&channel.handle, &data); in handler() 1132 self.handle_set.close(channel); in handler() [all …]
|
/trusty/user/app/sample/app-mgmt-test/client/ |
D | main.c | 215 static void send_apploader_request(handle_t channel, in send_apploader_request() argument 235 rc = send_msg(channel, &msg); in send_apploader_request() 241 static uint32_t read_apploader_response(handle_t channel, in read_apploader_response() argument 260 rc = read_msg(channel, msg_inf->id, 0, &msg); in read_apploader_response() 270 static uint32_t recv_apploader_response(handle_t channel, in recv_apploader_response() argument 281 rc = wait(channel, &event, INFINITE_TIME); in recv_apploader_response() 285 rc = get_msg(channel, &msg_inf); in recv_apploader_response() 288 rc = read_apploader_response(channel, cmd, handles, num_handles, &msg_inf); in recv_apploader_response() 289 put_msg(channel, msg_inf.id); in recv_apploader_response()
|
/trusty/kernel/lib/vmm_obj_service/ |
D | vmm_obj_service.c | 116 struct handle* channel, in vmm_obj_service_handle_msg() argument
|
/trusty/user/base/app/hwaes-unittest/ |
D | hwaes-test.c | 300 static void make_bad_request(handle_t channel, in make_bad_request() argument 317 rc = send_msg(channel, &req_msg); in make_bad_request() 320 rc = wait(channel, &event, INFINITE_TIME); in make_bad_request() 330 rc = get_msg(channel, &msg_inf); in make_bad_request() 347 rc = read_msg(channel, msg_inf.id, 0, &resp_msg); in make_bad_request() 353 put_msg(channel, msg_inf.id); in make_bad_request() 359 put_msg(channel, msg_inf.id); in make_bad_request()
|