Home
last modified time | relevance | path

Searched refs:drv_ctx (Results 1 – 5 of 5) sorted by relevance

/openbmc/linux/drivers/crypto/caam/
H A Dqi.c343 new_fq = create_caam_req_fq(drv_ctx->qidev, drv_ctx->rsp_fq, in caam_drv_ctx_update()
419 drv_ctx = kzalloc(sizeof(*drv_ctx), GFP_ATOMIC); in caam_drv_ctx_init()
420 if (!drv_ctx) in caam_drv_ctx_init()
431 size = sizeof(drv_ctx->prehdr) + sizeof(drv_ctx->sh_desc); in caam_drv_ctx_init()
436 kfree(drv_ctx); in caam_drv_ctx_init()
455 drv_ctx->rsp_fq = per_cpu(pcpu_qipriv.rsp_fq, drv_ctx->cpu); in caam_drv_ctx_init()
471 return drv_ctx; in caam_drv_ctx_init()
507 if (kill_fq(drv_ctx->qidev, drv_ctx->req_fq)) in caam_drv_ctx_rel()
510 dma_unmap_single(drv_ctx->qidev, drv_ctx->context_a, in caam_drv_ctx_rel()
511 sizeof(drv_ctx->sh_desc) + sizeof(drv_ctx->prehdr), in caam_drv_ctx_rel()
[all …]
H A Dqi.h92 struct caam_drv_ctx *drv_ctx; member
135 bool caam_drv_ctx_busy(struct caam_drv_ctx *drv_ctx);
147 int caam_drv_ctx_update(struct caam_drv_ctx *drv_ctx, u32 *sh_desc);
153 void caam_drv_ctx_rel(struct caam_drv_ctx *drv_ctx);
H A Dcaamalg_qi.c842 struct caam_drv_ctx *drv_ctx = ctx->drv_ctx[type]; in get_drv_ctx() local
845 if (unlikely(!drv_ctx)) { in get_drv_ctx()
849 drv_ctx = ctx->drv_ctx[type]; in get_drv_ctx()
850 if (!drv_ctx) { in get_drv_ctx()
860 if (!IS_ERR(drv_ctx)) in get_drv_ctx()
863 ctx->drv_ctx[type] = drv_ctx; in get_drv_ctx()
869 return drv_ctx; in get_drv_ctx()
963 if (IS_ERR(drv_ctx)) in aead_edesc_alloc()
1097 edesc->drv_req.drv_ctx = drv_ctx; in aead_edesc_alloc()
1273 if (IS_ERR(drv_ctx)) in skcipher_edesc_alloc()
[all …]
/openbmc/linux/drivers/crypto/xilinx/
H A Dzynqmp-aes-gcm.c286 struct zynqmp_aead_drv_ctx *drv_ctx; in zynqmp_aes_aead_encrypt() local
292 drv_ctx = container_of(alg, struct zynqmp_aead_drv_ctx, alg.aead.base); in zynqmp_aes_aead_encrypt()
294 return crypto_transfer_aead_request_to_engine(drv_ctx->engine, req); in zynqmp_aes_aead_encrypt()
299 struct zynqmp_aead_drv_ctx *drv_ctx; in zynqmp_aes_aead_decrypt() local
305 drv_ctx = container_of(alg, struct zynqmp_aead_drv_ctx, alg.aead.base); in zynqmp_aes_aead_decrypt()
307 return crypto_transfer_aead_request_to_engine(drv_ctx->engine, req); in zynqmp_aes_aead_decrypt()
315 struct zynqmp_aead_drv_ctx *drv_ctx; in zynqmp_aes_aead_init() local
318 drv_ctx = container_of(alg, struct zynqmp_aead_drv_ctx, alg.aead.base); in zynqmp_aes_aead_init()
319 tfm_ctx->dev = drv_ctx->dev; in zynqmp_aes_aead_init()
321 tfm_ctx->fbk_cipher = crypto_alloc_aead(drv_ctx->alg.aead.base.base.cra_name, in zynqmp_aes_aead_init()
[all …]
H A Dzynqmp-sha.c52 struct zynqmp_sha_drv_ctx *drv_ctx; in zynqmp_sha_init_tfm() local
54 drv_ctx = container_of(alg, struct zynqmp_sha_drv_ctx, sha3_384); in zynqmp_sha_init_tfm()
55 tfm_ctx->dev = drv_ctx->dev; in zynqmp_sha_init_tfm()