Lines Matching refs:iter
2472 wdata2->iter = wdata->iter;
2474 iov_iter_advance(&wdata2->iter, fpos - wdata->offset);
2475 iov_iter_truncate(&wdata2->iter, wdata2->bytes);
2477 if (iov_iter_is_xarray(&wdata2->iter))
2512 if (iov_iter_is_xarray(&wdata->iter))
2826 iov_iter_xarray(&wdata->iter, ITER_SOURCE, &mapping->i_pages,
3366 static size_t cifs_limit_bvec_subset(const struct iov_iter *iter, size_t max_size,
3369 const struct bio_vec *bvecs = iter->bvec;
3370 unsigned int nbv = iter->nr_segs, ix = 0, nsegs = 0;
3371 size_t len, span = 0, n = iter->count;
3372 size_t skip = iter->iov_offset;
3374 if (WARN_ON(!iov_iter_is_bvec(iter)) || n == 0)
3481 wdata->iter = *from;
3485 iov_iter_truncate(&wdata->iter, cur_len);
3556 struct iov_iter tmp_from = ctx->iter;
3641 &ctx->iter, 0);
3648 ctx->bv = (void *)ctx->iter.bvec;
3658 ctx->bv = (void *)dup_iter(&ctx->iter, from, GFP_KERNEL);
3669 ctx->iter = *from;
3672 ctx->len = iov_iter_count(&ctx->iter);
3677 rc = cifs_write_from_iter(iocb->ki_pos, ctx->len, &ctx->iter,
3988 cur_len = cifs_limit_bvec_subset(&ctx->iter, max_len,
3990 cifs_dbg(FYI, "read-to-iter len=%zx/%zx nsegs=%u/%lu/%u\n",
3991 cur_len, max_len, nsegs, ctx->iter.nr_segs, max_segs);
4014 rdata->iter = ctx->iter;
4015 iov_iter_truncate(&rdata->iter, cur_len);
4035 iov_iter_advance(&ctx->iter, cur_len);
4173 &ctx->iter, 0);
4180 ctx->bv = (void *)ctx->iter.bvec;
4191 ctx->bv = (void *)dup_iter(&ctx->iter, to, GFP_KERNEL);
4202 ctx->iter = *to;
4493 if (iov_iter_count(&rdata->iter) > 0)
4494 iov_iter_zero(iov_iter_count(&rdata->iter), &rdata->iter);
4650 iov_iter_xarray(&rdata->iter, ITER_DEST, &rdata->mapping->i_pages,
5011 cifs_direct_io(struct kiocb *iocb, struct iov_iter *iter)