Lines Matching refs:blk_key
161 void inline_crypt_bio(struct blk_crypto_key *blk_key, struct bio *bio) in inline_crypt_bio() argument
168 bio_crypt_set_ctx(bio, blk_key, iv.dun, GFP_NOIO); in inline_crypt_bio()
173 struct blk_crypto_key *blk_key = NULL; in inline_crypto_init() local
177 blk_key = kzalloc(sizeof(struct blk_crypto_key), GFP_KERNEL); in inline_crypto_init()
178 if (!blk_key) { in inline_crypto_init()
182 ret = blk_crypto_init_key(blk_key, key, HP_CIPHER_MODE, dun_bytes, PAGE_SIZE); in inline_crypto_init()
188 return blk_key; in inline_crypto_init()
190 if (blk_key) in inline_crypto_init()
191 kfree_sensitive(blk_key); in inline_crypto_init()
196 void inline_crypt_bio(struct blk_crypto_key *blk_key, struct bio *bio) {} in inline_crypt_bio() argument
214 dev->blk_key = inline_crypto_init(key); in crypto_init()
215 ret = dev->blk_key; in crypto_init()
230 if (dev->blk_key) { in crypto_deinit()
231 kfree_sensitive(dev->blk_key); in crypto_deinit()
232 dev->blk_key = NULL; in crypto_deinit()