Searched refs:bc (Results 1 – 4 of 4) sorted by relevance
/block/ |
D | blk-crypto.c | 76 struct bio_crypt_ctx *bc = bio->bi_crypt_context; in blk_crypto_submit_bio() local 79 if (!bc || !bio_has_data(bio)) in blk_crypto_submit_bio() 89 if (bio_crypt_fallback_crypted(bc)) in blk_crypto_submit_bio() 100 if (bc->bc_ksm) { in blk_crypto_submit_bio() 102 if (q->ksm == bc->bc_ksm) in blk_crypto_submit_bio() 106 bio_crypt_ctx_release_keyslot(bc); in blk_crypto_submit_bio() 111 bc->bc_key->crypto_mode, in blk_crypto_submit_bio() 112 bc->bc_key->data_unit_size)) { in blk_crypto_submit_bio() 113 err = bio_crypt_ctx_acquire_keyslot(bc, q->ksm); in blk_crypto_submit_bio() 149 struct bio_crypt_ctx *bc = bio->bi_crypt_context; in blk_crypto_endio() local [all …]
|
D | bio-crypt-ctx.c | 124 void bio_crypt_ctx_release_keyslot(struct bio_crypt_ctx *bc) in bio_crypt_ctx_release_keyslot() argument 126 keyslot_manager_put_slot(bc->bc_ksm, bc->bc_keyslot); in bio_crypt_ctx_release_keyslot() 127 bc->bc_ksm = NULL; in bio_crypt_ctx_release_keyslot() 128 bc->bc_keyslot = -1; in bio_crypt_ctx_release_keyslot() 131 int bio_crypt_ctx_acquire_keyslot(struct bio_crypt_ctx *bc, in bio_crypt_ctx_acquire_keyslot() argument 134 int slot = keyslot_manager_get_slot_for_key(ksm, bc->bc_key); in bio_crypt_ctx_acquire_keyslot() 139 bc->bc_keyslot = slot; in bio_crypt_ctx_acquire_keyslot() 140 bc->bc_ksm = ksm; in bio_crypt_ctx_acquire_keyslot()
|
D | blk-crypto-fallback.c | 83 bool bio_crypt_fallback_crypted(const struct bio_crypt_ctx *bc) in bio_crypt_fallback_crypted() argument 85 return bc && bc->bc_ksm == blk_crypto_ksm; in bio_crypt_fallback_crypted() 283 struct bio_crypt_ctx *bc; in blk_crypto_encrypt_bio() local 292 bc = src_bio->bi_crypt_context; in blk_crypto_encrypt_bio() 293 data_unit_size = bc->bc_key->data_unit_size; in blk_crypto_encrypt_bio() 306 err = bio_crypt_ctx_acquire_keyslot(bc, blk_crypto_ksm); in blk_crypto_encrypt_bio() 317 memcpy(curr_dun, bc->bc_dun, sizeof(curr_dun)); in blk_crypto_encrypt_bio() 375 bio_crypt_ctx_release_keyslot(bc); in blk_crypto_encrypt_bio() 408 struct bio_crypt_ctx *bc = bio->bi_crypt_context; in blk_crypto_decrypt_bio() local 410 container_of(bc, struct bio_fallback_crypt_ctx, crypt_ctx); in blk_crypto_decrypt_bio() [all …]
|
D | blk-crypto-internal.h | 28 bool bio_crypt_fallback_crypted(const struct bio_crypt_ctx *bc); 32 static inline bool bio_crypt_fallback_crypted(const struct bio_crypt_ctx *bc) in bio_crypt_fallback_crypted() argument
|