Lines Matching refs:iov_iter
38 struct iov_iter { struct
66 static inline enum iter_type iov_iter_type(const struct iov_iter *i) in iov_iter_type() argument
71 static inline void iov_iter_save_state(struct iov_iter *iter, in iov_iter_save_state()
79 static inline bool iter_is_ubuf(const struct iov_iter *i) in iter_is_ubuf()
84 static inline bool iter_is_iovec(const struct iov_iter *i) in iter_is_iovec()
89 static inline bool iov_iter_is_kvec(const struct iov_iter *i) in iov_iter_is_kvec()
94 static inline bool iov_iter_is_bvec(const struct iov_iter *i) in iov_iter_is_bvec()
99 static inline bool iov_iter_is_pipe(const struct iov_iter *i) in iov_iter_is_pipe()
104 static inline bool iov_iter_is_discard(const struct iov_iter *i) in iov_iter_is_discard()
109 static inline bool iov_iter_is_xarray(const struct iov_iter *i) in iov_iter_is_xarray()
114 static inline unsigned char iov_iter_rw(const struct iov_iter *i) in iov_iter_rw()
119 static inline bool user_backed_iter(const struct iov_iter *i) in user_backed_iter()
141 static inline struct iovec iov_iter_iovec(const struct iov_iter *iter) in iov_iter_iovec()
151 size_t bytes, struct iov_iter *i);
152 void iov_iter_advance(struct iov_iter *i, size_t bytes);
153 void iov_iter_revert(struct iov_iter *i, size_t bytes);
154 size_t fault_in_iov_iter_readable(const struct iov_iter *i, size_t bytes);
155 size_t fault_in_iov_iter_writeable(const struct iov_iter *i, size_t bytes);
156 size_t iov_iter_single_seg_count(const struct iov_iter *i);
158 struct iov_iter *i);
160 struct iov_iter *i);
162 size_t _copy_to_iter(const void *addr, size_t bytes, struct iov_iter *i);
163 size_t _copy_from_iter(void *addr, size_t bytes, struct iov_iter *i);
164 size_t _copy_from_iter_nocache(void *addr, size_t bytes, struct iov_iter *i);
167 size_t bytes, struct iov_iter *i) in copy_folio_to_iter()
173 size_t copy_to_iter(const void *addr, size_t bytes, struct iov_iter *i) in copy_to_iter()
181 size_t copy_from_iter(void *addr, size_t bytes, struct iov_iter *i) in copy_from_iter()
189 bool copy_from_iter_full(void *addr, size_t bytes, struct iov_iter *i) in copy_from_iter_full()
199 size_t copy_from_iter_nocache(void *addr, size_t bytes, struct iov_iter *i) in copy_from_iter_nocache()
207 bool copy_from_iter_full_nocache(void *addr, size_t bytes, struct iov_iter *i) in copy_from_iter_full_nocache()
223 size_t _copy_from_iter_flushcache(void *addr, size_t bytes, struct iov_iter *i);
229 size_t _copy_mc_to_iter(const void *addr, size_t bytes, struct iov_iter *i);
234 size_t iov_iter_zero(size_t bytes, struct iov_iter *);
235 bool iov_iter_is_aligned(const struct iov_iter *i, unsigned addr_mask,
237 unsigned long iov_iter_alignment(const struct iov_iter *i);
238 unsigned long iov_iter_gap_alignment(const struct iov_iter *i);
239 void iov_iter_init(struct iov_iter *i, unsigned int direction, const struct iovec *iov,
241 void iov_iter_kvec(struct iov_iter *i, unsigned int direction, const struct kvec *kvec,
243 void iov_iter_bvec(struct iov_iter *i, unsigned int direction, const struct bio_vec *bvec,
245 void iov_iter_pipe(struct iov_iter *i, unsigned int direction, struct pipe_inode_info *pipe,
247 void iov_iter_discard(struct iov_iter *i, unsigned int direction, size_t count);
248 void iov_iter_xarray(struct iov_iter *i, unsigned int direction, struct xarray *xarray,
250 ssize_t iov_iter_get_pages2(struct iov_iter *i, struct page **pages,
252 ssize_t iov_iter_get_pages_alloc2(struct iov_iter *i, struct page ***pages,
254 int iov_iter_npages(const struct iov_iter *i, int maxpages);
255 void iov_iter_restore(struct iov_iter *i, struct iov_iter_state *state);
257 const void *dup_iter(struct iov_iter *new, struct iov_iter *old, gfp_t flags);
259 static inline size_t iov_iter_count(const struct iov_iter *i) in iov_iter_count()
270 static inline void iov_iter_truncate(struct iov_iter *i, u64 count) in iov_iter_truncate()
286 static inline void iov_iter_reexpand(struct iov_iter *i, size_t count) in iov_iter_reexpand()
292 iov_iter_npages_cap(struct iov_iter *i, int maxpages, size_t max_bytes) in iov_iter_npages_cap()
313 size_t csum_and_copy_to_iter(const void *addr, size_t bytes, void *csstate, struct iov_iter *i);
314 size_t csum_and_copy_from_iter(void *addr, size_t bytes, __wsum *csum, struct iov_iter *i);
318 __wsum *csum, struct iov_iter *i) in csum_and_copy_from_iter_full()
327 struct iov_iter *i);
334 struct iov_iter *i);
337 struct iov_iter *i, bool compat);
339 struct iovec *iov, struct iov_iter *i);
341 static inline void iov_iter_ubuf(struct iov_iter *i, unsigned int direction, in iov_iter_ubuf()
345 *i = (struct iov_iter) { in iov_iter_ubuf()