Home
last modified time | relevance | path

Searched refs:crypt_ctx (Results 1 – 9 of 9) sorted by relevance

/linux-6.12.1/block/
Dblk-crypto-internal.h39 return bio_crypt_ctx_mergeable(req->crypt_ctx, blk_rq_bytes(req), in bio_crypt_ctx_back_mergeable()
47 bio->bi_iter.bi_size, req->crypt_ctx); in bio_crypt_ctx_front_mergeable()
53 return bio_crypt_ctx_mergeable(req->crypt_ctx, blk_rq_bytes(req), in bio_crypt_ctx_merge_rq()
54 next->crypt_ctx); in bio_crypt_ctx_merge_rq()
59 rq->crypt_ctx = NULL; in blk_crypto_rq_set_defaults()
65 return rq->crypt_ctx; in blk_crypto_rq_is_encrypted()
153 memcpy(rq->crypt_ctx->bc_dun, bio->bi_crypt_context->bc_dun, in bio_crypt_do_front_merge()
154 sizeof(rq->crypt_ctx->bc_dun)); in bio_crypt_do_front_merge()
Dblk-crypto.c195 return bio_crypt_ctx_compatible(rq->crypt_ctx, bio->bi_crypt_context); in bio_crypt_rq_ctx_compatible()
231 rq->crypt_ctx->bc_key, in __blk_crypto_rq_get_keyslot()
247 mempool_free(rq->crypt_ctx, bio_crypt_ctx_pool); in __blk_crypto_free_request()
248 rq->crypt_ctx = NULL; in __blk_crypto_free_request()
306 if (!rq->crypt_ctx) { in __blk_crypto_rq_bio_prep()
307 rq->crypt_ctx = mempool_alloc(bio_crypt_ctx_pool, gfp_mask); in __blk_crypto_rq_bio_prep()
308 if (!rq->crypt_ctx) in __blk_crypto_rq_bio_prep()
311 *rq->crypt_ctx = *bio->bi_crypt_context; in __blk_crypto_rq_bio_prep()
Dblk-crypto-fallback.c41 struct bio_crypt_ctx crypt_ctx; member
382 struct bio_crypt_ctx *bc = &f_ctx->crypt_ctx; in blk_crypto_fallback_decrypt_bio()
517 f_ctx->crypt_ctx = *bc; in blk_crypto_fallback_bio_prep()
/linux-6.12.1/drivers/ufs/core/
Dufshcd-crypto.h25 lrbp->data_unit_num = rq->crypt_ctx->bc_dun[0]; in ufshcd_prepare_lrbp_crypto()
44 const struct bio_crypt_ctx *crypt_ctx = scsi_cmd_to_rq(cmd)->crypt_ctx; in ufshcd_crypto_fill_prdt() local
46 if (crypt_ctx && hba->vops && hba->vops->fill_crypto_prdt) in ufshcd_crypto_fill_prdt()
47 return hba->vops->fill_crypto_prdt(hba, crypt_ctx, in ufshcd_crypto_fill_prdt()
59 if (!(scsi_cmd_to_rq(lrbp->cmd)->crypt_ctx)) in ufshcd_crypto_clear_prdt()
/linux-6.12.1/drivers/mmc/core/
Dcrypto.c35 if (!req->crypt_ctx) in mmc_crypto_prepare_req()
38 mrq->crypto_ctx = req->crypt_ctx; in mmc_crypto_prepare_req()
/linux-6.12.1/arch/x86/crypto/
Daesni-intel_glue.c51 struct crypto_aes_ctx crypt_ctx AESNI_ALIGN_ATTR;
497 err = aes_set_key_common(&ctx->crypt_ctx, key, keylen); in xts_setkey_aesni()
545 (*crypt_func)(&ctx->crypt_ctx, in xts_crypt_slowpath()
570 (*crypt_func)(&ctx->crypt_ctx, walk.src.virt.addr, walk.dst.virt.addr, in xts_crypt_slowpath()
609 (*crypt_func)(&ctx->crypt_ctx, src_virt, dst_virt, cryptlen, in xts_crypt()
/linux-6.12.1/drivers/ufs/host/
Dufs-exynos.c1320 const struct bio_crypt_ctx *crypt_ctx, in exynos_ufs_fmp_fill_prdt() argument
1324 const u8 *enckey = crypt_ctx->bc_key->raw; in exynos_ufs_fmp_fill_prdt()
1326 u64 dun_lo = crypt_ctx->bc_dun[0]; in exynos_ufs_fmp_fill_prdt()
1327 u64 dun_hi = crypt_ctx->bc_dun[1]; in exynos_ufs_fmp_fill_prdt()
/linux-6.12.1/include/linux/
Dblk-mq.h155 struct bio_crypt_ctx *crypt_ctx; member
/linux-6.12.1/include/ufs/
Dufshcd.h375 const struct bio_crypt_ctx *crypt_ctx,