Home
last modified time | relevance | path

Searched refs:iov_iter (Results 1 – 25 of 265) sorted by relevance

1234567891011

/linux-6.6.21/include/linux/
Duio.h41 struct iov_iter { struct
86 static inline const struct iovec *iter_iov(const struct iov_iter *iter) in iter_iov() argument
96 static inline enum iter_type iov_iter_type(const struct iov_iter *i) in iov_iter_type()
101 static inline void iov_iter_save_state(struct iov_iter *iter, in iov_iter_save_state()
109 static inline bool iter_is_ubuf(const struct iov_iter *i) in iter_is_ubuf()
114 static inline bool iter_is_iovec(const struct iov_iter *i) in iter_is_iovec()
119 static inline bool iov_iter_is_kvec(const struct iov_iter *i) in iov_iter_is_kvec()
124 static inline bool iov_iter_is_bvec(const struct iov_iter *i) in iov_iter_is_bvec()
129 static inline bool iov_iter_is_discard(const struct iov_iter *i) in iov_iter_is_discard()
134 static inline bool iov_iter_is_xarray(const struct iov_iter *i) in iov_iter_is_xarray()
[all …]
Dcrash_dump.h27 ssize_t copy_oldmem_page(struct iov_iter *i, unsigned long pfn, size_t csize,
29 ssize_t copy_oldmem_page_encrypted(struct iov_iter *iter, unsigned long pfn,
137 ssize_t read_from_oldmem(struct iov_iter *iter, size_t count,
140 static inline ssize_t read_from_oldmem(struct iov_iter *iter, size_t count, in read_from_oldmem()
Ddax.h43 void *addr, size_t bytes, struct iov_iter *iter);
68 void *addr, size_t bytes, struct iov_iter *i);
121 pgoff_t pgoff, void *addr, size_t bytes, struct iov_iter *i) in dax_recovery_write()
233 size_t bytes, struct iov_iter *i);
235 size_t bytes, struct iov_iter *i);
242 ssize_t dax_iomap_rw(struct kiocb *iocb, struct iov_iter *iter,
Dnetfs.h242 struct iov_iter *iter,
250 struct iov_iter *iter,
300 ssize_t netfs_extract_user_iter(struct iov_iter *orig, size_t orig_len,
301 struct iov_iter *new,
Diomap.h19 struct iov_iter;
259 ssize_t iomap_file_buffered_write(struct kiocb *iocb, struct iov_iter *from,
385 ssize_t iomap_dio_rw(struct kiocb *iocb, struct iov_iter *iter,
388 struct iomap_dio *__iomap_dio_rw(struct kiocb *iocb, struct iov_iter *iter,
Dio_uring.h46 struct iov_iter *iter, void *ioucmd);
87 struct iov_iter *iter, void *ioucmd) in io_uring_cmd_import_fixed()
/linux-6.6.21/lib/
Diov_iter.c212 size_t fault_in_iov_iter_readable(const struct iov_iter *i, size_t size) in fault_in_iov_iter_readable()
255 size_t fault_in_iov_iter_writeable(const struct iov_iter *i, size_t size) in fault_in_iov_iter_writeable()
284 void iov_iter_init(struct iov_iter *i, unsigned int direction, in iov_iter_init()
289 *i = (struct iov_iter) { in iov_iter_init()
310 size_t _copy_to_iter(const void *addr, size_t bytes, struct iov_iter *i) in _copy_to_iter()
359 size_t _copy_mc_to_iter(const void *addr, size_t bytes, struct iov_iter *i) in _copy_mc_to_iter()
375 static void *memcpy_from_iter(struct iov_iter *i, void *to, const void *from, in memcpy_from_iter()
383 size_t _copy_from_iter(void *addr, size_t bytes, struct iov_iter *i) in _copy_from_iter()
399 size_t _copy_from_iter_nocache(void *addr, size_t bytes, struct iov_iter *i) in _copy_from_iter_nocache()
430 size_t _copy_from_iter_flushcache(void *addr, size_t bytes, struct iov_iter *i) in _copy_from_iter_flushcache()
[all …]
Dkunit_iov_iter.c73 struct iov_iter *iter, int dir, in iov_kunit_load_kvec()
101 struct iov_iter iter; in iov_kunit_copy_to_kvec()
151 struct iov_iter iter; in iov_kunit_copy_from_kvec()
217 struct iov_iter *iter, int dir, in iov_kunit_load_bvec()
260 struct iov_iter iter; in iov_kunit_copy_to_bvec()
314 struct iov_iter iter; in iov_kunit_copy_from_bvec()
374 struct iov_iter *iter, int dir, in iov_kunit_load_xarray()
407 struct iov_iter iter; in iov_kunit_copy_to_xarray()
465 struct iov_iter iter; in iov_kunit_copy_from_xarray()
528 struct iov_iter iter; in iov_kunit_extract_pages_kvec()
[all …]
/linux-6.6.21/arch/x86/kernel/
Dcrash_dump_64.c15 static ssize_t __copy_oldmem_page(struct iov_iter *iter, unsigned long pfn, in __copy_oldmem_page()
38 ssize_t copy_oldmem_page(struct iov_iter *iter, unsigned long pfn, size_t csize, in copy_oldmem_page()
49 ssize_t copy_oldmem_page_encrypted(struct iov_iter *iter, unsigned long pfn, in copy_oldmem_page_encrypted()
58 struct iov_iter iter; in elfcorehdr_read()
/linux-6.6.21/sound/core/
Dmemory.c26 struct iov_iter iter; in copy_to_user_fromio()
44 int copy_to_iter_fromio(struct iov_iter *dst, const void __iomem *src, in copy_to_iter_fromio()
78 struct iov_iter iter; in copy_from_user_toio()
96 int copy_from_iter_toio(void __iomem *dst, struct iov_iter *src, size_t count) in copy_from_iter_toio()
/linux-6.6.21/fs/smb/client/
Dcifsfs.h97 extern ssize_t cifs_user_readv(struct kiocb *iocb, struct iov_iter *to);
98 extern ssize_t cifs_direct_readv(struct kiocb *iocb, struct iov_iter *to);
99 extern ssize_t cifs_strict_readv(struct kiocb *iocb, struct iov_iter *to);
100 extern ssize_t cifs_user_writev(struct kiocb *iocb, struct iov_iter *from);
101 extern ssize_t cifs_direct_writev(struct kiocb *iocb, struct iov_iter *from);
102 extern ssize_t cifs_strict_writev(struct kiocb *iocb, struct iov_iter *from);
/linux-6.6.21/block/
Dblk-map.c17 struct iov_iter iter;
21 static struct bio_map_data *bio_alloc_map_data(struct iov_iter *data, in bio_alloc_map_data()
48 static int bio_copy_from_iter(struct bio *bio, struct iov_iter *iter) in bio_copy_from_iter()
79 static int bio_copy_to_iter(struct bio *bio, struct iov_iter iter) in bio_copy_to_iter()
132 struct iov_iter *iter, gfp_t gfp_mask) in bio_copy_user_iov()
214 struct iov_iter iter2 = *iter; in bio_copy_user_iov()
272 static int bio_map_user_iov(struct request *rq, struct iov_iter *iter, in bio_map_user_iov()
562 static int blk_rq_map_user_bvec(struct request *rq, const struct iov_iter *iter) in blk_rq_map_user_bvec()
583 bio_iov_bvec_set(bio, (struct iov_iter *)iter); in blk_rq_map_user_bvec()
634 const struct iov_iter *iter, gfp_t gfp_mask) in blk_rq_map_user_iov()
[all …]
Dfops.c38 struct iov_iter *iter) in blkdev_dio_unaligned()
47 struct iov_iter *iter, unsigned int nr_pages) in __blkdev_direct_IO_simple()
162 static ssize_t __blkdev_direct_IO(struct kiocb *iocb, struct iov_iter *iter, in __blkdev_direct_IO()
302 struct iov_iter *iter, in __blkdev_direct_IO_async()
366 static ssize_t blkdev_direct_IO(struct kiocb *iocb, struct iov_iter *iter) in blkdev_direct_IO()
609 blkdev_direct_write(struct kiocb *iocb, struct iov_iter *from) in blkdev_direct_write()
632 static ssize_t blkdev_buffered_write(struct kiocb *iocb, struct iov_iter *from) in blkdev_buffered_write()
644 static ssize_t blkdev_write_iter(struct kiocb *iocb, struct iov_iter *from) in blkdev_write_iter()
693 static ssize_t blkdev_read_iter(struct kiocb *iocb, struct iov_iter *to) in blkdev_read_iter()
/linux-6.6.21/fs/ext2/
Dfile.c35 static ssize_t ext2_dax_read_iter(struct kiocb *iocb, struct iov_iter *to) in ext2_dax_read_iter()
51 static ssize_t ext2_dax_write_iter(struct kiocb *iocb, struct iov_iter *from) in ext2_dax_write_iter()
166 static ssize_t ext2_dio_read_iter(struct kiocb *iocb, struct iov_iter *to) in ext2_dio_read_iter()
212 static ssize_t ext2_dio_write_iter(struct kiocb *iocb, struct iov_iter *from) in ext2_dio_write_iter()
281 static ssize_t ext2_file_read_iter(struct kiocb *iocb, struct iov_iter *to) in ext2_file_read_iter()
293 static ssize_t ext2_file_write_iter(struct kiocb *iocb, struct iov_iter *from) in ext2_file_write_iter()
/linux-6.6.21/arch/s390/include/asm/
Dmaccess.h10 struct iov_iter;
14 size_t memcpy_real_iter(struct iov_iter *iter, unsigned long src, size_t count);
/linux-6.6.21/net/core/
Ddatagram.c404 struct iov_iter *i));
407 struct iov_iter *to, int len, bool fault_short, in __skb_datagram_iter()
409 struct iov_iter *), void *data) in __skb_datagram_iter() argument
502 struct iov_iter *to, int len, in skb_copy_and_hash_datagram_iter()
511 void *data __always_unused, struct iov_iter *i) in simple_copy_to_iter()
524 struct iov_iter *to, int len) in skb_copy_datagram_iter()
542 struct iov_iter *from, in skb_copy_datagram_from_iter()
614 struct sk_buff *skb, struct iov_iter *from, in __zerocopy_sg_from_iter()
707 int zerocopy_sg_from_iter(struct sk_buff *skb, struct iov_iter *from) in zerocopy_sg_from_iter()
729 struct iov_iter *to, int len, in skb_copy_and_csum_datagram()
/linux-6.6.21/drivers/vhost/
Dvsock.c112 struct iov_iter iov_iter; in vhost_transport_do_send_pkt() local
158 iov_iter_init(&iov_iter, ITER_DEST, &vq->iov[out], in, iov_len); in vhost_transport_do_send_pkt()
193 nbytes = copy_to_iter(hdr, sizeof(*hdr), &iov_iter); in vhost_transport_do_send_pkt()
200 nbytes = copy_to_iter(skb->data, payload_len, &iov_iter); in vhost_transport_do_send_pkt()
330 struct iov_iter iov_iter; in vhost_vsock_alloc_skb() local
348 iov_iter_init(&iov_iter, ITER_SOURCE, vq->iov, out, len); in vhost_vsock_alloc_skb()
351 nbytes = copy_from_iter(hdr, sizeof(*hdr), &iov_iter); in vhost_vsock_alloc_skb()
374 nbytes = copy_from_iter(skb->data, payload_len, &iov_iter); in vhost_vsock_alloc_skb()
874 static ssize_t vhost_vsock_chr_read_iter(struct kiocb *iocb, struct iov_iter *to) in vhost_vsock_chr_read_iter()
885 struct iov_iter *from) in vhost_vsock_chr_write_iter()
Dscsi.c82 struct iov_iter saved_iter;
234 struct iov_iter out_iter;
519 struct iov_iter *iter = &cmd->saved_iter; in vhost_scsi_copy_sgl_to_iov()
552 struct iov_iter iov_iter; in vhost_scsi_complete_cmd_work() local
577 iov_iter_init(&iov_iter, ITER_DEST, cmd->tvc_resp_iov, in vhost_scsi_complete_cmd_work()
579 ret = copy_to_iter(&v_rsp, sizeof(v_rsp), &iov_iter); in vhost_scsi_complete_cmd_work()
651 struct iov_iter *iter, in vhost_scsi_map_to_sgl()
717 vhost_scsi_calc_sgls(struct iov_iter *iter, size_t bytes, int max_sgls) in vhost_scsi_calc_sgls()
737 vhost_scsi_copy_iov_to_sgl(struct vhost_scsi_cmd *cmd, struct iov_iter *iter, in vhost_scsi_copy_iov_to_sgl()
783 vhost_scsi_map_iov_to_sgl(struct vhost_scsi_cmd *cmd, struct iov_iter *iter, in vhost_scsi_map_iov_to_sgl()
[all …]
/linux-6.6.21/fs/ext4/
Dfile.c55 static bool ext4_should_use_dio(struct kiocb *iocb, struct iov_iter *iter) in ext4_should_use_dio()
69 static ssize_t ext4_dio_read_iter(struct kiocb *iocb, struct iov_iter *to) in ext4_dio_read_iter()
102 static ssize_t ext4_dax_read_iter(struct kiocb *iocb, struct iov_iter *to) in ext4_dax_read_iter()
130 static ssize_t ext4_file_read_iter(struct kiocb *iocb, struct iov_iter *to) in ext4_file_read_iter()
196 ext4_unaligned_io(struct inode *inode, struct iov_iter *from, loff_t pos) in ext4_unaligned_io()
244 struct iov_iter *from) in ext4_generic_write_checks()
271 static ssize_t ext4_write_checks(struct kiocb *iocb, struct iov_iter *from) in ext4_write_checks()
286 struct iov_iter *from) in ext4_buffered_write_iter()
421 static ssize_t ext4_dio_write_checks(struct kiocb *iocb, struct iov_iter *from, in ext4_dio_write_checks()
498 static ssize_t ext4_dio_write_iter(struct kiocb *iocb, struct iov_iter *from) in ext4_dio_write_iter()
[all …]
/linux-6.6.21/fs/orangefs/
Dorangefs-bufmap.h29 int orangefs_bufmap_copy_from_iovec(struct iov_iter *iter,
33 int orangefs_bufmap_copy_to_iovec(struct iov_iter *iter,
/linux-6.6.21/include/net/9p/
Dtransport.h55 struct iov_iter *uidata, struct iov_iter *uodata,
Dclient.h178 struct iov_iter;
206 int p9_client_read(struct p9_fid *fid, u64 offset, struct iov_iter *to, int *err);
207 int p9_client_read_once(struct p9_fid *fid, u64 offset, struct iov_iter *to,
209 int p9_client_write(struct p9_fid *fid, u64 offset, struct iov_iter *from, int *err);
/linux-6.6.21/mm/
Dprocess_vm_access.c30 struct iov_iter *iter, in process_vm_rw_pages()
72 struct iov_iter *iter, in process_vm_rw_single_vec()
150 static ssize_t process_vm_rw_core(pid_t pid, struct iov_iter *iter, in process_vm_rw_core()
264 struct iov_iter iter; in process_vm_rw()
/linux-6.6.21/include/linux/ceph/
Dmessenger.h228 struct iov_iter iter;
254 struct iov_iter iov_iter; member
395 struct iov_iter in_iter;
401 struct iov_iter out_iter;
615 struct iov_iter *iter);
/linux-6.6.21/fs/netfs/
Diterator.c36 ssize_t netfs_extract_user_iter(struct iov_iter *orig, size_t orig_len, in netfs_extract_user_iter()
37 struct iov_iter *new, in netfs_extract_user_iter()

1234567891011