Home
last modified time | relevance | path

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

/drivers/crypto/caam/
Dqi.c118 ret = qman_enqueue(req->drv_ctx->req_fq, &fd); in caam_qi_enqueue()
120 refcount_inc(&req->drv_ctx->refcnt); in caam_qi_enqueue()
152 refcount_dec(&drv_req->drv_ctx->refcnt); in caam_fq_ern_cb()
159 dma_unmap_single(drv_req->drv_ctx->qidev, qm_fd_addr(fd), in caam_fq_ern_cb()
286 static int empty_caam_fq(struct qman_fq *fq, struct caam_drv_ctx *drv_ctx) in empty_caam_fq() argument
306 if (refcount_read(&drv_ctx->refcnt) == 1) in empty_caam_fq()
313 dev_warn_once(drv_ctx->qidev, "%d frames from FQID %u still pending in CAAM\n", in empty_caam_fq()
314 refcount_read(&drv_ctx->refcnt), fq->fqid); in empty_caam_fq()
319 int caam_drv_ctx_update(struct caam_drv_ctx *drv_ctx, u32 *sh_desc) in caam_drv_ctx_update() argument
324 struct device *qidev = drv_ctx->qidev; in caam_drv_ctx_update()
[all …]
Dcaamalg_qi.c71 struct caam_drv_ctx *drv_ctx[NUM_OP]; member
258 if (ctx->drv_ctx[ENCRYPT]) { in aead_setkey()
259 ret = caam_drv_ctx_update(ctx->drv_ctx[ENCRYPT], in aead_setkey()
267 if (ctx->drv_ctx[DECRYPT]) { in aead_setkey()
268 ret = caam_drv_ctx_update(ctx->drv_ctx[DECRYPT], in aead_setkey()
382 if (ctx->drv_ctx[ENCRYPT]) { in gcm_setkey()
383 ret = caam_drv_ctx_update(ctx->drv_ctx[ENCRYPT], in gcm_setkey()
391 if (ctx->drv_ctx[DECRYPT]) { in gcm_setkey()
392 ret = caam_drv_ctx_update(ctx->drv_ctx[DECRYPT], in gcm_setkey()
490 if (ctx->drv_ctx[ENCRYPT]) { in rfc4106_setkey()
[all …]
Dqi.h88 struct caam_drv_ctx *drv_ctx; member
131 bool caam_drv_ctx_busy(struct caam_drv_ctx *drv_ctx);
143 int caam_drv_ctx_update(struct caam_drv_ctx *drv_ctx, u32 *sh_desc);
149 void caam_drv_ctx_rel(struct caam_drv_ctx *drv_ctx);
/drivers/crypto/xilinx/
Dzynqmp-aes-gcm.c283 struct zynqmp_aead_drv_ctx *drv_ctx; in zynqmp_aes_aead_encrypt() local
289 drv_ctx = container_of(alg, struct zynqmp_aead_drv_ctx, alg.aead); in zynqmp_aes_aead_encrypt()
291 return crypto_transfer_aead_request_to_engine(drv_ctx->engine, req); in zynqmp_aes_aead_encrypt()
296 struct zynqmp_aead_drv_ctx *drv_ctx; in zynqmp_aes_aead_decrypt() local
302 drv_ctx = container_of(alg, struct zynqmp_aead_drv_ctx, alg.aead); in zynqmp_aes_aead_decrypt()
304 return crypto_transfer_aead_request_to_engine(drv_ctx->engine, req); in zynqmp_aes_aead_decrypt()
312 struct zynqmp_aead_drv_ctx *drv_ctx; in zynqmp_aes_aead_init() local
315 drv_ctx = container_of(alg, struct zynqmp_aead_drv_ctx, alg.aead); in zynqmp_aes_aead_init()
316 tfm_ctx->dev = drv_ctx->dev; in zynqmp_aes_aead_init()
322 tfm_ctx->fbk_cipher = crypto_alloc_aead(drv_ctx->alg.aead.base.cra_name, in zynqmp_aes_aead_init()
[all …]