Lines Matching refs:bio
26 bool bio_crypt_rq_ctx_compatible(struct request *rq, struct bio *bio);
32 struct bio *bio) in bio_crypt_ctx_back_mergeable() argument
35 bio->bi_crypt_context); in bio_crypt_ctx_back_mergeable()
39 struct bio *bio) in bio_crypt_ctx_front_mergeable() argument
41 return bio_crypt_ctx_mergeable(bio->bi_crypt_context, in bio_crypt_ctx_front_mergeable()
42 bio->bi_iter.bi_size, req->crypt_ctx); in bio_crypt_ctx_front_mergeable()
66 struct bio *bio) in bio_crypt_rq_ctx_compatible() argument
72 struct bio *bio) in bio_crypt_ctx_front_mergeable() argument
78 struct bio *bio) in bio_crypt_ctx_back_mergeable() argument
98 void __bio_crypt_advance(struct bio *bio, unsigned int bytes);
99 static inline void bio_crypt_advance(struct bio *bio, unsigned int bytes) in bio_crypt_advance() argument
101 if (bio_has_crypt_ctx(bio)) in bio_crypt_advance()
102 __bio_crypt_advance(bio, bytes); in bio_crypt_advance()
105 void __bio_crypt_free_ctx(struct bio *bio);
106 static inline void bio_crypt_free_ctx(struct bio *bio) in bio_crypt_free_ctx() argument
108 if (bio_has_crypt_ctx(bio)) in bio_crypt_free_ctx()
109 __bio_crypt_free_ctx(bio); in bio_crypt_free_ctx()
113 struct bio *bio) in bio_crypt_do_front_merge() argument
116 if (bio_has_crypt_ctx(bio)) in bio_crypt_do_front_merge()
117 memcpy(rq->crypt_ctx->bc_dun, bio->bi_crypt_context->bc_dun, in bio_crypt_do_front_merge()
122 bool __blk_crypto_bio_prep(struct bio **bio_ptr);
123 static inline bool blk_crypto_bio_prep(struct bio **bio_ptr) in blk_crypto_bio_prep()
145 int __blk_crypto_rq_bio_prep(struct request *rq, struct bio *bio,
157 static inline int blk_crypto_rq_bio_prep(struct request *rq, struct bio *bio, in blk_crypto_rq_bio_prep() argument
160 if (bio_has_crypt_ctx(bio)) in blk_crypto_rq_bio_prep()
161 return __blk_crypto_rq_bio_prep(rq, bio, gfp_mask); in blk_crypto_rq_bio_prep()
184 bool blk_crypto_fallback_bio_prep(struct bio **bio_ptr);
197 static inline bool blk_crypto_fallback_bio_prep(struct bio **bio_ptr) in blk_crypto_fallback_bio_prep()