Home
last modified time | relevance | path

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

/block/
A Dblk-crypto.c104 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()
156 struct bio_crypt_ctx *bc = bio->bi_crypt_context; in __bio_crypt_advance() local
158 bio_crypt_dun_increment(bc->bc_dun, in __bio_crypt_advance()
159 bytes >> bc->bc_key->data_unit_size_bits); in __bio_crypt_advance()
171 unsigned int carry = bytes >> bc->bc_key->data_unit_size_bits; in bio_crypt_dun_is_contiguous()
174 if (bc->bc_dun[i] + carry != next_dun[i]) in bio_crypt_dun_is_contiguous()
[all …]
A Dblk-crypto-fallback.c266 struct bio_crypt_ctx *bc; in blk_crypto_fallback_encrypt_bio() local
283 bc = src_bio->bi_crypt_context; in blk_crypto_fallback_encrypt_bio()
284 data_unit_size = bc->bc_key->crypto_cfg.data_unit_size; in blk_crypto_fallback_encrypt_bio()
298 bc->bc_key, &slot); in blk_crypto_fallback_encrypt_bio()
310 memcpy(curr_dun, bc->bc_dun, sizeof(curr_dun)); in blk_crypto_fallback_encrypt_bio()
383 struct bio_crypt_ctx *bc = &f_ctx->crypt_ctx; in blk_crypto_fallback_decrypt_bio() local
401 bc->bc_key, &slot); in blk_crypto_fallback_decrypt_bio()
413 memcpy(curr_dun, bc->bc_dun, sizeof(curr_dun)); in blk_crypto_fallback_decrypt_bio()
495 struct bio_crypt_ctx *bc = bio->bi_crypt_context; in blk_crypto_fallback_bio_prep() local
505 &bc->bc_key->crypto_cfg)) { in blk_crypto_fallback_bio_prep()
[all …]

Completed in 9 milliseconds