Lines Matching refs:bc
264 struct bio_crypt_ctx *bc; in blk_crypto_fallback_encrypt_bio() local
281 bc = src_bio->bi_crypt_context; in blk_crypto_fallback_encrypt_bio()
282 data_unit_size = bc->bc_key->crypto_cfg.data_unit_size; in blk_crypto_fallback_encrypt_bio()
296 bc->bc_key, &slot); in blk_crypto_fallback_encrypt_bio()
308 memcpy(curr_dun, bc->bc_dun, sizeof(curr_dun)); in blk_crypto_fallback_encrypt_bio()
381 struct bio_crypt_ctx *bc = &f_ctx->crypt_ctx; in blk_crypto_fallback_decrypt_bio() local
390 const int data_unit_size = bc->bc_key->crypto_cfg.data_unit_size; in blk_crypto_fallback_decrypt_bio()
399 bc->bc_key, &slot); in blk_crypto_fallback_decrypt_bio()
411 memcpy(curr_dun, bc->bc_dun, sizeof(curr_dun)); in blk_crypto_fallback_decrypt_bio()
493 struct bio_crypt_ctx *bc = bio->bi_crypt_context; in blk_crypto_fallback_bio_prep() local
496 if (WARN_ON_ONCE(!tfms_inited[bc->bc_key->crypto_cfg.crypto_mode])) { in blk_crypto_fallback_bio_prep()
503 &bc->bc_key->crypto_cfg)) { in blk_crypto_fallback_bio_prep()
516 f_ctx->crypt_ctx = *bc; in blk_crypto_fallback_bio_prep()