Lines Matching refs:bio
9 #include <linux/bio.h>
31 bool bio_crypt_rq_ctx_compatible(struct request *rq, struct bio *bio);
37 struct bio *bio)
40 bio->bi_crypt_context);
44 struct bio *bio)
46 return bio_crypt_ctx_mergeable(bio->bi_crypt_context,
47 bio->bi_iter.bi_size, req->crypt_ctx);
97 struct bio *bio)
103 struct bio *bio)
109 struct bio *bio)
134 void __bio_crypt_advance(struct bio *bio, unsigned int bytes);
135 static inline void bio_crypt_advance(struct bio *bio, unsigned int bytes)
137 if (bio_has_crypt_ctx(bio))
138 __bio_crypt_advance(bio, bytes);
141 void __bio_crypt_free_ctx(struct bio *bio);
142 static inline void bio_crypt_free_ctx(struct bio *bio)
144 if (bio_has_crypt_ctx(bio))
145 __bio_crypt_free_ctx(bio);
149 struct bio *bio)
152 if (bio_has_crypt_ctx(bio))
153 memcpy(rq->crypt_ctx->bc_dun, bio->bi_crypt_context->bc_dun,
158 bool __blk_crypto_bio_prep(struct bio **bio_ptr);
159 static inline bool blk_crypto_bio_prep(struct bio **bio_ptr)
188 int __blk_crypto_rq_bio_prep(struct request *rq, struct bio *bio,
191 * blk_crypto_rq_bio_prep - Prepare a request's crypt_ctx when its first bio
194 * @bio: The first bio being inserted into the request
200 static inline int blk_crypto_rq_bio_prep(struct request *rq, struct bio *bio,
203 if (bio_has_crypt_ctx(bio))
204 return __blk_crypto_rq_bio_prep(rq, bio, gfp_mask);
212 bool blk_crypto_fallback_bio_prep(struct bio **bio_ptr);
225 static inline bool blk_crypto_fallback_bio_prep(struct bio **bio_ptr)