Searched refs:bc (Results 1 – 2 of 2) sorted by relevance
/block/ |
D | blk-crypto.c | 104 struct bio_crypt_ctx *bc; in bio_crypt_set_ctx() local 112 bc = mempool_alloc(bio_crypt_ctx_pool, gfp_mask); in bio_crypt_set_ctx() 114 bc->bc_key = key; in bio_crypt_set_ctx() 115 memcpy(bc->bc_dun, dun, sizeof(bc->bc_dun)); in bio_crypt_set_ctx() 117 bio->bi_crypt_context = bc; in bio_crypt_set_ctx() 158 struct bio_crypt_ctx *bc = bio->bi_crypt_context; in __bio_crypt_advance() local 160 bio_crypt_dun_increment(bc->bc_dun, in __bio_crypt_advance() 161 bytes >> bc->bc_key->data_unit_size_bits); in __bio_crypt_advance() 168 bool bio_crypt_dun_is_contiguous(const struct bio_crypt_ctx *bc, in bio_crypt_dun_is_contiguous() argument 173 unsigned int carry = bytes >> bc->bc_key->data_unit_size_bits; in bio_crypt_dun_is_contiguous() [all …]
|
D | blk-crypto-fallback.c | 265 struct bio_crypt_ctx *bc; in blk_crypto_fallback_encrypt_bio() local 282 bc = src_bio->bi_crypt_context; in blk_crypto_fallback_encrypt_bio() 283 data_unit_size = bc->bc_key->crypto_cfg.data_unit_size; in blk_crypto_fallback_encrypt_bio() 297 bc->bc_key, &slot); in blk_crypto_fallback_encrypt_bio() 309 memcpy(curr_dun, bc->bc_dun, sizeof(curr_dun)); in blk_crypto_fallback_encrypt_bio() 382 struct bio_crypt_ctx *bc = &f_ctx->crypt_ctx; in blk_crypto_fallback_decrypt_bio() local 391 const int data_unit_size = bc->bc_key->crypto_cfg.data_unit_size; in blk_crypto_fallback_decrypt_bio() 400 bc->bc_key, &slot); in blk_crypto_fallback_decrypt_bio() 412 memcpy(curr_dun, bc->bc_dun, sizeof(curr_dun)); in blk_crypto_fallback_decrypt_bio() 494 struct bio_crypt_ctx *bc = bio->bi_crypt_context; in blk_crypto_fallback_bio_prep() local [all …]
|