Lines Matching refs:bio
9 #include <linux/bio.h>
26 bool bio_crypt_rq_ctx_compatible(struct request *rq, struct bio *bio);
32 struct bio *bio)
35 bio->bi_crypt_context);
39 struct bio *bio)
41 return bio_crypt_ctx_mergeable(bio->bi_crypt_context,
42 bio->bi_iter.bi_size, req->crypt_ctx);
71 struct bio *bio)
77 struct bio *bio)
83 struct bio *bio)
108 void __bio_crypt_advance(struct bio *bio, unsigned int bytes);
109 static inline void bio_crypt_advance(struct bio *bio, unsigned int bytes)
111 if (bio_has_crypt_ctx(bio))
112 __bio_crypt_advance(bio, bytes);
115 void __bio_crypt_free_ctx(struct bio *bio);
116 static inline void bio_crypt_free_ctx(struct bio *bio)
118 if (bio_has_crypt_ctx(bio))
119 __bio_crypt_free_ctx(bio);
123 struct bio *bio)
126 if (bio_has_crypt_ctx(bio))
127 memcpy(rq->crypt_ctx->bc_dun, bio->bi_crypt_context->bc_dun,
132 bool __blk_crypto_bio_prep(struct bio **bio_ptr);
133 static inline bool blk_crypto_bio_prep(struct bio **bio_ptr)
162 int __blk_crypto_rq_bio_prep(struct request *rq, struct bio *bio,
165 * blk_crypto_rq_bio_prep - Prepare a request's crypt_ctx when its first bio
168 * @bio: The first bio being inserted into the request
174 static inline int blk_crypto_rq_bio_prep(struct request *rq, struct bio *bio,
177 if (bio_has_crypt_ctx(bio))
178 return __blk_crypto_rq_bio_prep(rq, bio, gfp_mask);
201 bool blk_crypto_fallback_bio_prep(struct bio **bio_ptr);
214 static inline bool blk_crypto_fallback_bio_prep(struct bio **bio_ptr)