Home
last modified time | relevance | path

Searched refs:iovec (Results 1 – 25 of 342) sorted by relevance

12345678910>>...14

/openbmc/qemu/include/qemu/
H A Diov.h21 size_t iov_size(const struct iovec *iov, const unsigned int iov_cnt);
41 iov_from_buf(const struct iovec *iov, unsigned int iov_cnt, in iov_from_buf()
54 iov_to_buf(const struct iovec *iov, const unsigned int iov_cnt, in iov_to_buf()
116 unsigned iov_copy(struct iovec *dst_iov, unsigned int dst_iov_cnt,
117 const struct iovec *iov, unsigned int iov_cnt,
130 size_t iov_discard_back(struct iovec *iov, unsigned int *iov_cnt,
135 struct iovec *modified_iov;
136 struct iovec orig;
157 struct iovec *iov;
177 struct iovec local_iov;
[all …]
/openbmc/qemu/fsdev/
H A Dvirtfs-proxy-helper.c178 iovec->iov_len = 0; in read_request()
206 struct iovec iov; in send_fd()
245 static int send_status(int sockfd, struct iovec *iovec, int status) in send_status() argument
378 static int send_response(int sock, struct iovec *iovec, int size) in send_response() argument
415 static int do_getversion(struct iovec *iovec, struct iovec *out_iovec) in do_getversion() argument
454 static int do_getxattr(int type, struct iovec *iovec, struct iovec *out_iovec) in do_getxattr() argument
552 static int do_stat(int type, struct iovec *iovec, struct iovec *out_iovec) in do_stat() argument
606 static int do_readlink(struct iovec *iovec, struct iovec *out_iovec) in do_readlink() argument
638 static int do_create_others(int type, struct iovec *iovec) in do_create_others() argument
697 static int do_create(struct iovec *iovec) in do_create() argument
[all …]
H A D9p-iov-marshal.h7 ssize_t v9fs_pack(struct iovec *in_sg, int in_num, size_t offset,
9 ssize_t v9fs_iov_unmarshal(struct iovec *out_sg, int out_num, size_t offset,
11 ssize_t v9fs_iov_marshal(struct iovec *in_sg, int in_num, size_t offset,
14 ssize_t v9fs_iov_vunmarshal(struct iovec *out_sg, int out_num, size_t offset,
16 ssize_t v9fs_iov_vmarshal(struct iovec *in_sg, int in_num, size_t offset,
/openbmc/linux/io_uring/
H A Drw.c58 struct iovec iov; in io_iov_buffer_select_prep()
376 struct iovec *iovec; in __io_import_iovec() local
412 return iovec; in __io_import_iovec()
416 struct iovec **iovec, struct io_rw_state *s, in io_import_iovec() argument
509 if (!iovec) { in io_req_map_rw()
719 struct iovec *iovec; in io_read() local
794 if (iovec) in io_read()
811 iovec = NULL; in io_read()
858 if (iovec) in io_read()
867 struct iovec *iovec; in io_write() local
[all …]
/openbmc/qemu/util/
H A Diov.c152 struct iovec *local_iov, *iov; in iov_send_recv()
158 local_iov = g_new0(struct iovec, iov_cnt); in iov_send_recv()
277 qiov->iov = g_new(struct iovec, alloc_hint); in qemu_iovec_init()
368 static struct iovec *iov_skip_offset(struct iovec *iov, size_t offset, in iov_skip_offset()
391 struct iovec *iov, *end_iov; in qemu_iovec_slice()
424 struct iovec *iov; in qemu_iovec_is_zero()
450 struct iovec *slice_iov; in qemu_iovec_init_slice()
539 struct iovec *src_iov;
588 struct iovec *cur = sortelems[i].src_iov; in qemu_iovec_clone()
622 struct iovec *cur; in iov_discard_front_undoable()
[all …]
/openbmc/qemu/include/io/
H A Dchannel.h111 const struct iovec *iov,
118 const struct iovec *iov,
231 const struct iovec *iov,
275 const struct iovec *iov,
308 const struct iovec *iov,
335 const struct iovec *iov,
360 const struct iovec *iov,
375 const struct iovec *iov,
390 const struct iovec *iov,
843 const struct iovec *iov,
[all …]
/openbmc/linux/mm/
H A Dprocess_vm_access.c151 const struct iovec *rvec, in process_vm_rw_core()
254 const struct iovec __user *lvec, in process_vm_rw()
256 const struct iovec __user *rvec, in process_vm_rw()
260 struct iovec iovstack_l[UIO_FASTIOV]; in process_vm_rw()
261 struct iovec iovstack_r[UIO_FASTIOV]; in process_vm_rw()
262 struct iovec *iov_l = iovstack_l; in process_vm_rw()
263 struct iovec *iov_r; in process_vm_rw()
291 SYSCALL_DEFINE6(process_vm_readv, pid_t, pid, const struct iovec __user *, lvec, in SYSCALL_DEFINE6()
292 unsigned long, liovcnt, const struct iovec __user *, rvec, in SYSCALL_DEFINE6()
299 const struct iovec __user *, lvec, in SYSCALL_DEFINE6()
[all …]
/openbmc/qemu/io/
H A Dchannel.c52 const struct iovec *iov, in qio_channel_readv_full()
80 const struct iovec *iov, in qio_channel_writev_full()
136 struct iovec *local_iov = g_new(struct iovec, niov); in qio_channel_readv_full_all_eof()
137 struct iovec *local_iov_head = local_iov; in qio_channel_readv_full_all_eof()
253 struct iovec *local_iov = g_new(struct iovec, niov); in qio_channel_writev_full_all()
254 struct iovec *local_iov_head = local_iov; in qio_channel_writev_full_all()
292 const struct iovec *iov, in qio_channel_readv()
301 const struct iovec *iov, in qio_channel_writev()
314 struct iovec iov = { .iov_base = buf, .iov_len = buflen }; in qio_channel_read()
334 struct iovec iov = { .iov_base = buf, .iov_len = buflen }; in qio_channel_read_all_eof()
[all …]
/openbmc/qemu/hw/net/
H A Dnet_rx_pkt.h64 const struct iovec *iov, size_t iovcnt,
219 const struct iovec *iov,
236 const struct iovec *iov, int iovcnt,
253 const struct iovec iov = { in net_rx_pkt_attach_data()
268 struct iovec *net_rx_pkt_get_iovec(struct NetRxPkt *pkt);
306 const struct iovec *iov, int iovcnt);
H A Dnet_tx_pkt.c38 struct iovec *raw;
42 struct iovec *vec;
70 p->raw = g_new(struct iovec, max_frags); in net_tx_pkt_init()
164 struct iovec *l2_hdr, *l3_hdr; in net_tx_pkt_parse_headers()
400 struct iovec *ventry; in net_tx_pkt_add_raw_fragment()
539 struct iovec *dst, int *dst_idx) in net_tx_pkt_fetch_fragment()
542 struct iovec *src = pkt->vec; in net_tx_pkt_fetch_fragment()
576 void *opaque, const struct iovec *iov, int iov_cnt, in net_tx_pkt_sendv()
577 const struct iovec *virt_iov, int virt_iov_cnt) in net_tx_pkt_sendv()
724 struct iovec fragment[NET_MAX_FRAG_SG_LIST]; in net_tx_pkt_do_sw_fragmentation()
[all …]
/openbmc/linux/include/linux/
H A Duio.h67 struct iovec __ubuf_iovec;
71 const struct iovec *__iov;
86 static inline const struct iovec *iter_iov(const struct iov_iter *iter) in iter_iov()
89 return (const struct iovec *) &iter->__ubuf_iovec; in iter_iov()
366 struct iovec *iovec_from_user(const struct iovec __user *uvector,
368 struct iovec *fast_iov, bool compat);
369 ssize_t import_iovec(int type, const struct iovec __user *uvec,
370 unsigned nr_segs, unsigned fast_segs, struct iovec **iovp,
372 ssize_t __import_iovec(int type, const struct iovec __user *uvec,
373 unsigned nr_segs, unsigned fast_segs, struct iovec **iovp,
[all …]
/openbmc/linux/tools/testing/selftests/user_events/
H A Dftrace_test.c300 struct iovec io[3]; in TEST_F()
328 ASSERT_EQ(-1, writev(self->data_fd, (const struct iovec *)io, 3)); in TEST_F()
334 ASSERT_EQ(-1, writev(self->data_fd, (const struct iovec *)io, 3)); in TEST_F()
346 ASSERT_NE(-1, writev(self->data_fd, (const struct iovec *)io, 3)); in TEST_F()
352 ASSERT_EQ(-1, writev(self->data_fd, (const struct iovec *)io, 3)); in TEST_F()
358 struct iovec io[1]; in TEST_F()
384 ASSERT_NE(-1, writev(self->data_fd, (const struct iovec *)io, 1)); in TEST_F()
391 struct iovec io[2]; in TEST_F()
418 ASSERT_NE(-1, writev(self->data_fd, (const struct iovec *)io, 2)); in TEST_F()
422 ASSERT_NE(-1, writev(self->data_fd, (const struct iovec *)io, 2)); in TEST_F()
[all …]
/openbmc/qemu/crypto/
H A Dhash.c42 const struct iovec *iov, in qcrypto_hash_bytesv()
75 struct iovec iov = { .iov_base = (char *)buf, in qcrypto_hash_bytes()
83 const struct iovec *iov, in qcrypto_hash_digestv()
112 struct iovec iov = { .iov_base = (char *)buf, .iov_len = len }; in qcrypto_hash_digest()
118 const struct iovec *iov, in qcrypto_hash_base64v()
141 struct iovec iov = { .iov_base = (char *)buf, .iov_len = len }; in qcrypto_hash_base64()
H A Dhmac.c19 const struct iovec *iov, in qcrypto_hmac_bytesv()
37 struct iovec iov = { in qcrypto_hmac_bytes()
46 const struct iovec *iov, in qcrypto_hmac_digestv()
78 struct iovec iov = { in qcrypto_hmac_digest()
/openbmc/qemu/net/
H A Dvhost-vdpa.c710 struct iovec out, in; in vhost_vdpa_net_load_cmd()
765 const struct iovec data = { in vhost_vdpa_net_load_mac()
804 const struct iovec data[] = { in vhost_vdpa_net_load_mac()
896 const struct iovec data[] = { in vhost_vdpa_net_load_rss()
940 const struct iovec data = { in vhost_vdpa_net_load_mq()
1000 const struct iovec data = { in vhost_vdpa_net_load_offloads()
1021 const struct iovec data = { in vhost_vdpa_net_load_rx_mode()
1183 const struct iovec data = { in vhost_vdpa_net_load_single_vlan()
1467 struct iovec out = { in vhost_vdpa_net_handle_ctrl_avail()
1471 const struct iovec model_in = { in vhost_vdpa_net_handle_ctrl_avail()
[all …]
/openbmc/qemu/include/net/
H A Dqueue.h43 const struct iovec *iov,
52 const struct iovec *iov,
63 const struct iovec *iov,
76 const struct iovec *iov,
H A Dfilter.h30 const struct iovec *iov,
69 const struct iovec *iov,
76 const struct iovec *iov,
/openbmc/linux/drivers/vhost/
H A Dvringh.c1109 struct iovec *iovec; member
1150 struct iovec *iovec = ivec->iov.iovec; in iotlb_translate() local
1152 iovec[ret].iov_len = io_len; in iotlb_translate()
1182 struct iovec iovec[IOTLB_IOV_STRIDE]; in copy_from_iotlb() member
1187 ivec.iov.iovec = iov.iovec; in copy_from_iotlb()
1228 struct iovec iovec[IOTLB_IOV_STRIDE]; in copy_to_iotlb() member
1233 ivec.iov.iovec = iov.iovec; in copy_to_iotlb()
1274 struct iovec iovec[1]; in getu16_iotlb() member
1280 ivec.iov.iovec = iov.iovec; in getu16_iotlb()
1311 struct iovec iovec; in putu16_iotlb() member
[all …]
/openbmc/qemu/hw/9pfs/
H A D9p-proxy.c37 struct iovec in_iovec;
38 struct iovec out_iovec;
48 struct iovec iov; in v9fs_receivefd()
190 struct iovec *reply = &proxy->in_iovec; in v9fs_receive_response()
340 struct iovec *iovec = NULL, *reply = NULL; in v9fs_request() local
348 iovec = &proxy->out_iovec; in v9fs_request()
392 retval = proxy_marshal(iovec, PROXY_HDR_SZ, "ddsd", in v9fs_request()
414 retval = proxy_marshal(iovec, PROXY_HDR_SZ, "ss", in v9fs_request()
509 retval = proxy_marshal(iovec, PROXY_HDR_SZ, in v9fs_request()
736 const struct iovec *iov, in proxy_preadv()
[all …]
/openbmc/linux/tools/testing/selftests/powerpc/ptrace/
H A Dptrace.h108 struct iovec iov; in ptrace_read_regs()
128 struct iovec iov; in ptrace_write_regs()
146 struct iovec iov; in show_tar_registers()
192 struct iovec iov; in write_tar_registers()
235 struct iovec iov; in show_tm_checkpointed_state()
283 struct iovec iov; in write_ckpt_tar_registers()
370 struct iovec iov; in show_ckpt_fpr()
394 struct iovec iov; in write_ckpt_fpr()
539 struct iovec iov; in show_ckpt_gpr()
568 struct iovec iov; in write_ckpt_gpr()
[all …]
/openbmc/qemu/tests/unit/
H A Dtest-iov.c28 static bool iov_equals(const struct iovec *a, const struct iovec *b, in iov_equals()
63 struct iovec *iov; in test_to_from_buf_1()
163 struct iovec *iov, *siov; in test_io()
263 struct iovec *iov; in test_discard_front()
264 struct iovec *iov_tmp; in test_discard_front()
343 struct iovec *iov; in test_discard_front_undo()
344 struct iovec *iov_tmp; in test_discard_front_undo()
345 struct iovec *iov_orig; in test_discard_front_undo()
423 struct iovec *iov; in test_discard_back()
493 struct iovec *iov; in test_discard_back_undo()
[all …]
/openbmc/qemu/include/crypto/
H A Dhash.h69 const struct iovec *iov,
118 const struct iovec *iov,
164 const struct iovec *iov,
/openbmc/linux/drivers/infiniband/hw/hfi1/
H A Dpin_system.c349 struct user_sdma_iovec *iovec, in add_system_iovec_to_sdma_packet() argument
358 start = (uintptr_t)iovec->iov.iov_base + iovec->offset; in add_system_iovec_to_sdma_packet()
385 iovec->offset += from_this_cache_entry; in add_system_iovec_to_sdma_packet()
403 struct user_sdma_iovec *iovec, in hfi1_add_pages_to_sdma_packet() argument
417 cur_iovec = iovec; in hfi1_add_pages_to_sdma_packet()
418 from_this_iovec = iovec->iov.iov_len - iovec->offset; in hfi1_add_pages_to_sdma_packet()
425 iovec++; in hfi1_add_pages_to_sdma_packet()
/openbmc/qemu/hw/virtio/
H A Dvhost-shadow-virtqueue.c83 hwaddr *addrs, const struct iovec *iovec, in vhost_svq_translate_addr() argument
92 .translated_addr = (hwaddr)(uintptr_t)iovec[i].iov_base, in vhost_svq_translate_addr()
93 .size = iovec[i].iov_len, in vhost_svq_translate_addr()
114 int128_makes64(iovec[i].iov_len - 1)); in vhost_svq_translate_addr()
139 const struct iovec *iovec, size_t num, in vhost_svq_vring_write_descs() argument
152 ok = vhost_svq_translate_addr(svq, sg, iovec, num); in vhost_svq_vring_write_descs()
165 descs[i].len = cpu_to_le32(iovec[n].iov_len); in vhost_svq_vring_write_descs()
176 const struct iovec *out_sg, size_t out_num, in vhost_svq_add_split()
177 const struct iovec *in_sg, size_t in_num, in vhost_svq_add_split()
249 int vhost_svq_add(VhostShadowVirtqueue *svq, const struct iovec *out_sg, in vhost_svq_add()
[all …]
/openbmc/linux/drivers/xen/xenbus/
H A Dxenbus_xs.c304 const struct kvec *iovec, in xs_talkv() argument
318 req->vec = iovec; in xs_talkv()
328 msg.len += iovec[i].iov_len; in xs_talkv()
360 struct kvec iovec; in xs_single() local
362 iovec.iov_base = (void *)string; in xs_single()
363 iovec.iov_len = strlen(string) + 1; in xs_single()
483 struct kvec iovec[2]; in xenbus_write() local
490 iovec[0].iov_base = (void *)path; in xenbus_write()
492 iovec[1].iov_base = (void *)string; in xenbus_write()
493 iovec[1].iov_len = strlen(string); in xenbus_write()
[all …]

12345678910>>...14