Lines Matching refs:bio

31 bool bio_crypt_rq_ctx_compatible(struct request *rq, struct bio *bio);
37 struct bio *bio) in bio_crypt_ctx_back_mergeable() argument
40 bio->bi_crypt_context); in bio_crypt_ctx_back_mergeable()
44 struct bio *bio) in bio_crypt_ctx_front_mergeable() argument
46 return bio_crypt_ctx_mergeable(bio->bi_crypt_context, in bio_crypt_ctx_front_mergeable()
47 bio->bi_iter.bi_size, req->crypt_ctx); in bio_crypt_ctx_front_mergeable()
97 struct bio *bio) in bio_crypt_rq_ctx_compatible() argument
103 struct bio *bio) in bio_crypt_ctx_front_mergeable() argument
109 struct bio *bio) in bio_crypt_ctx_back_mergeable() argument
134 void __bio_crypt_advance(struct bio *bio, unsigned int bytes);
135 static inline void bio_crypt_advance(struct bio *bio, unsigned int bytes) in bio_crypt_advance() argument
137 if (bio_has_crypt_ctx(bio)) in bio_crypt_advance()
138 __bio_crypt_advance(bio, bytes); in bio_crypt_advance()
141 void __bio_crypt_free_ctx(struct bio *bio);
142 static inline void bio_crypt_free_ctx(struct bio *bio) in bio_crypt_free_ctx() argument
144 if (bio_has_crypt_ctx(bio)) in bio_crypt_free_ctx()
145 __bio_crypt_free_ctx(bio); in bio_crypt_free_ctx()
149 struct bio *bio) in bio_crypt_do_front_merge() argument
152 if (bio_has_crypt_ctx(bio)) in bio_crypt_do_front_merge()
153 memcpy(rq->crypt_ctx->bc_dun, bio->bi_crypt_context->bc_dun, in bio_crypt_do_front_merge()
158 bool __blk_crypto_bio_prep(struct bio **bio_ptr);
159 static inline bool blk_crypto_bio_prep(struct bio **bio_ptr) in blk_crypto_bio_prep()
188 int __blk_crypto_rq_bio_prep(struct request *rq, struct bio *bio,
200 static inline int blk_crypto_rq_bio_prep(struct request *rq, struct bio *bio, in blk_crypto_rq_bio_prep() argument
203 if (bio_has_crypt_ctx(bio)) in blk_crypto_rq_bio_prep()
204 return __blk_crypto_rq_bio_prep(rq, bio, gfp_mask); in blk_crypto_rq_bio_prep()
212 bool blk_crypto_fallback_bio_prep(struct bio **bio_ptr);
225 static inline bool blk_crypto_fallback_bio_prep(struct bio **bio_ptr) in blk_crypto_fallback_bio_prep()