Home
last modified time | relevance | path

Searched refs:iov (Results 1 – 25 of 57) sorted by relevance

123

/trusty/user/base/lib/libc-trusty/
Dtrusty_uio.c22 ssize_t readv(int fd, const struct iovec* iov, int iov_cnt) { in readv() argument
23 ssize_t res = _trusty_readv(fd, iov, iov_cnt); in readv()
32 struct iovec iov = {.iov_base = buf, .iov_len = count}; in read() local
33 return readv(fd, &iov, 1); in read()
36 ssize_t writev(int fd, const struct iovec* iov, int iov_cnt) { in writev() argument
37 ssize_t res = _trusty_writev(fd, iov, iov_cnt); in writev()
46 struct iovec iov = {.iov_base = buf, .iov_len = count}; in write() local
47 return writev(fd, &iov, 1); in write()
50 ssize_t trusty_readv(int fd, const struct iovec* iov, int iov_cnt) { in trusty_readv() argument
51 return _trusty_readv(fd, iov, iov_cnt); in trusty_readv()
[all …]
/trusty/kernel/lib/trusty/
Diovec.c28 ssize_t membuf_to_kern_iovec(const struct iovec_kern* iov, in membuf_to_kern_iovec() argument
37 if (unlikely(iov == NULL || buf == NULL)) in membuf_to_kern_iovec()
40 for (uint i = 0; i < iov_cnt; i++, iov++) { in membuf_to_kern_iovec()
42 if (to_copy > iov->iov_len) in membuf_to_kern_iovec()
43 to_copy = iov->iov_len; in membuf_to_kern_iovec()
48 if (unlikely(iov->iov_base == NULL)) in membuf_to_kern_iovec()
51 memcpy(iov->iov_base, buf, to_copy); in membuf_to_kern_iovec()
66 const struct iovec_kern* iov, in kern_iovec_to_membuf() argument
73 if (unlikely(buf == NULL || iov == NULL)) in kern_iovec_to_membuf()
76 for (uint i = 0; i < iov_cnt; i++, iov++) { in kern_iovec_to_membuf()
[all …]
/trusty/kernel/lib/libc-trusty/
Dwritev.c30 ssize_t trusty_writev(int fd, const struct iovec* iov, int iovcnt) { in trusty_writev() argument
45 for (int i = 0; i < iovcnt; i++, iov++) { in trusty_writev()
46 if (iov == NULL) { in trusty_writev()
50 ret = io_write(io_handle, (const void*)iov->iov_base, iov->iov_len); in trusty_writev()
/trusty/user/base/lib/rng/
Dtrusty_rng.c79 .iov = &tx_iov, in trusty_rng_hw_rand()
88 .iov = &rx_iov, in trusty_rng_hw_rand()
109 while (rx_msg.iov[0].iov_len > 0) { in trusty_rng_hw_rand()
122 if (inf.len > rx_msg.iov[0].iov_len) { in trusty_rng_hw_rand()
134 rx_msg.iov[0].iov_base += rx_size; in trusty_rng_hw_rand()
135 rx_msg.iov[0].iov_len -= rx_size; in trusty_rng_hw_rand()
/trusty/user/base/experimental/lib/tidl/
Dipc.cpp41 struct iovec iov = { in send() local
47 .iov = &iov, in send()
71 struct iovec iov = { in recv() local
77 .iov = &iov, in recv()
107 .iov = iovs, in send()
145 .iov = iovs, in recv()
181 .iov = iovs, in send()
225 .iov = iovs, in recv()
/trusty/hardware/nxp/app/hwcrypto/
Dmain.c82 struct iovec iov = { in tipc_send_single_buf() local
87 .iov = &iov, in tipc_send_single_buf()
109 struct iovec iov = { in tipc_recv_single_buf() local
114 .iov = &iov, in tipc_recv_single_buf()
143 .iov = iovs, in tipc_send_two_segments()
177 .iov = iovs, in tipc_recv_two_segments()
/trusty/user/base/lib/coverage/common/
Dipc.c26 struct iovec iov = { in coverage_send() local
31 .iov = &iov, in coverage_send()
59 struct iovec iov = { in coverage_recv() local
64 .iov = &iov, in coverage_recv()
/trusty/user/base/include/user/
Dtrusty_uio.h28 ssize_t trusty_readv(int fd, const struct iovec* iov, int iovcnt);
30 ssize_t trusty_writev(int fd, const struct iovec* iov, int iovcnt);
/trusty/user/base/lib/tipc/
Dtipc.c46 struct iovec iov = { in tipc_send1() local
51 .iov = &iov, in tipc_send1()
74 struct iovec iov = { in tipc_recv1() local
79 .iov = &iov, in tipc_recv1()
110 .iov = iovs, in tipc_send2()
149 .iov = iovs, in tipc_recv2()
/trusty/kernel/lib/ktipc/include/lib/ktipc/
Dktipc.h224 struct iovec_kern iov[] = { \
235 .iov = iov, \
295 struct iovec_kern* iov,
311 struct iovec_kern iov[] = { \
321 ktipc_recv_iov((chan), (min_sz), iov, count, (handles), \
/trusty/user/app/sample/skel_rust/
Dmain.rs36 let iov = iovec { iov_base: message2.as_ptr() as *mut _, iov_len: message2.len() }; in main() localVariable
38 let _ = trusty_sys::writev(2, &iov, 1); in main()
/trusty/kernel/lib/metrics/
Dmetrics.c103 struct iovec_kern iov = { in recv_resp() local
109 .iov = &iov, in recv_resp()
183 .iov = iovs, in report_crash()
223 .iov = iovs, in report_exit()
245 struct iovec_kern iov = { in report_event_drop() local
251 .iov = &iov, in report_event_drop()
/trusty/user/base/lib/tipc/test/main/
Dmain.c1055 struct iovec iov[2]; in TEST() local
1062 iov[0].iov_base = buf0; in TEST()
1063 iov[0].iov_len = sizeof(buf0); in TEST()
1064 iov[1].iov_base = buf1; in TEST()
1065 iov[1].iov_len = sizeof(buf1); in TEST()
1069 msg.iov = iov; in TEST()
1106 struct iovec iov[2]; in TEST() local
1182 msg.iov = NULL; in TEST()
1187 iov[0].iov_len = sizeof(buf) / 2; in TEST()
1188 iov[0].iov_base = NULL; in TEST()
[all …]
/trusty/user/base/lib/vmm_obj/
Dvmm_obj.c82 struct iovec iov = { in vmm_obj_map_ro() local
87 .iov = &iov, in vmm_obj_map_ro()
/trusty/kernel/lib/trusty/include/lib/trusty/
Dipc_msg.h55 struct iovec_kern* iov; member
63 user_addr_t iov; member
Duio.h55 ssize_t membuf_to_kern_iovec(const struct iovec_kern* iov,
62 const struct iovec_kern* iov,
/trusty/user/app/storage/
Dtipc_ns.c199 struct iovec iov[] = { in ns_close_file() local
204 int rc = sync_ipc_send_msg(ipc_handle, iov, countof(iov), iov, 1); in ns_close_file()
353 struct iovec iov[] = {{.iov_base = &msg, .iov_len = sizeof(msg)}, in ns_write_pos() local
357 int rc = sync_ipc_send_msg(ipc_handle, iov, countof(iov), iov, 1); in ns_write_pos()
/trusty/kernel/lib/libc-trusty/include/trusty/
Duio.h27 ssize_t trusty_writev(int fd, const struct iovec* iov, int iovcnt);
/trusty/user/base/lib/hwaes/
Dhwaes.c43 struct iovec iov[TIPC_MAX_MSG_PARTS]; member
178 iov_wrapper_ptr->iov[iov_num].iov_base = (void*)data_ptr; in hwaes_set_iov_helper()
179 iov_wrapper_ptr->iov[iov_num].iov_len = len; in hwaes_set_iov_helper()
271 .iov = req_iov_ptr->iov, in hwaes_send_req()
324 .iov = resp_iov_ptr->iov, in hwaes_recv_resp()
/trusty/user/app/sample/stats-test/
Dstats_test.cpp88 .iov = iovs, in TEST_F()
123 .iov = iovs, in TEST_F()
/trusty/user/base/lib/tipc/test/srv/
Dsrv.c648 struct iovec iov = { in echo_handle_msg() local
652 msg.iov = &iov; in echo_handle_msg()
679 struct iovec iov = { in echo_handle_msg() local
683 msg.iov = &iov; in echo_handle_msg()
784 struct iovec iov; in uuid_handle_port() local
802 iov.iov_base = &peer_uuid; in uuid_handle_port()
803 iov.iov_len = sizeof(peer_uuid); in uuid_handle_port()
805 msg.iov = &iov; in uuid_handle_port()
/trusty/user/base/lib/secure_dpu/
Dsecure_dpu.c65 struct iovec iov[] = { in handle_allocate_buffer_resp() local
77 .iov = iov, in handle_allocate_buffer_resp()
78 .num_iov = countof(iov), in handle_allocate_buffer_resp()
/trusty/kernel/lib/trusty/include/
Dsyscall_table.h33 DEF_SYSCALL(0x1, writev, long, 3, uint32_t fd, const struct iovec *iov, uint32_t iovcnt)
36 DEF_SYSCALL(0x4, readv, long, 3, uint32_t fd, const struct iovec *iov, uint32_t iovcnt)
/trusty/user/app/gatekeeper/ipc/
Dgatekeeper_ipc.cpp126 struct iovec iov[2] = { in send_response() local
130 ipc_msg_t msg = {2, iov, 0, NULL}; in send_response()
182 struct iovec iov = {msg_buf.get(), msg_inf.len}; in handle_msg() local
183 ipc_msg_t msg = {1, &iov, 0, NULL}; in handle_msg()
/trusty/user/base/lib/storage/
Dstorage.c166 .iov = rx_iovs, in get_response()
235 .iov = tx_iovs, in send_reqv()
623 struct iovec iov = {&msg, sizeof(msg)}; in storage_end_transaction() local
625 ssize_t rc = send_reqv(session, &iov, 1, &iov, 1); in storage_end_transaction()
635 struct iovec iov = {&msg, sizeof(msg)}; in storage_commit_checkpoint() local
637 ssize_t rc = send_reqv(session, &iov, 1, &iov, 1); in storage_commit_checkpoint()

123