/linux-4.1.27/include/linux/ |
H A D | uio.h | 33 const struct iovec *iov; 41 * Total number of bytes covered by an iovec. 43 * NOTE that it is not safe to use this function until all the iovec's 47 static inline size_t iov_length(const struct iovec *iov, unsigned long nr_segs) iov_length() 57 static inline struct iovec iov_iter_iovec(const struct iov_iter *iter) iov_iter_iovec() 59 return (struct iovec) { iov_iter_iovec() 73 unsigned long iov_shorten(struct iovec *iov, unsigned long nr_segs, size_t to); 90 void iov_iter_init(struct iov_iter *i, int direction, const struct iovec *iov, 151 int import_iovec(int type, const struct iovec __user * uvector, 153 struct iovec **iov, struct iov_iter *i); 159 struct iovec **iov, struct iov_iter *i); 163 struct iovec *iov, struct iov_iter *i);
|
H A D | vringh.h | 85 * struct vringh_iov - iovec mangler. 87 * Mangles iovec in place, and restores it. 91 struct iovec *iov; 119 struct iovec *iovec, unsigned num) vringh_iov_init() 124 iov->iov = iovec; vringh_iov_init() 118 vringh_iov_init(struct vringh_iov *iov, struct iovec *iovec, unsigned num) vringh_iov_init() argument
|
H A D | syscalls.h | 19 struct iovec; 565 const struct iovec __user *vec, 570 const struct iovec __user *vec, 576 asmlinkage long sys_preadv(unsigned long fd, const struct iovec __user *vec, 578 asmlinkage long sys_pwritev(unsigned long fd, const struct iovec __user *vec, 788 asmlinkage long sys_vmsplice(int fd, const struct iovec __user *iov, 862 const struct iovec __user *lvec, 864 const struct iovec __user *rvec, 868 const struct iovec __user *lvec, 870 const struct iovec __user *rvec,
|
H A D | socket.h | 7 #include <linux/uio.h> /* iovec support */ 60 struct iovec __user *msg_iov; /* scatter/gather array */
|
H A D | compat.h | 671 unsigned long fast_segs, struct iovec *fast_pointer, 672 struct iovec **ret_pointer);
|
H A D | net.h | 195 struct iovec;
|
H A D | fs.h | 40 struct iovec; 145 * that indicates that they should check the contents of the iovec are 146 * valid, but not check the memory that the iovec elements 1662 ssize_t rw_copy_check_uvector(int type, const struct iovec __user * uvector, 1664 struct iovec *fast_pointer, 1665 struct iovec **ret_pointer); 1671 extern ssize_t vfs_readv(struct file *, const struct iovec __user *, 1673 extern ssize_t vfs_writev(struct file *, const struct iovec __user *,
|
H A D | bio.h | 649 * allocate their own private memory pools for bio and iovec structures.
|
/linux-4.1.27/mm/ |
H A D | process_vm_access.c | 133 * @rvec: iovec array specifying where to copy to/from in the other process 142 const struct iovec *rvec, process_vm_rw_core() 237 * @lvec: iovec array specifying where to copy to/from locally 239 * @rvec: iovec array specifying where to copy to/from in the other process 248 const struct iovec __user *lvec, process_vm_rw() 250 const struct iovec __user *rvec, process_vm_rw() 254 struct iovec iovstack_l[UIO_FASTIOV]; process_vm_rw() 255 struct iovec iovstack_r[UIO_FASTIOV]; process_vm_rw() 256 struct iovec *iov_l = iovstack_l; process_vm_rw() 257 struct iovec *iov_r = iovstack_r; process_vm_rw() 287 SYSCALL_DEFINE6(process_vm_readv, pid_t, pid, const struct iovec __user *, lvec, SYSCALL_DEFINE6() 288 unsigned long, liovcnt, const struct iovec __user *, rvec, SYSCALL_DEFINE6() 295 const struct iovec __user *, lvec, SYSCALL_DEFINE6() 296 unsigned long, liovcnt, const struct iovec __user *, rvec, SYSCALL_DEFINE6() 312 struct iovec iovstack_l[UIO_FASTIOV]; compat_process_vm_rw() 313 struct iovec iovstack_r[UIO_FASTIOV]; compat_process_vm_rw() 314 struct iovec *iov_l = iovstack_l; compat_process_vm_rw() 315 struct iovec *iov_r = iovstack_r; compat_process_vm_rw()
|
/linux-4.1.27/include/uapi/linux/ |
H A D | uio.h | 16 struct iovec struct
|
H A D | mic_ioctl.h | 38 struct iovec __user *iov; 40 struct iovec *iov; 62 * Copy the number of entries in the iovec and update the used index
|
H A D | bsg.h | 38 dout_xfer points to array of iovec */
|
H A D | ptrace.h | 42 * struct iovec iov = { buf, len};
|
H A D | target_core_user.h | 117 struct iovec iov[0];
|
H A D | fuse.h | 74 * fuse_ioctl_iovec' instead of ambiguous 'struct iovec'
|
/linux-4.1.27/lib/ |
H A D | iov_iter.c | 95 const struct iovec *iov; \ 96 struct iovec v; \ 124 const struct iovec *iov; \ 125 struct iovec v; \ 142 const struct iovec *iov; copy_page_to_iter_iovec() 223 const struct iovec *iov; copy_page_from_iter_iovec() 301 * Fault in the first iovec of the given iov_iter, to a maximum length 307 * first iovec will be faulted with the current implementation). 322 * bytes. For each iovec, fault in each page that constitutes the iovec. 330 const struct iovec *iov; iov_iter_fault_in_multipages_readable() 332 struct iovec v; iov_iter_fault_in_multipages_readable() 347 const struct iovec *iov, unsigned long nr_segs, iov_iter_init() 789 /* iovec and kvec have identical layout */ dup_iter() 791 new->nr_segs * sizeof(struct iovec), dup_iter() 796 int import_iovec(int type, const struct iovec __user * uvector, import_iovec() 798 struct iovec **iov, struct iov_iter *i) import_iovec() 801 struct iovec *p; import_iovec() 821 struct iovec **iov, struct iov_iter *i) compat_import_iovec() 824 struct iovec *p; compat_import_iovec() 840 struct iovec *iov, struct iov_iter *i) import_single_range()
|
/linux-4.1.27/fs/ |
H A D | read_write.c | 413 struct iovec iov = { .iov_base = buf, .iov_len = len }; new_sync_read() 469 struct iovec iov = { .iov_base = (void __user *)buf, .iov_len = len }; new_sync_write() 635 * Reduce an iovec's length in-place. Return the resulting number of segments 637 unsigned long iov_shorten(struct iovec *iov, unsigned long nr_segs, size_t to) iov_shorten() 677 struct iovec iovec = iov_iter_iovec(iter); do_loop_readv_writev() local 680 nr = fn(filp, iovec.iov_base, iovec.iov_len, ppos); do_loop_readv_writev() 688 if (nr != iovec.iov_len) do_loop_readv_writev() 699 ssize_t rw_copy_check_uvector(int type, const struct iovec __user * uvector, rw_copy_check_uvector() 701 struct iovec *fast_pointer, rw_copy_check_uvector() 702 struct iovec **ret_pointer) rw_copy_check_uvector() 706 struct iovec *iov = fast_pointer; rw_copy_check_uvector() 719 * First get the "struct iovec" from user memory and rw_copy_check_uvector() 727 iov = kmalloc(nr_segs*sizeof(struct iovec), GFP_KERNEL); rw_copy_check_uvector() 775 const struct iovec __user * uvector, do_readv_writev() 779 struct iovec iovstack[UIO_FASTIOV]; do_readv_writev() 780 struct iovec *iov = iovstack; do_readv_writev() 826 ssize_t vfs_readv(struct file *file, const struct iovec __user *vec, vfs_readv() 839 ssize_t vfs_writev(struct file *file, const struct iovec __user *vec, vfs_writev() 852 SYSCALL_DEFINE3(readv, unsigned long, fd, const struct iovec __user *, vec, SYSCALL_DEFINE3() 872 SYSCALL_DEFINE3(writev, unsigned long, fd, const struct iovec __user *, vec, SYSCALL_DEFINE3() 898 SYSCALL_DEFINE5(preadv, unsigned long, fd, const struct iovec __user *, vec, SYSCALL_DEFINE5() 922 SYSCALL_DEFINE5(pwritev, unsigned long, fd, const struct iovec __user *, vec, SYSCALL_DEFINE5() 953 struct iovec iovstack[UIO_FASTIOV]; compat_do_readv_writev() 954 struct iovec *iov = iovstack; compat_do_readv_writev()
|
H A D | aio.c | 1376 struct iovec **iovec, aio_setup_vectored_rw() 1384 len, UIO_FASTIOV, iovec, iter); aio_setup_vectored_rw() 1386 return import_iovec(rw, (struct iovec __user *)buf, aio_setup_vectored_rw() 1387 len, UIO_FASTIOV, iovec, iter); aio_setup_vectored_rw() 1402 struct iovec inline_vecs[UIO_FASTIOV], *iovec = inline_vecs; aio_run_iocb() local 1428 &iovec, compat, &iter); aio_run_iocb() 1430 ret = import_single_range(rw, buf, len, iovec, &iter); aio_run_iocb() 1431 iovec = NULL; aio_run_iocb() 1437 kfree(iovec); aio_run_iocb() 1450 kfree(iovec); aio_run_iocb() 1375 aio_setup_vectored_rw(int rw, char __user *buf, size_t len, struct iovec **iovec, bool compat, struct iov_iter *iter) aio_setup_vectored_rw() argument
|
H A D | splice.c | 574 static ssize_t kernel_readv(struct file *file, const struct iovec *vec, kernel_readv() 584 res = vfs_readv(file, (const struct iovec __user *)vec, vlen, &pos); kernel_readv() 615 struct iovec *vec, __vec[PIPE_DEF_BUFFERS]; default_file_splice_read() 635 vec = kmalloc(spd.nr_pages_max * sizeof(struct iovec), GFP_KERNEL); default_file_splice_read() 1437 static int get_iovec_page_array(const struct iovec __user *iov, get_iovec_page_array() 1446 struct iovec entry; get_iovec_page_array() 1459 * Sanity check this iovec. 0 read succeeds. get_iovec_page_array() 1543 static long vmsplice_to_user(struct file *file, const struct iovec __user *uiov, vmsplice_to_user() 1549 struct iovec iovstack[UIO_FASTIOV]; vmsplice_to_user() 1550 struct iovec *iov = iovstack; vmsplice_to_user() 1583 static long vmsplice_to_pipe(struct file *file, const struct iovec __user *iov, vmsplice_to_pipe() 1634 SYSCALL_DEFINE4(vmsplice, int, fd, const struct iovec __user *, iov, SYSCALL_DEFINE4() 1664 struct iovec __user *iov; COMPAT_SYSCALL_DEFINE4() 1667 iov = compat_alloc_user_space(nr_segs * sizeof(struct iovec)); COMPAT_SYSCALL_DEFINE4()
|
H A D | compat.c | 548 unsigned long fast_segs, struct iovec *fast_pointer, compat_rw_copy_check_uvector() 549 struct iovec **ret_pointer) compat_rw_copy_check_uvector() 552 struct iovec *iov = *ret_pointer = fast_pointer; compat_rw_copy_check_uvector() 569 iov = kmalloc(nr_segs*sizeof(struct iovec), GFP_KERNEL); compat_rw_copy_check_uvector()
|
/linux-4.1.27/drivers/xen/xenbus/ |
H A D | xenbus_xs.c | 268 const struct kvec *iovec, xs_talkv() 282 msg.len += iovec[i].iov_len; xs_talkv() 293 err = xb_write(iovec[i].iov_base, iovec[i].iov_len); xs_talkv() 328 struct kvec iovec; xs_single() local 330 iovec.iov_base = (void *)string; xs_single() 331 iovec.iov_len = strlen(string) + 1; xs_single() 332 return xs_talkv(t, type, &iovec, 1, len); xs_single() 451 struct kvec iovec[2]; xenbus_write() local 458 iovec[0].iov_base = (void *)path; xenbus_write() 459 iovec[0].iov_len = strlen(path) + 1; xenbus_write() 460 iovec[1].iov_base = (void *)string; xenbus_write() 461 iovec[1].iov_len = strlen(string); xenbus_write() 463 ret = xs_error(xs_talkv(t, XS_WRITE, iovec, ARRAY_SIZE(iovec), NULL)); xenbus_write() 266 xs_talkv(struct xenbus_transaction t, enum xsd_sockmsg_type type, const struct kvec *iovec, unsigned int num_vecs, unsigned int *len) xs_talkv() argument
|
/linux-4.1.27/Documentation/mic/mpssd/ |
H A D | mpssd.c | 373 /* Display an iovec */ 525 struct iovec vnet_iov[2][2] = { virtio_net() 531 struct iovec *iov0 = vnet_iov[0], *iov1 = vnet_iov[1]; virtio_net() 723 struct iovec vcons_iov[2] = { virtio_console() 727 struct iovec *iov0 = &vcons_iov[0], *iov1 = &vcons_iov[1]; virtio_console() 1084 struct iovec iovec; read_header() local 1087 iovec.iov_len = sizeof(*hdr); read_header() 1088 iovec.iov_base = hdr; read_header() 1089 copy.iov = &iovec; read_header() 1097 transfer_blocks(int fd, struct iovec *iovec, __u32 iovcnt) transfer_blocks() argument 1101 copy.iov = iovec; transfer_blocks() 1122 struct iovec iovec; write_status() local 1125 iovec.iov_base = status; write_status() 1126 iovec.iov_len = sizeof(*status); write_status() 1127 copy.iov = &iovec; write_status() 1144 struct iovec *iovec, *piov; virtio_block() local 1161 iovec = malloc(sizeof(*iovec) * virtio_block() 1163 if (!iovec) { virtio_block() 1164 mpsslog("%s: can't alloc iovec: %s\n", virtio_block() 1220 piov = iovec; virtio_block() 1257 iovec, virtio_block() 1258 piov - iovec); virtio_block() 1276 free(iovec); virtio_block()
|
/linux-4.1.27/block/ |
H A D | blk-map.c | 47 * @iter: iovec iterator 70 struct iovec iov; blk_rq_map_user_iov() 125 struct iovec iov; blk_rq_map_user()
|
H A D | bio.c | 52 * fs_bio_set is the bio_set containing bio and iovec memory pools used by 1026 struct iovec iov[]; 1036 sizeof(struct iovec) * iov_count, gfp_mask); bio_alloc_map_data() 1145 * @iter: iovec iterator 1197 memcpy(bmd->iov, iter->iov, sizeof(struct iovec) * iter->nr_segs); bio_copy_user_iov() 1273 * bio_map_user_iov - map user iovec into bio 1275 * @iter: iovec iterator 1292 struct iovec iov; bio_map_user_iov()
|
H A D | scsi_ioctl.c | 336 struct iovec *iov = NULL; sg_io()
|
H A D | bsg.c | 514 const struct iovec *iov, ssize_t *bytes_read) __bsg_read()
|
/linux-4.1.27/drivers/vhost/ |
H A D | vhost.h | 99 struct iovec iov[UIO_MAXIOV]; 100 struct iovec *indirect; 138 struct iovec iov[], unsigned int iov_count,
|
H A D | vringh.c | 71 /* Copy some bytes to/from the iovec. Returns num copied. */ vringh_iov_xfer() 191 new = krealloc(iov->iov, new_num * sizeof(struct iovec), gfp); resize_iovec() 193 new = kmalloc(new_num * sizeof(struct iovec), gfp); resize_iovec() 196 iov->max_num * sizeof(struct iovec)); resize_iovec() 676 BUILD_BUG_ON(sizeof(struct iovec) != sizeof(struct kvec)); vringh_getdesc_user() 677 BUILD_BUG_ON(offsetof(struct iovec, iov_base) != vringh_getdesc_user() 679 BUILD_BUG_ON(offsetof(struct iovec, iov_len) != vringh_getdesc_user() 681 BUILD_BUG_ON(sizeof(((struct iovec *)NULL)->iov_base) vringh_getdesc_user() 683 BUILD_BUG_ON(sizeof(((struct iovec *)NULL)->iov_len) vringh_getdesc_user()
|
H A D | vhost.c | 263 /* Helper to allocate iovec buffers for all vqs. */ vhost_dev_alloc_iovecs() 1066 struct iovec iov[], int iov_size) translate_desc() 1070 struct iovec *_iov; translate_desc() 1121 struct iovec iov[], unsigned int iov_size, get_indirect() 1213 * it to an iovec for convenient access. Since descriptors consist of some 1221 struct iovec iov[], unsigned int iov_size, vhost_get_vq_desc()
|
H A D | scsi.c | 91 /* Pointer to response header iovec */ 92 struct iovec *tvc_resp_iov; 1084 * single iovec may contain both the header + outgoing vhost_scsi_handle_vq() 1114 * iovec sizes + incoming iovec sizes vs. virtio-scsi request + vhost_scsi_handle_vq() 1120 * For DMA_FROM_DEVICE, the iovec will be just past the end vhost_scsi_handle_vq() 1122 * or immediately following iovec. vhost_scsi_handle_vq()
|
/linux-4.1.27/arch/cris/include/arch-v32/arch/ |
H A D | cryptocop.h | 118 struct iovec *indata; 122 struct iovec *outdata;
|
/linux-4.1.27/include/net/ |
H A D | compat.h | 44 struct sockaddr __user **, struct iovec **);
|
/linux-4.1.27/drivers/infiniband/hw/ipath/ |
H A D | ipath_user_sdma.c | 174 /* we've too many pages in the iovec, coalesce to a single page */ ipath_user_sdma_coalesce() 177 const struct iovec *iov, ipath_user_sdma_coalesce() 228 /* how many pages in this iovec element? */ ipath_user_sdma_num_pages() 229 static int ipath_user_sdma_num_pages(const struct iovec *iov) ipath_user_sdma_num_pages() 324 const struct iovec *iov, ipath_user_sdma_pin_pkt() 354 const struct iovec *iov, ipath_user_sdma_init_payload() 394 const struct iovec *iov, ipath_user_sdma_queue_pkts() 471 * iovec lengths. ipath_user_sdma_queue_pkts() 793 const struct iovec *iov, ipath_user_sdma_writev()
|
/linux-4.1.27/arch/um/os-Linux/drivers/ |
H A D | tuntap_user.c | 72 struct iovec iov; tuntap_open_tramp() 90 iov = ((struct iovec) { buffer, buffer_len }); tuntap_open_tramp()
|
/linux-4.1.27/drivers/staging/lustre/lnet/klnds/socklnd/ |
H A D | socklnd.h | 195 * struct iovec fragments (the first frag contains the portals header), 198 * On the receive side, initially 1 struct iovec fragment is posted for 200 * received into either struct iovec or lnet_kiov_t fragments, depending on 215 int tx_niov; /* # packet iovec frags */ 216 struct kvec *tx_iov; /* packet iovec frags */ 286 int ksnc_rx_niov; /* # iovec frags */ 287 struct kvec *ksnc_rx_iov; /* the iovec frags */
|
H A D | socklnd_cb.c | 1099 niov < sizeof(conn->ksnc_rx_iov_space) / sizeof (struct iovec)); ksocknal_new_packet()
|
/linux-4.1.27/net/core/ |
H A D | datagram.c | 29 * Alan Cox : Datagram iovec handling 349 * skb_copy_datagram_iter - Copy a datagram to an iovec iterator. 352 * @to: iovec iterator to copy to 353 * @len: amount of data to copy from buffer to iovec 439 * @len: amount of data to copy to buffer from iovec 695 * skb_copy_and_csum_datagram_msg - Copy and checksum skb to user iovec. 700 * Caller _must_ check that skb will fit to this iovec.
|
H A D | sock.c | 324 /* Maximal space eaten by iovec or ancillary data plus some space */
|
/linux-4.1.27/fs/xfs/ |
H A D | xfs_extfree_item.c | 73 * We only need 1 iovec for an efi item. It just logs the efi_log_format 96 * given efi log item. We use only 1 iovec, and we point that 340 * We only need 1 iovec for an efd item. It just logs the efd_log_format 363 * given efd log item. We use only 1 iovec, and we point that
|
H A D | xfs_icreate_item.c | 42 * We only need one iovec for the icreate log structure.
|
H A D | xfs_buf_item.c | 55 * It calculates this as 1 iovec for the buf log format structure 57 * Contiguous chunks are logged in a single iovec. 117 * It calculates this as 1 iovec for the buf log format structure and 1 for each 119 * in a single iovec. 262 * Fill in an iovec for each set of contiguous chunks. xfs_buf_item_format_segment() 276 * If we run out of bits fill in the last iovec and get out of xfs_buf_item_format_segment() 278 * the iovec for the series we were looking at and start xfs_buf_item_format_segment()
|
H A D | xfs_log.h | 24 struct xfs_log_iovec *lv_iovecp; /* iovec array */
|
H A D | xfs_dquot_item.c | 274 * We only need 1 iovec for an quotaoff item. It just logs the
|
H A D | xfs_log_cil.c | 194 * need an iovec or buffer to be allocated for copying data. xlog_cil_insert_format_items() 203 * We 64-bit align the length of each iovec so that the start xlog_cil_insert_format_items() 257 /* The allocated data region lies beyond the iovec region */ xlog_cil_insert_format_items() 313 /* account for space used by new iovec headers */ xlog_cil_insert_items()
|
H A D | xfs_inode_item.c | 123 * We need one iovec for the inode log format structure, one for the
|
/linux-4.1.27/security/keys/ |
H A D | compat.c | 33 struct iovec iovstack[UIO_FASTIOV], *iov = iovstack; compat_keyctl_instantiate_key_iov()
|
H A D | internal.h | 19 struct iovec; 242 const struct iovec __user *,
|
H A D | keyctl.c | 1097 struct iovec iov; keyctl_instantiate_key() 1122 const struct iovec __user *_payload_iov, keyctl_instantiate_key_iov() 1126 struct iovec iovstack[UIO_FASTIOV], *iov = iovstack; keyctl_instantiate_key_iov() 1652 (const struct iovec __user *) arg3, SYSCALL_DEFINE5()
|
/linux-4.1.27/drivers/staging/lustre/include/linux/lnet/ |
H A D | types.h | 186 * address of an array of struct iovec and the length field specifies 188 * than LNET_MAX_IOV. The struct iovec is used to describe fragments 245 * struct iovec. 318 /* NB lustre portals uses struct iovec internally! */ 319 typedef struct iovec lnet_md_iovec_t;
|
H A D | lib-types.h | 327 * in virtual memory (struct iovec *iov != NULL)
|
/linux-4.1.27/drivers/atm/ |
H A D | he.c | 1622 tpd->iovec[0].addr = 0; tpd->iovec[0].len = 0; __alloc_tpd() 1623 tpd->iovec[1].addr = 0; tpd->iovec[1].len = 0; __alloc_tpd() 1624 tpd->iovec[2].addr = 0; tpd->iovec[2].len = 0; __alloc_tpd() 1848 if (tpd->iovec[slot].addr) he_service_tbrq() 1850 tpd->iovec[slot].addr, he_service_tbrq() 1851 tpd->iovec[slot].len & TPD_LEN_MASK, he_service_tbrq() 1853 if (tpd->iovec[slot].len & TPD_LST) he_service_tbrq() 2089 if (tpd->iovec[slot].addr) __enqueue_tpd() 2091 tpd->iovec[slot].addr, __enqueue_tpd() 2092 tpd->iovec[slot].len & TPD_LEN_MASK, __enqueue_tpd() 2556 tpd->iovec[slot].addr = dma_map_single(&he_dev->pci_dev->dev, skb->data, he_send() 2558 tpd->iovec[slot].len = skb_headlen(skb); he_send() 2585 tpd->iovec[slot].addr = dma_map_single(&he_dev->pci_dev->dev, he_send() 2588 tpd->iovec[slot].len = frag->size; he_send() 2593 tpd->iovec[slot - 1].len |= TPD_LST; he_send()
|
H A D | nicstar.c | 139 static void recycle_iovec_rx_bufs(ns_dev * card, struct iovec *iov, int count); 230 PRINTK("nicstar%d: freeing %d iovec buffers.\n", i, nicstar_remove_one() 236 PRINTK("nicstar%d: %d iovec buffers freed.\n", i, j); nicstar_remove_one() 727 /* Allocate iovec buffers */ ns_init_card() 735 ("nicstar%d: can't allocate %dth of %d iovec buffers.\n", ns_init_card() 1448 recycle_iovec_rx_bufs(card, (struct iovec *)iovb->data, ns_close() 1967 struct iovec *iov; dequeue_rx() 2064 printk("nicstar%d: Out of iovec buffers.\n", dequeue_rx() 2086 buffer is stored as iovec base, NOT a pointer to the dequeue_rx() 2091 recycle_iovec_rx_bufs(card, (struct iovec *)iovb->data, dequeue_rx() 2098 iov = &((struct iovec *)iovb->data)[NS_PRV_IOVCNT(iovb)++]; dequeue_rx() 2124 recycle_iovec_rx_bufs(card, (struct iovec *)iovb->data, dequeue_rx() 2147 recycle_iovec_rx_bufs(card, (struct iovec *)iovb->data, dequeue_rx() 2227 (struct iovec *) dequeue_rx() 2266 iov = (struct iovec *)iovb->data; dequeue_rx() 2330 static void recycle_iovec_rx_bufs(ns_dev * card, struct iovec *iov, int count) recycle_iovec_rx_bufs() 2637 ("nicstar%d: iovec buffer count inconsistent.\n", ns_ioctl()
|
H A D | he.h | 126 } iovec[TPD_MAXIOV]; member in struct:he_tpd 128 #define address0 iovec[0].addr 129 #define length0 iovec[0].len
|
H A D | horizon.h | 419 struct iovec * tx_iovec; // remaining regions
|
H A D | nicstar.h | 108 #define NS_IOVBUFSIZE (NS_MAX_IOVECS * (sizeof(struct iovec)))
|
H A D | zatm.c | 689 *put++ = ((struct iovec *) skb->data)[i].iov_len; do_tx() 690 *put++ = virt_to_bus(((struct iovec *) do_tx()
|
H A D | ambassador.c | 249 . Give scatter-gather (iovec) requirements using ???. (?)
|
H A D | horizon.c | 1709 PRINTD (DBG_TX|DBG_BUS, "TX start scatter-gather transfer (iovec %p, len %d)", hrz_send()
|
/linux-4.1.27/drivers/infiniband/hw/qib/ |
H A D | qib_user_sdma.c | 560 /* we've too many pages in the iovec, coalesce to a single page */ qib_user_sdma_coalesce() 564 const struct iovec *iov, qib_user_sdma_coalesce() 607 * How many pages in this iovec element? 609 static int qib_user_sdma_num_pages(const struct iovec *iov) qib_user_sdma_num_pages() 722 const struct iovec *iov, qib_user_sdma_pin_pkt() 764 const struct iovec *iov, qib_user_sdma_init_payload() 809 const struct iovec *iov, qib_user_sdma_queue_pkts() 871 * iovec lengths. qib_user_sdma_queue_pkts() 1378 const struct iovec *iov, qib_user_sdma_writev()
|
/linux-4.1.27/drivers/misc/mic/host/ |
H A D | mic_virtio.c | 261 struct iovec iov; _mic_virtio_copy() 262 struct iovec __user *u_iov = copy->iov; _mic_virtio_copy() 283 /* Copy over a new iovec from user space. */ _mic_virtio_copy() 317 /* One user space iovec is now completed */ _mic_virtio_copy()
|
/linux-4.1.27/arch/um/drivers/ |
H A D | mconsole_user.c | 42 struct iovec iov; mconsole_reply_v0()
|
/linux-4.1.27/net/sunrpc/ |
H A D | socklib.c | 151 * packet in parallel with the copies into the RPC client iovec. -DaveM
|
H A D | xprt.c | 936 * We have to copy the iovec because sendmsg fiddles with its contents.
|
H A D | xprtsock.c | 1012 /* Suck it into the iovec, verify checksum if not done by hw. */ xs_udp_data_ready()
|
/linux-4.1.27/arch/um/os-Linux/ |
H A D | file.c | 485 struct iovec iov; os_rcv_fd() 489 iov = ((struct iovec) { .iov_base = helper_pid_out, os_rcv_fd()
|
/linux-4.1.27/arch/cris/arch-v32/drivers/ |
H A D | cryptocop.c | 548 /* Traverse the out iovec until the result inject index is reached. */ create_input_descriptors() 776 /* iovec accounting. */ cryptocop_setup_dma_list() 2433 static int map_pages_to_iovec(struct iovec *iov, int iovlen, int *iovix, struct page **pages, int nopages, int *pageix, int *pageoffset, int map_length ) map_pages_to_iovec() 2464 DEBUG(printk("mapping %d bytes from page %d (or %d) to iovec %d\n", tmplen, *pageix, *pageix-1, *iovix)); map_pages_to_iovec() 2760 cop->tfrm_op.indata = kmalloc((noinpages) * sizeof(struct iovec), GFP_KERNEL); cryptocop_ioctl_process() 2761 cop->tfrm_op.outdata = kmalloc((6 + nooutpages) * sizeof(struct iovec), GFP_KERNEL); cryptocop_ioctl_process() 2866 DEBUG(printk("cryptocop_ioctl_process: mapping %d byte digest output to iovec %d\n", digest_length, iovix)); cryptocop_ioctl_process() 2867 /* Add outdata iovec, length == <length of type of digest> */ cryptocop_ioctl_process() 2873 /* Add outdata iovec, length == 2, the length of csum. */ cryptocop_ioctl_process() 2874 DEBUG(printk("cryptocop_ioctl_process: mapping 2 byte csum output to iovec %d\n", iovix)); cryptocop_ioctl_process() 2875 /* Add outdata iovec, length == <length of type of digest> */ cryptocop_ioctl_process() 2882 DEBUG_API(printk("cryptocop_ioctl_process: failed to map pages to iovec.\n")); cryptocop_ioctl_process()
|
/linux-4.1.27/fs/cifs/ |
H A D | smb2transport.c | 178 cifs_dbg(VFS, "null iovec entry\n"); smb2_calc_signature() 349 cifs_dbg(VFS, "null iovec entry"); smb3_calc_signature()
|
H A D | smb2pdu.c | 1338 * the dummy one byte of data in iovec[0] if sending SMB2_ioctl() 1339 * input data (in iovec[1]). We also must add 4 bytes SMB2_ioctl() 1340 * in first iovec to allow for rfc1002 length field. SMB2_ioctl()
|
H A D | cifsencrypt.c | 111 cifs_dbg(VFS, "null iovec entry\n"); cifs_calc_signature()
|
H A D | file.c | 2450 * the address in the iovec was bogus. Return -EFAULT and let wdata_fill_from_iovec() 2576 * extra memory-to-memory copying and use iovec buffers for constructing cifs_user_writev() 2816 * cifs_readdata_to_iov - copy data from pages in response to an iovec
|
H A D | cifssmb.c | 3847 rc = SendReceive2(xid, tcon->ses, iov, 1 /* num iovec */, &buf_type, CIFSSMBGetCIFSACL()
|
/linux-4.1.27/include/linux/sunrpc/ |
H A D | xdr.h | 47 * The tail iovec allows you to append data after the page array. Its
|
/linux-4.1.27/kernel/ |
H A D | ptrace.c | 793 struct iovec *kiov) ptrace_regset() 1013 struct iovec kiov; ptrace_request() 1014 struct iovec __user *uiov = datavp; ptrace_request() 1171 struct iovec kiov; compat_ptrace_request()
|
/linux-4.1.27/tools/hv/ |
H A D | hv_vss_daemon.c | 151 struct iovec iov[2]; netlink_send()
|
H A D | hv_kvp_daemon.c | 1396 struct iovec iov[2]; netlink_send()
|
/linux-4.1.27/fs/fuse/ |
H A D | file.c | 2259 static int fuse_ioctl_copy_user(struct page **pages, struct iovec *iov, fuse_ioctl_copy_user() 2304 * ABI was defined to be 'struct iovec' which is different on 32bit 2308 static int fuse_copy_ioctl_iovec_old(struct iovec *dst, void *src, fuse_copy_ioctl_iovec_old() 2333 if (count * sizeof(struct iovec) != transferred) fuse_copy_ioctl_iovec_old() 2341 static int fuse_verify_ioctl_iov(struct iovec *iov, size_t count) fuse_verify_ioctl_iov() 2354 static int fuse_copy_ioctl_iovec(struct fuse_conn *fc, struct iovec *dst, fuse_copy_ioctl_iovec() 2450 struct iovec *iov_page = NULL; fuse_do_ioctl() 2451 struct iovec *in_iov = NULL, *out_iov = NULL; fuse_do_ioctl() 2468 iov_page = (struct iovec *) __get_free_page(GFP_KERNEL); fuse_do_ioctl() 2477 struct iovec *iov = iov_page; fuse_do_ioctl()
|
/linux-4.1.27/tools/lguest/ |
H A D | lguest.c | 266 /* Is this iovec empty? */ iov_empty() 267 static bool iov_empty(const struct iovec iov[], unsigned int num_iov) iov_empty() 277 /* Take len bytes from the front of this iovec. */ iov_consume() 279 struct iovec iov[], unsigned num_iov, iov_consume() 297 bad_driver(d, "iovec too short!"); iov_consume() 730 * it to an iovec for convenient access. Since descriptors consist of some 737 struct iovec iov[], wait_for_vq_desc() 954 struct iovec iov[vq->vring.num]; console_input() 1007 struct iovec iov[vq->vring.num]; console_output() 1045 struct iovec iov[vq->vring.num]; net_output() 1089 struct iovec iov[vq->vring.num]; net_input() 2941 struct iovec iov[vq->vring.num]; blk_request() 3081 struct iovec iov[vq->vring.num]; rng_input() 3089 * Just like the console write, we loop to cover the whole iovec. rng_input()
|
/linux-4.1.27/drivers/net/caif/ |
H A D | caif_virtio.c | 263 /* Put the previous iovec back on the used ring and cfv_rx_poll() 264 * fetch a new iovec if we have processed all elements. cfv_rx_poll()
|
/linux-4.1.27/tools/virtio/ |
H A D | vringh_test.c | 195 struct iovec host_riov[2], host_wiov[2]; parallel_test() 441 struct iovec host_riov[2], host_wiov[2]; main()
|
/linux-4.1.27/drivers/target/ |
H A D | target_core_file.c | 217 * based upon struct iovec limit for vfs_writev() fd_configure_device() 624 "FD_MAX_BYTES: %u iovec count limitiation\n", fd_execute_rw() 630 * physical memory addresses to struct iovec virtual memory. fd_execute_rw()
|
H A D | target_core_user.c | 279 struct iovec *iov; tcmu_queue_cmd_ring() 487 /* It'd be easier to look at entry's iovec again, but UAM */ tcmu_handle_completion()
|
/linux-4.1.27/arch/alpha/kernel/ |
H A D | osf_sys.c | 1365 osf_fix_iov_len(const struct iovec __user *iov, unsigned long count) osf_fix_iov_len() 1379 const struct iovec __user *, vector, unsigned long, count) SYSCALL_DEFINE3() 1388 const struct iovec __user *, vector, unsigned long, count) SYSCALL_DEFINE3()
|
/linux-4.1.27/net/ |
H A D | socket.c | 1636 struct iovec iov; SYSCALL_DEFINE6() 1689 struct iovec iov; SYSCALL_DEFINE6() 1834 struct iovec **iov) copy_msghdr_from_user() 1837 struct iovec __user *uiov; copy_msghdr_from_user() 1891 struct iovec iovstack[UIO_FASTIOV], *iov = iovstack; ___sys_sendmsg() 2077 struct iovec iovstack[UIO_FASTIOV]; ___sys_recvmsg() 2078 struct iovec *iov = iovstack; ___sys_recvmsg()
|
H A D | compat.c | 37 struct iovec **iov) get_compat_msghdr()
|
/linux-4.1.27/drivers/misc/vmw_vmci/ |
H A D | vmci_queue_pair.c | 384 /* The iovec will track bytes_copied internally. */ __qp_memcpy_to_queue() 444 /* The iovec will track bytes_copied internally. */ __qp_memcpy_from_queue() 587 * Copies from a given iovec from a VMCI Queue. 596 * We ignore src_offset because src is really a struct iovec * and will qp_memcpy_to_queue_iov() 603 * Copies to a given iovec from a VMCI Queue. 611 * We ignore dest_offset because dest is really a struct iovec * and qp_memcpy_from_queue_iov()
|
/linux-4.1.27/crypto/ |
H A D | algif_aead.c | 432 /* make one iovec available as scatterlist */ aead_recvmsg()
|
/linux-4.1.27/fs/nfsd/ |
H A D | nfsxdr.c | 263 * We take pages, put them on reslist and include in iovec nfssvc_decode_readargs()
|
H A D | vfs.c | 896 host_err = vfs_readv(file, (struct iovec __user *)vec, vlen, &offset); nfsd_readv() 983 host_err = vfs_writev(file, (struct iovec __user *)vec, vlen, &pos); nfsd_vfs_write()
|
/linux-4.1.27/arch/parisc/kernel/ |
H A D | syscall_table.S | 231 /* struct iovec contains pointers */
|
/linux-4.1.27/Documentation/networking/timestamping/ |
H A D | timestamping.c | 283 struct iovec entry; recvpacket()
|
H A D | txtimestamp.c | 235 struct iovec entry; recv_errmsg()
|
/linux-4.1.27/net/rds/ |
H A D | rdma.c | 482 * Count the number of pages needed to describe an incoming iovec array. 575 /* Check whether to allocate the iovec area */ rds_cmsg_rdma_args()
|
/linux-4.1.27/fs/nfs/ |
H A D | nfs3proc.c | 615 * to the encode function, which installs it in the receive iovec.
|
H A D | proc.c | 482 * the receive iovec. The decode function just parses the reply to make
|
H A D | direct.c | 249 * @nr_segs: size of iovec array
|
/linux-4.1.27/tools/testing/selftests/net/ |
H A D | psock_tpacket.c | 79 struct iovec *rd;
|
/linux-4.1.27/drivers/scsi/megaraid/ |
H A D | megaraid_sas.h | 1918 struct iovec sgl[MAX_IOCTL_SGE];
|
/linux-4.1.27/drivers/staging/lustre/lustre/llite/ |
H A D | vvp_io.c | 217 struct iovec iov; vvp_mmap_locks()
|
/linux-4.1.27/fs/xfs/libxfs/ |
H A D | xfs_log_format.h | 92 /* Region types for iovec's i_type */
|
/linux-4.1.27/net/ipv4/ |
H A D | ping.c | 672 * iovec is modified! The ICMP header is consumed. ping_common_sendmsg()
|
H A D | udp.c | 55 * Olaf Kirch : Don't linearise iovec on sendmsg.
|
/linux-4.1.27/drivers/block/ |
H A D | skd_main.c | 1446 pr_debug("%s:%s:%d alloc iovec failed %d\n", skd_sg_io_get_and_check_args() 1455 pr_debug("%s:%s:%d copy_from_user iovec failed %p\n", skd_sg_io_get_and_check_args() 1472 sksgio->iovcnt = iov_shorten((struct iovec *)iov, skd_sg_io_get_and_check_args()
|
H A D | nvme-scsi.c | 2087 * First, when an SGL is used in the form of an iovec list: nvme_trans_do_nvme_io()
|
/linux-4.1.27/fs/ocfs2/cluster/ |
H A D | tcp.c | 1057 caller_bytes = iov_length((struct iovec *)caller_vec, caller_veclen); o2net_send_message_vec()
|
/linux-4.1.27/net/sunrpc/auth_gss/ |
H A D | svcauth_gss.c | 824 * The server uses base of head iovec as read pointer, while the
|
/linux-4.1.27/net/vmw_vsock/ |
H A D | vmci_transport.c | 1774 /* Place the datagram payload in the user's iovec. */ vmci_transport_dgram_dequeue()
|
/linux-4.1.27/drivers/net/ppp/ |
H A D | ppp_generic.c | 419 struct iovec iov; ppp_read()
|
/linux-4.1.27/drivers/scsi/ |
H A D | sg.c | 1749 struct iovec *iov = NULL; sg_start_req()
|
/linux-4.1.27/net/ceph/ |
H A D | messenger.c | 825 * entry in the current bio iovec, or the first entry in the next
|
/linux-4.1.27/drivers/target/iscsi/ |
H A D | iscsi_target.c | 732 * Map some portion of the allocated scatterlist to an iovec, suitable for
|
/linux-4.1.27/net/sctp/ |
H A D | sm_make_chunk.c | 1503 /* Copy data (whole iovec) into chunk */ sctp_user_addto_chunk()
|
/linux-4.1.27/fs/btrfs/ |
H A D | inode.c | 8302 * iovec, if so return EINVAL, otherwise we'll get csum errors check_direct_IO()
|