Lines Matching refs:iter
13 struct bvec_iter *iter, in dm_bvec_iter_rewind() argument
18 iter->bi_size += bytes; in dm_bvec_iter_rewind()
19 if (bytes <= iter->bi_bvec_done) { in dm_bvec_iter_rewind()
20 iter->bi_bvec_done -= bytes; in dm_bvec_iter_rewind()
24 bytes -= iter->bi_bvec_done; in dm_bvec_iter_rewind()
25 idx = iter->bi_idx - 1; in dm_bvec_iter_rewind()
34 iter->bi_size -= bytes; in dm_bvec_iter_rewind()
35 iter->bi_bvec_done = 0; in dm_bvec_iter_rewind()
36 iter->bi_idx = 0; in dm_bvec_iter_rewind()
40 iter->bi_idx = idx; in dm_bvec_iter_rewind()
41 iter->bi_bvec_done = bv[idx].bv_len - bytes; in dm_bvec_iter_rewind()
113 struct bvec_iter *iter, unsigned int bytes) in dm_bio_rewind_iter() argument
115 iter->bi_sector -= bytes >> 9; in dm_bio_rewind_iter()
119 iter->bi_size += bytes; in dm_bio_rewind_iter()
121 dm_bvec_iter_rewind(bio->bi_io_vec, iter, bytes); in dm_bio_rewind_iter()