Lines Matching refs:bio
56 static void dm_bio_integrity_rewind(struct bio *bio, unsigned int bytes_done) in dm_bio_integrity_rewind() argument
58 struct bio_integrity_payload *bip = bio_integrity(bio); in dm_bio_integrity_rewind()
59 struct blk_integrity *bi = blk_get_integrity(bio->bi_bdev->bd_disk); in dm_bio_integrity_rewind()
68 static inline void dm_bio_integrity_rewind(struct bio *bio, in dm_bio_integrity_rewind() argument
94 static void dm_bio_crypt_rewind(struct bio *bio, unsigned int bytes) in dm_bio_crypt_rewind() argument
96 struct bio_crypt_ctx *bc = bio->bi_crypt_context; in dm_bio_crypt_rewind()
104 static inline void dm_bio_crypt_rewind(struct bio *bio, unsigned int bytes) in dm_bio_crypt_rewind() argument
110 static inline void dm_bio_rewind_iter(const struct bio *bio, in dm_bio_rewind_iter() argument
116 if (bio_no_advance_iter(bio)) in dm_bio_rewind_iter()
119 dm_bvec_iter_rewind(bio->bi_io_vec, iter, bytes); in dm_bio_rewind_iter()
132 static void dm_bio_rewind(struct bio *bio, unsigned int bytes) in dm_bio_rewind() argument
134 if (bio_integrity(bio)) in dm_bio_rewind()
135 dm_bio_integrity_rewind(bio, bytes); in dm_bio_rewind()
137 if (bio_has_crypt_ctx(bio)) in dm_bio_rewind()
138 dm_bio_crypt_rewind(bio, bytes); in dm_bio_rewind()
140 dm_bio_rewind_iter(bio, &bio->bi_iter, bytes); in dm_bio_rewind()
145 struct bio *orig = io->orig_bio; in dm_io_rewind()
146 struct bio *new_orig = bio_alloc_clone(orig->bi_bdev, orig, in dm_io_rewind()