Lines Matching refs:bio
41 struct bio *bio_in;
42 struct bio *bio_out;
55 struct bio *base_bio;
184 static void clone_init(struct dm_crypt_io *, struct bio *);
804 struct bio *bio_out, struct bio *bio_in, in crypt_convert_init()
900 struct ablkcipher_request *req, struct bio *base_bio) in crypt_free_req()
954 static void crypt_free_buffer_pages(struct crypt_config *cc, struct bio *clone);
973 static struct bio *crypt_alloc_buffer(struct dm_crypt_io *io, unsigned size) in crypt_alloc_buffer()
976 struct bio *clone; in crypt_alloc_buffer()
1023 static void crypt_free_buffer_pages(struct crypt_config *cc, struct bio *clone) in crypt_free_buffer_pages()
1036 struct bio *bio, sector_t sector) in crypt_io_init() argument
1039 io->base_bio = bio; in crypt_io_init()
1058 struct bio *base_bio = io->base_bio; in crypt_dec_pending()
1087 static void crypt_endio(struct bio *clone, int error) in crypt_endio()
1115 static void clone_init(struct dm_crypt_io *io, struct bio *clone) in clone_init()
1128 struct bio *clone; in kcryptd_io_read()
1169 struct bio *clone = io->ctx.bio_out; in kcryptd_io_write()
1235 struct bio *clone = io->ctx.bio_out; in kcryptd_crypt_write_io_submit()
1279 struct bio *clone; in kcryptd_crypt_write_convert()
1883 static int crypt_map(struct dm_target *ti, struct bio *bio) in crypt_map() argument
1893 if (unlikely(bio->bi_rw & (REQ_FLUSH | REQ_DISCARD))) { in crypt_map()
1894 bio->bi_bdev = cc->dev->bdev; in crypt_map()
1895 if (bio_sectors(bio)) in crypt_map()
1896 bio->bi_iter.bi_sector = cc->start + in crypt_map()
1897 dm_target_offset(ti, bio->bi_iter.bi_sector); in crypt_map()
1901 io = dm_per_bio_data(bio, cc->per_bio_data_size); in crypt_map()
1902 crypt_io_init(io, cc, bio, dm_target_offset(ti, bio->bi_iter.bi_sector)); in crypt_map()