/openbmc/qemu/include/qemu/ |
H A D | iov.h | 22 size_t iov_size(const struct iovec *iov, const unsigned int iov_cnt); 36 size_t iov_from_buf_full(const struct iovec *iov, unsigned int iov_cnt, 38 size_t iov_to_buf_full(const struct iovec *iov, const unsigned int iov_cnt, 42 iov_from_buf(const struct iovec *iov, unsigned int iov_cnt, in iov_from_buf() 55 iov_to_buf(const struct iovec *iov, const unsigned int iov_cnt, in iov_to_buf() 76 size_t iov_memset(const struct iovec *iov, const unsigned int iov_cnt, 100 const struct iovec *iov, 123 ssize_t iov_send_recv(int sockfd, const struct iovec *iov, unsigned iov_cnt, 135 void iov_hexdump(const struct iovec *iov, const unsigned int iov_cnt, 143 unsigned iov_copy(struct iovec *dst_iov, unsigned int dst_iov_cnt, [all …]
|
/openbmc/linux/io_uring/ |
H A D | rw.c | 57 struct iovec __user *uiov; in io_iov_buffer_select_prep() 58 struct iovec iov; in io_iov_buffer_select_prep() 363 static struct iovec *__io_import_iovec(int ddir, struct io_kiocb *req, in __io_import_iovec() 370 struct iovec *iovec; in __io_import_iovec() local 401 iovec = s->fast_iov; in __io_import_iovec() 402 ret = __import_iovec(ddir, buf, sqe_len, UIO_FASTIOV, &iovec, iter, in __io_import_iovec() 406 return iovec; in __io_import_iovec() 410 struct iovec **iovec, struct io_rw_state *s, in io_import_iovec() argument 413 *iovec = __io_import_iovec(rw, req, s, issue_flags); in io_import_iovec() 414 if (IS_ERR(*iovec)) in io_import_iovec() [all …]
|
/openbmc/qemu/include/io/ |
H A D | channel.h | 112 const struct iovec *iov, 119 const struct iovec *iov, 135 const struct iovec *iov, 140 const struct iovec *iov, 245 const struct iovec *iov, 289 const struct iovec *iov, 322 const struct iovec *iov, 349 const struct iovec *iov, 374 const struct iovec *iov, 389 const struct iovec *iov, [all …]
|
/openbmc/qemu/util/ |
H A D | iov.c | 25 size_t iov_from_buf_full(const struct iovec *iov, unsigned int iov_cnt, in iov_from_buf_full() 44 size_t iov_to_buf_full(const struct iovec *iov, const unsigned int iov_cnt, in iov_to_buf_full() 63 size_t iov_memset(const struct iovec *iov, const unsigned int iov_cnt, in iov_memset() 82 size_t iov_size(const struct iovec *iov, const unsigned int iov_cnt) in iov_size() 96 do_send_recv(int sockfd, int flags, struct iovec *iov, unsigned iov_cnt, in do_send_recv() 146 ssize_t iov_send_recv(int sockfd, const struct iovec *_iov, unsigned iov_cnt, in iov_send_recv() 155 const struct iovec *_iov, in iov_send_recv_with_flags() 163 struct iovec *local_iov, *iov; in iov_send_recv_with_flags() 169 local_iov = g_new0(struct iovec, iov_cnt); in iov_send_recv_with_flags() 243 void iov_hexdump(const struct iovec *iov, const unsigned int iov_cnt, in iov_hexdump() [all …]
|
/openbmc/linux/mm/ |
H A D | process_vm_access.c | 151 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 D | channel.c | 52 const struct iovec *iov, in qio_channel_readv_full() 80 const struct iovec *iov, in qio_channel_writev_full() 114 const struct iovec *iov, in qio_channel_readv_all_eof() 122 const struct iovec *iov, in qio_channel_readv_all() 130 const struct iovec *iov, in qio_channel_readv_full_all_eof() 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() 220 const struct iovec *iov, in qio_channel_readv_full_all() 239 const struct iovec *iov, in qio_channel_writev_all() 247 const struct iovec *iov, in qio_channel_writev_full_all() [all …]
|
/openbmc/qemu/fsdev/ |
H A D | 9p-iov-marshal.h | 7 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/tools/testing/selftests/user_events/ |
H A D | ftrace_test.c | 300 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/linux/include/linux/ |
H A D | uio.h | 67 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() 156 static inline size_t iov_length(const struct iovec *iov, unsigned long nr_segs) in iov_length() 278 void iov_iter_init(struct iov_iter *i, unsigned int direction, const struct iovec *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, [all …]
|
/openbmc/qemu/hw/net/ |
H A D | net_rx_pkt.h | 64 const struct iovec *iov, size_t iovcnt, 211 const struct iovec *iov, 228 const struct iovec *iov, int iovcnt, 245 const struct iovec iov = { in net_rx_pkt_attach_data() 260 struct iovec *net_rx_pkt_get_iovec(struct NetRxPkt *pkt); 289 const struct iovec *iov, int iovcnt);
|
H A D | net_tx_pkt.c | 38 struct iovec *raw; 42 struct iovec *vec; 68 p->vec = g_new(struct iovec, max_frags + NET_TX_PKT_PL_START_FRAG); in net_tx_pkt_init() 70 p->raw = g_new(struct iovec, max_frags); in net_tx_pkt_init() 142 struct iovec *pl_start_frag = pkt->vec + NET_TX_PKT_PL_START_FRAG; in net_tx_pkt_update_sctp_checksum() 168 struct iovec *l2_hdr, *l3_hdr; in net_tx_pkt_parse_headers() 404 struct iovec *ventry; in net_tx_pkt_add_raw_fragment() 503 struct iovec *iov, uint32_t iov_len, in net_tx_pkt_do_sw_csum() 543 struct iovec *dst, int *dst_idx) in net_tx_pkt_fetch_fragment() 546 struct iovec *src = pkt->vec; in net_tx_pkt_fetch_fragment() [all …]
|
/openbmc/qemu/crypto/ |
H A D | hash.c | 48 const struct iovec *iov, in qcrypto_hash_bytesv() 76 struct iovec iov = { .iov_base = (char *)buf, in qcrypto_hash_bytes() 82 const struct iovec *iov, in qcrypto_hash_updatev() 96 struct iovec iov = { .iov_base = (char *)buf, .iov_len = len }; in qcrypto_hash_update() 189 const struct iovec *iov, in qcrypto_hash_digestv() 214 struct iovec iov = { .iov_base = (char *)buf, .iov_len = len }; in qcrypto_hash_digest() 220 const struct iovec *iov, in qcrypto_hash_base64v() 245 struct iovec iov = { .iov_base = (char *)buf, .iov_len = len }; in qcrypto_hash_base64()
|
H A D | hmac.c | 19 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/linux/drivers/vhost/ |
H A D | vringh.c | 229 sizeof(struct iovec), gfp); in resize_iovec() 231 new = kmalloc_array(new_num, sizeof(struct iovec), gfp); in resize_iovec() 234 iov->max_num * sizeof(struct iovec)); in resize_iovec() 731 BUILD_BUG_ON(sizeof(struct iovec) != sizeof(struct kvec)); in vringh_getdesc_user() 732 BUILD_BUG_ON(offsetof(struct iovec, iov_base) != in vringh_getdesc_user() 734 BUILD_BUG_ON(offsetof(struct iovec, iov_len) != in vringh_getdesc_user() 736 BUILD_BUG_ON(sizeof(((struct iovec *)NULL)->iov_base) in vringh_getdesc_user() 738 BUILD_BUG_ON(sizeof(((struct iovec *)NULL)->iov_len) in vringh_getdesc_user() 1109 struct iovec *iovec; member 1150 struct iovec *iovec = ivec->iov.iovec; in iotlb_translate() local [all …]
|
/openbmc/qemu/net/ |
H A D | vhost-vdpa.c | 640 const struct iovec *out_sg, size_t out_num, in vhost_vdpa_net_cvq_add() 641 const struct iovec *in_sg, size_t in_num) in vhost_vdpa_net_cvq_add() 670 struct iovec *out_cursor, in vhost_vdpa_net_load_cursor_reset() 671 struct iovec *in_cursor) in vhost_vdpa_net_load_cursor_reset() 708 struct iovec *out_cursor, in vhost_vdpa_net_load_cmd() 709 struct iovec *in_cursor, uint8_t class, in vhost_vdpa_net_load_cmd() 710 uint8_t cmd, const struct iovec *data_sg, in vhost_vdpa_net_load_cmd() 718 struct iovec out, in; in vhost_vdpa_net_load_cmd() 771 struct iovec *out_cursor, in vhost_vdpa_net_load_mac() 772 struct iovec *in_cursor) in vhost_vdpa_net_load_mac() [all …]
|
/openbmc/linux/tools/testing/selftests/powerpc/ptrace/ |
H A D | ptrace.h | 108 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 D | test-iov.c | 6 static void iov_random(struct iovec **iovp, unsigned *iov_cntp) in iov_random() 9 struct iovec *iov = g_malloc(niov * sizeof(*iov)); in iov_random() 19 static void iov_free(struct iovec *iov, unsigned niov) in iov_free() 28 static bool iov_equals(const struct iovec *a, const struct iovec *b, in iov_equals() 34 static void test_iov_bytes(struct iovec *iov, unsigned niov, in test_iov_bytes() 63 struct iovec *iov; in test_to_from_buf_1() 163 struct iovec *iov, *siov; in test_io() 265 struct iovec *iov; in test_discard_front() 266 struct iovec *iov_tmp; in test_discard_front() 345 struct iovec *iov; in test_discard_front_undo() [all …]
|
/openbmc/qemu/include/crypto/ |
H A D | hash.h | 93 const struct iovec *iov, 149 const struct iovec *iov, 167 const struct iovec *iov, 315 const struct iovec *iov,
|
/openbmc/qemu/hw/virtio/ |
H A D | vhost-shadow-virtqueue.c | 83 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 …]
|
H A D | virtio-nsm.c | 88 static bool error_response(struct iovec *response, enum NSMResponseTypes error, in error_response() 137 static bool handle_get_random(VirtIONSM *vnsm, struct iovec *request, in handle_get_random() 138 struct iovec *response, Error **errp) in handle_get_random() 208 static bool handle_describe_nsm(VirtIONSM *vnsm, struct iovec *request, in handle_describe_nsm() 209 struct iovec *response, Error **errp) in handle_describe_nsm() 370 static bool handle_describe_pcr(VirtIONSM *vnsm, struct iovec *request, in handle_describe_pcr() 371 struct iovec *response, Error **errp) in handle_describe_pcr() 550 static bool handle_extend_pcr(VirtIONSM *vnsm, struct iovec *request, in handle_extend_pcr() 551 struct iovec *response, Error **errp) in handle_extend_pcr() 702 static bool handle_lock_pcr(VirtIONSM *vnsm, struct iovec *request, in handle_lock_pcr() [all …]
|
/openbmc/linux/drivers/infiniband/hw/hfi1/ |
H A D | pin_system.c | 349 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/linux/drivers/xen/xenbus/ |
H A D | xenbus_xs.c | 304 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() 364 return xs_talkv(t, type, &iovec, 1, len); in xs_single() 483 struct kvec iovec[2]; in xenbus_write() local 490 iovec[0].iov_base = (void *)path; in xenbus_write() 491 iovec[0].iov_len = strlen(path) + 1; in xenbus_write() [all …]
|
/openbmc/qemu/include/net/ |
H A D | queue.h | 43 const struct iovec *iov, 52 const struct iovec *iov, 72 const struct iovec *iov,
|
H A D | filter.h | 30 const struct iovec *iov, 69 const struct iovec *iov, 76 const struct iovec *iov,
|
/openbmc/linux/lib/ |
H A D | iov_iter.c | 127 const struct iovec *iov = iter_iov(i); \ 220 const struct iovec *p; in fault_in_iov_iter_readable() 263 const struct iovec *p; in fault_in_iov_iter_writeable() 285 const struct iovec *iov, unsigned long nr_segs, in iov_iter_init() 627 const struct iovec *iov, *end; in iov_iter_iovec_advance() 694 const struct iovec *iov = iter_iov(i); in iov_iter_revert() 817 const struct iovec *iov = iter_iov(i) + k; in iov_iter_aligned_iovec() 904 const struct iovec *iov = iter_iov(i) + k; in iov_iter_alignment_iovec() 976 const struct iovec *iov = iter_iov(i) + k; in iov_iter_gap_alignment() 1070 const struct iovec *iov = iter_iov(i) + k; in first_iovec_segment() [all …]
|