Searched refs:crypt_ctx (Results 1 – 10 of 10) sorted by relevance
| /linux/block/ |
| H A D | blk-crypto-internal.h | 40 return bio_crypt_ctx_mergeable(req->crypt_ctx, blk_rq_bytes(req), in bio_crypt_ctx_back_mergeable() 48 bio->bi_iter.bi_size, req->crypt_ctx); in bio_crypt_ctx_front_mergeable() 54 return bio_crypt_ctx_mergeable(req->crypt_ctx, blk_rq_bytes(req), in bio_crypt_ctx_merge_rq() 55 next->crypt_ctx); in bio_crypt_ctx_merge_rq() 60 rq->crypt_ctx = NULL; in blk_crypto_rq_set_defaults() 66 return rq->crypt_ctx; in blk_crypto_rq_is_encrypted() 174 memcpy(rq->crypt_ctx->bc_dun, bio->bi_crypt_context->bc_dun, in bio_crypt_do_front_merge() 175 sizeof(rq->crypt_ctx->bc_dun)); in bio_crypt_do_front_merge()
|
| H A D | blk-crypto.c | 205 return bio_crypt_ctx_compatible(rq->crypt_ctx, bio->bi_crypt_context); in bio_crypt_rq_ctx_compatible() 225 rq->crypt_ctx->bc_key, in __blk_crypto_rq_get_keyslot() 241 mempool_free(rq->crypt_ctx, bio_crypt_ctx_pool); in __blk_crypto_free_request() 242 rq->crypt_ctx = NULL; in __blk_crypto_free_request() 284 if (!rq->crypt_ctx) { in __blk_crypto_rq_bio_prep() 285 rq->crypt_ctx = mempool_alloc(bio_crypt_ctx_pool, gfp_mask); in __blk_crypto_rq_bio_prep() 286 if (!rq->crypt_ctx) in __blk_crypto_rq_bio_prep() 289 *rq->crypt_ctx = *bio->bi_crypt_context; in __blk_crypto_rq_bio_prep()
|
| H A D | blk-crypto-fallback.c | 41 struct bio_crypt_ctx crypt_ctx; member 426 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/drivers/ufs/core/ |
| H A D | ufshcd-crypto.h | 25 lrbp->data_unit_num = rq->crypt_ctx->bc_dun[0]; in ufshcd_prepare_lrbp_crypto() 43 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() 61 if (!(scsi_cmd_to_rq(cmd)->crypt_ctx)) in ufshcd_crypto_clear_prdt()
|
| /linux/drivers/mmc/core/ |
| H A D | crypto.c | 35 if (!req->crypt_ctx) in mmc_crypto_prepare_req() 38 mrq->crypto_ctx = req->crypt_ctx; in mmc_crypto_prepare_req()
|
| /linux/arch/x86/crypto/ |
| H A D | aesni-intel_glue.c | 50 struct crypto_aes_ctx crypt_ctx AESNI_ALIGN_ATTR; 370 err = aes_set_key_common(&ctx->crypt_ctx, key, keylen); in xts_setkey_aesni() 418 (*crypt_func)(&ctx->crypt_ctx, in xts_crypt_slowpath() 443 (*crypt_func)(&ctx->crypt_ctx, walk.src.virt.addr, walk.dst.virt.addr, in xts_crypt_slowpath() 474 (*crypt_func)(&ctx->crypt_ctx, sg_virt(req->src), in xts_crypt()
|
| /linux/drivers/ufs/host/ |
| H A D | ufs-exynos.c | 1392 const struct bio_crypt_ctx *crypt_ctx, in exynos_ufs_fmp_fill_prdt() argument 1396 const u8 *enckey = crypt_ctx->bc_key->bytes; in exynos_ufs_fmp_fill_prdt() 1398 u64 dun_lo = crypt_ctx->bc_dun[0]; in exynos_ufs_fmp_fill_prdt() 1399 u64 dun_hi = crypt_ctx->bc_dun[1]; in exynos_ufs_fmp_fill_prdt()
|
| /linux/drivers/scsi/ |
| H A D | scsi_error.c | 1135 ses->rq_crypt_ctx = rq->crypt_ctx; in scsi_eh_prep_cmnd() 1138 rq->crypt_ctx = NULL; in scsi_eh_prep_cmnd() 1177 rq->crypt_ctx = ses->rq_crypt_ctx; in scsi_eh_restore_cmnd()
|
| /linux/include/linux/ |
| H A D | blk-mq.h | 166 struct bio_crypt_ctx *crypt_ctx; member
|
| /linux/include/ufs/ |
| H A D | ufshcd.h | 371 const struct bio_crypt_ctx *crypt_ctx,
|