Home
last modified time | relevance | path

Searched refs:bio_src (Results 1 – 8 of 8) sorted by relevance

/kernel/linux/linux-5.10/block/
Dbounce.c217 static struct bio *bounce_clone_bio(struct bio *bio_src, gfp_t gfp_mask, in bounce_clone_bio() argument
246 bio = bio_alloc_bioset(gfp_mask, bio_segments(bio_src), bs); in bounce_clone_bio()
249 bio->bi_disk = bio_src->bi_disk; in bounce_clone_bio()
250 bio->bi_opf = bio_src->bi_opf; in bounce_clone_bio()
251 bio->bi_ioprio = bio_src->bi_ioprio; in bounce_clone_bio()
252 bio->bi_write_hint = bio_src->bi_write_hint; in bounce_clone_bio()
253 bio->bi_iter.bi_sector = bio_src->bi_iter.bi_sector; in bounce_clone_bio()
254 bio->bi_iter.bi_size = bio_src->bi_iter.bi_size; in bounce_clone_bio()
262 bio->bi_io_vec[bio->bi_vcnt++] = bio_src->bi_io_vec[0]; in bounce_clone_bio()
265 bio_for_each_segment(bv, bio_src, iter) in bounce_clone_bio()
[all …]
Dblk-crypto-fallback.c161 static struct bio *blk_crypto_clone_bio(struct bio *bio_src) in blk_crypto_clone_bio() argument
167 bio = bio_alloc_bioset(GFP_NOIO, bio_segments(bio_src), NULL); in blk_crypto_clone_bio()
170 bio->bi_disk = bio_src->bi_disk; in blk_crypto_clone_bio()
171 bio->bi_opf = bio_src->bi_opf; in blk_crypto_clone_bio()
172 bio->bi_ioprio = bio_src->bi_ioprio; in blk_crypto_clone_bio()
173 bio->bi_write_hint = bio_src->bi_write_hint; in blk_crypto_clone_bio()
174 bio->bi_iter.bi_sector = bio_src->bi_iter.bi_sector; in blk_crypto_clone_bio()
175 bio->bi_iter.bi_size = bio_src->bi_iter.bi_size; in blk_crypto_clone_bio()
177 bio_for_each_segment(bv, bio_src, iter) in blk_crypto_clone_bio()
180 bio_clone_blkg_association(bio, bio_src); in blk_crypto_clone_bio()
Dbio.c675 void __bio_clone_fast(struct bio *bio, struct bio *bio_src) in __bio_clone_fast() argument
683 bio->bi_disk = bio_src->bi_disk; in __bio_clone_fast()
684 bio->bi_partno = bio_src->bi_partno; in __bio_clone_fast()
686 if (bio_flagged(bio_src, BIO_THROTTLED)) in __bio_clone_fast()
688 bio->bi_opf = bio_src->bi_opf; in __bio_clone_fast()
689 bio->bi_ioprio = bio_src->bi_ioprio; in __bio_clone_fast()
690 bio->bi_write_hint = bio_src->bi_write_hint; in __bio_clone_fast()
691 bio->bi_iter = bio_src->bi_iter; in __bio_clone_fast()
692 bio->bi_io_vec = bio_src->bi_io_vec; in __bio_clone_fast()
694 bio_clone_blkg_association(bio, bio_src); in __bio_clone_fast()
Dbio-integrity.c414 int bio_integrity_clone(struct bio *bio, struct bio *bio_src, in bio_integrity_clone() argument
417 struct bio_integrity_payload *bip_src = bio_integrity(bio_src); in bio_integrity_clone()
Dblk-core.c1601 struct bio *bio, *bio_src; in blk_rq_prep_clone() local
1606 __rq_for_each_bio(bio_src, rq_src) { in blk_rq_prep_clone()
1607 bio = bio_clone_fast(bio_src, gfp_mask, bs); in blk_rq_prep_clone()
1611 if (bio_ctr && bio_ctr(bio, bio_src, data)) in blk_rq_prep_clone()
/kernel/linux/linux-5.10/drivers/block/drbd/
Ddrbd_req.h259 static inline void drbd_req_make_private_bio(struct drbd_request *req, struct bio *bio_src) in drbd_req_make_private_bio() argument
262 bio = bio_clone_fast(bio_src, GFP_NOIO, &drbd_io_bio_set); in drbd_req_make_private_bio()
Ddrbd_req.c24 static struct drbd_request *drbd_req_new(struct drbd_device *device, struct bio *bio_src) in drbd_req_new() argument
33 drbd_req_make_private_bio(req, bio_src); in drbd_req_new()
34 req->rq_state = (bio_data_dir(bio_src) == WRITE ? RQ_WRITE : 0) in drbd_req_new()
35 | (bio_op(bio_src) == REQ_OP_WRITE_SAME ? RQ_WSAME : 0) in drbd_req_new()
36 | (bio_op(bio_src) == REQ_OP_WRITE_ZEROES ? RQ_ZEROES : 0) in drbd_req_new()
37 | (bio_op(bio_src) == REQ_OP_DISCARD ? RQ_UNMAP : 0); in drbd_req_new()
39 req->master_bio = bio_src; in drbd_req_new()
43 req->i.sector = bio_src->bi_iter.bi_sector; in drbd_req_new()
44 req->i.size = bio_src->bi_iter.bi_size; in drbd_req_new()
/kernel/linux/linux-5.10/include/linux/
Dbio.h757 static inline int bio_integrity_clone(struct bio *bio, struct bio *bio_src, in bio_integrity_clone() argument