Home
last modified time | relevance | path

Searched refs:bc (Results 1 – 2 of 2) sorted by relevance

/block/
Dblk-crypto.c85 struct bio_crypt_ctx *bc; in bio_crypt_set_ctx() local
93 bc = mempool_alloc(bio_crypt_ctx_pool, gfp_mask); in bio_crypt_set_ctx()
95 bc->bc_key = key; in bio_crypt_set_ctx()
96 memcpy(bc->bc_dun, dun, sizeof(bc->bc_dun)); in bio_crypt_set_ctx()
98 bio->bi_crypt_context = bc; in bio_crypt_set_ctx()
139 struct bio_crypt_ctx *bc = bio->bi_crypt_context; in __bio_crypt_advance() local
141 bio_crypt_dun_increment(bc->bc_dun, in __bio_crypt_advance()
142 bytes >> bc->bc_key->data_unit_size_bits); in __bio_crypt_advance()
149 bool bio_crypt_dun_is_contiguous(const struct bio_crypt_ctx *bc, in bio_crypt_dun_is_contiguous() argument
154 unsigned int carry = bytes >> bc->bc_key->data_unit_size_bits; in bio_crypt_dun_is_contiguous()
[all …]
Dblk-crypto-fallback.c264 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()
295 blk_st = blk_ksm_get_slot_for_key(&blk_crypto_ksm, bc->bc_key, &slot); in blk_crypto_fallback_encrypt_bio()
307 memcpy(curr_dun, bc->bc_dun, sizeof(curr_dun)); in blk_crypto_fallback_encrypt_bio()
380 struct bio_crypt_ctx *bc = &f_ctx->crypt_ctx; in blk_crypto_fallback_decrypt_bio() local
389 const int data_unit_size = bc->bc_key->crypto_cfg.data_unit_size; in blk_crypto_fallback_decrypt_bio()
397 blk_st = blk_ksm_get_slot_for_key(&blk_crypto_ksm, bc->bc_key, &slot); in blk_crypto_fallback_decrypt_bio()
409 memcpy(curr_dun, bc->bc_dun, sizeof(curr_dun)); in blk_crypto_fallback_decrypt_bio()
491 struct bio_crypt_ctx *bc = bio->bi_crypt_context; in blk_crypto_fallback_bio_prep() local
[all …]