Lines Matching refs:bc
244 struct bio_crypt_ctx *bc = src_bio->bi_crypt_context; in __blk_crypto_fallback_encrypt_bio() local
245 int data_unit_size = bc->bc_key->crypto_cfg.data_unit_size; in __blk_crypto_fallback_encrypt_bio()
259 memcpy(curr_dun, bc->bc_dun, sizeof(curr_dun)); in __blk_crypto_fallback_encrypt_bio()
357 struct bio_crypt_ctx *bc = src_bio->bi_crypt_context; in blk_crypto_fallback_encrypt_bio() local
362 bc->bc_key, &slot); in blk_crypto_fallback_encrypt_bio()
374 struct bio_crypt_ctx *bc, struct bvec_iter iter, in __blk_crypto_fallback_decrypt_bio() argument
382 const int data_unit_size = bc->bc_key->crypto_cfg.data_unit_size; in __blk_crypto_fallback_decrypt_bio()
389 memcpy(curr_dun, bc->bc_dun, sizeof(curr_dun)); in __blk_crypto_fallback_decrypt_bio()
426 struct bio_crypt_ctx *bc = &f_ctx->crypt_ctx; in blk_crypto_fallback_decrypt_bio() local
431 bc->bc_key, &slot); in blk_crypto_fallback_decrypt_bio()
433 status = __blk_crypto_fallback_decrypt_bio(bio, bc, in blk_crypto_fallback_decrypt_bio()
491 struct bio_crypt_ctx *bc = bio->bi_crypt_context; in blk_crypto_fallback_bio_prep() local
494 if (WARN_ON_ONCE(!tfms_inited[bc->bc_key->crypto_cfg.crypto_mode])) { in blk_crypto_fallback_bio_prep()
501 &bc->bc_key->crypto_cfg)) { in blk_crypto_fallback_bio_prep()
517 f_ctx->crypt_ctx = *bc; in blk_crypto_fallback_bio_prep()