Lines Matching refs:bio
41 struct bio *bio_in;
42 struct bio *bio_out;
55 struct bio *base_bio;
185 static void clone_init(struct dm_crypt_io *, struct bio *);
805 struct bio *bio_out, struct bio *bio_in, in crypt_convert_init()
906 struct ablkcipher_request *req, struct bio *base_bio) in crypt_free_req()
968 static void crypt_free_buffer_pages(struct crypt_config *cc, struct bio *clone);
987 static struct bio *crypt_alloc_buffer(struct dm_crypt_io *io, unsigned size) in crypt_alloc_buffer()
990 struct bio *clone; in crypt_alloc_buffer()
1037 static void crypt_free_buffer_pages(struct crypt_config *cc, struct bio *clone) in crypt_free_buffer_pages()
1050 struct bio *bio, sector_t sector) in crypt_io_init() argument
1053 io->base_bio = bio; in crypt_io_init()
1072 struct bio *base_bio = io->base_bio; in crypt_dec_pending()
1102 static void crypt_endio(struct bio *clone) in crypt_endio()
1129 static void clone_init(struct dm_crypt_io *io, struct bio *clone) in clone_init()
1142 struct bio *clone; in kcryptd_io_read()
1183 struct bio *clone = io->ctx.bio_out; in kcryptd_io_write()
1247 struct bio *clone = io->ctx.bio_out; in kcryptd_crypt_write_io_submit()
1291 struct bio *clone; in kcryptd_crypt_write_convert()
1905 static int crypt_map(struct dm_target *ti, struct bio *bio) in crypt_map() argument
1915 if (unlikely(bio->bi_rw & (REQ_FLUSH | REQ_DISCARD))) { in crypt_map()
1916 bio->bi_bdev = cc->dev->bdev; in crypt_map()
1917 if (bio_sectors(bio)) in crypt_map()
1918 bio->bi_iter.bi_sector = cc->start + in crypt_map()
1919 dm_target_offset(ti, bio->bi_iter.bi_sector); in crypt_map()
1923 io = dm_per_bio_data(bio, cc->per_bio_data_size); in crypt_map()
1924 crypt_io_init(io, cc, bio, dm_target_offset(ti, bio->bi_iter.bi_sector)); in crypt_map()