Home
last modified time | relevance | path

Searched refs:bi_crypt_context (Results 1 – 7 of 7) sorted by relevance

/Linux-v5.10/block/
Dblk-crypto.c97 bio->bi_crypt_context = bc; in bio_crypt_set_ctx()
102 mempool_free(bio->bi_crypt_context, bio_crypt_ctx_pool); in __bio_crypt_free_ctx()
103 bio->bi_crypt_context = NULL; in __bio_crypt_free_ctx()
108 dst->bi_crypt_context = mempool_alloc(bio_crypt_ctx_pool, gfp_mask); in __bio_crypt_clone()
109 if (!dst->bi_crypt_context) in __bio_crypt_clone()
111 *dst->bi_crypt_context = *src->bi_crypt_context; in __bio_crypt_clone()
137 struct bio_crypt_ctx *bc = bio->bi_crypt_context; in __bio_crypt_advance()
186 return bio_crypt_ctx_compatible(rq->crypt_ctx, bio->bi_crypt_context); in bio_crypt_rq_ctx_compatible()
207 bio->bi_crypt_context->bc_key->crypto_cfg.data_unit_size; in bio_crypt_check_alignment()
266 const struct blk_crypto_key *bc_key = bio->bi_crypt_context->bc_key; in __blk_crypto_bio_prep()
[all …]
Dblk-crypto-internal.h35 bio->bi_crypt_context); in bio_crypt_ctx_back_mergeable()
41 return bio_crypt_ctx_mergeable(bio->bi_crypt_context, in bio_crypt_ctx_front_mergeable()
117 memcpy(rq->crypt_ctx->bc_dun, bio->bi_crypt_context->bc_dun, in bio_crypt_do_front_merge()
Dblk-crypto-fallback.c279 bc = src_bio->bi_crypt_context; in blk_crypto_fallback_encrypt_bio()
489 struct bio_crypt_ctx *bc = bio->bi_crypt_context; in blk_crypto_fallback_bio_prep()
/Linux-v5.10/Documentation/block/
Dinline-encryption.rst87 We add a pointer to a ``bi_crypt_context`` and ``keyslot`` to
90 ``bi_crypt_context`` has been programmed in the KSM of the ``request_queue``
107 ``bio_crypto_fallback_decrypt_bio``. The bio's ``bi_crypt_context`` is also
128 ``bi_crypt_context``. bio_crypt_do_front_merge is called whenever a subsequent
130 … matches the newly merged bio's ``bi_crypt_context``. In particular, the request keeps a copy of t…
137 ``bi_crypt_context`` of the request into the clone's request_queue's keyslot
147 ``bi_crypt_context``).
/Linux-v5.10/include/linux/
Dblk-crypto.h81 return bio->bi_crypt_context; in bio_has_crypt_ctx()
Dblk_types.h237 struct bio_crypt_ctx *bi_crypt_context; member
/Linux-v5.10/fs/crypto/
Dinline_crypt.c323 const struct bio_crypt_ctx *bc = bio->bi_crypt_context; in fscrypt_mergeable_bio()
361 return !bio->bi_crypt_context; in fscrypt_mergeable_bio_bh()