Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/crypto/caam/
Dqi.c126 ret = qman_enqueue(req->drv_ctx->req_fq, &fd); in caam_qi_enqueue()
163 dma_unmap_single(drv_req->drv_ctx->qidev, qm_fd_addr(fd), in caam_fq_ern_cb()
315 int caam_drv_ctx_update(struct caam_drv_ctx *drv_ctx, u32 *sh_desc) in caam_drv_ctx_update() argument
320 struct device *qidev = drv_ctx->qidev; in caam_drv_ctx_update()
329 old_fq = drv_ctx->req_fq; in caam_drv_ctx_update()
332 new_fq = create_caam_req_fq(drv_ctx->qidev, drv_ctx->rsp_fq, in caam_drv_ctx_update()
333 drv_ctx->context_a, 0); in caam_drv_ctx_update()
340 drv_ctx->req_fq = new_fq; in caam_drv_ctx_update()
348 drv_ctx->req_fq = old_fq; in caam_drv_ctx_update()
360 drv_ctx->prehdr[0] = cpu_to_caam32((1 << PREHDR_RSLS_SHIFT) | in caam_drv_ctx_update()
[all …]
Dqi.h86 struct caam_drv_ctx *drv_ctx; member
129 bool caam_drv_ctx_busy(struct caam_drv_ctx *drv_ctx);
141 int caam_drv_ctx_update(struct caam_drv_ctx *drv_ctx, u32 *sh_desc);
147 void caam_drv_ctx_rel(struct caam_drv_ctx *drv_ctx);
Dcaamalg_qi.c69 struct caam_drv_ctx *drv_ctx[NUM_OP]; member
250 if (ctx->drv_ctx[ENCRYPT]) { in aead_setkey()
251 ret = caam_drv_ctx_update(ctx->drv_ctx[ENCRYPT], in aead_setkey()
259 if (ctx->drv_ctx[DECRYPT]) { in aead_setkey()
260 ret = caam_drv_ctx_update(ctx->drv_ctx[DECRYPT], in aead_setkey()
377 if (ctx->drv_ctx[ENCRYPT]) { in gcm_setkey()
378 ret = caam_drv_ctx_update(ctx->drv_ctx[ENCRYPT], in gcm_setkey()
386 if (ctx->drv_ctx[DECRYPT]) { in gcm_setkey()
387 ret = caam_drv_ctx_update(ctx->drv_ctx[DECRYPT], in gcm_setkey()
487 if (ctx->drv_ctx[ENCRYPT]) { in rfc4106_setkey()
[all …]