Lines Matching refs:bio
82 void bio_crypt_free_ctx(struct bio *bio);
84 static inline bool bio_has_crypt_ctx(struct bio *bio) in bio_has_crypt_ctx() argument
86 return bio->bi_crypt_context; in bio_has_crypt_ctx()
89 void bio_crypt_clone(struct bio *dst, struct bio *src, gfp_t gfp_mask);
91 static inline void bio_crypt_set_ctx(struct bio *bio, in bio_crypt_set_ctx() argument
103 bio->bi_crypt_context = bc; in bio_crypt_set_ctx()
144 static inline void bio_crypt_advance(struct bio *bio, unsigned int bytes) in bio_crypt_advance() argument
146 struct bio_crypt_ctx *bc = bio->bi_crypt_context; in bio_crypt_advance()
155 bool bio_crypt_ctx_compatible(struct bio *b_1, struct bio *b_2);
157 bool bio_crypt_ctx_mergeable(struct bio *b_1, unsigned int b1_bytes,
158 struct bio *b_2);
166 static inline bool bio_has_crypt_ctx(struct bio *bio) in bio_has_crypt_ctx() argument
171 static inline void bio_crypt_clone(struct bio *dst, struct bio *src, in bio_crypt_clone()
174 static inline void bio_crypt_free_ctx(struct bio *bio) { } in bio_crypt_free_ctx() argument
176 static inline void bio_crypt_advance(struct bio *bio, unsigned int bytes) { } in bio_crypt_advance() argument
178 static inline bool bio_crypt_ctx_compatible(struct bio *b_1, struct bio *b_2) in bio_crypt_ctx_compatible()
183 static inline bool bio_crypt_ctx_mergeable(struct bio *b_1, in bio_crypt_ctx_mergeable()
185 struct bio *b_2) in bio_crypt_ctx_mergeable()
193 static inline void bio_set_skip_dm_default_key(struct bio *bio) in bio_set_skip_dm_default_key() argument
195 bio->bi_skip_dm_default_key = true; in bio_set_skip_dm_default_key()
198 static inline bool bio_should_skip_dm_default_key(const struct bio *bio) in bio_should_skip_dm_default_key() argument
200 return bio->bi_skip_dm_default_key; in bio_should_skip_dm_default_key()
203 static inline void bio_clone_skip_dm_default_key(struct bio *dst, in bio_clone_skip_dm_default_key()
204 const struct bio *src) in bio_clone_skip_dm_default_key()
209 static inline void bio_set_skip_dm_default_key(struct bio *bio) in bio_set_skip_dm_default_key() argument
213 static inline bool bio_should_skip_dm_default_key(const struct bio *bio) in bio_should_skip_dm_default_key() argument
218 static inline void bio_clone_skip_dm_default_key(struct bio *dst, in bio_clone_skip_dm_default_key()
219 const struct bio *src) in bio_clone_skip_dm_default_key()