Lines Matching defs:drv_ctx

76 	struct caam_drv_ctx *drv_ctx[NUM_OP];
263 if (ctx->drv_ctx[ENCRYPT]) {
264 ret = caam_drv_ctx_update(ctx->drv_ctx[ENCRYPT],
272 if (ctx->drv_ctx[DECRYPT]) {
273 ret = caam_drv_ctx_update(ctx->drv_ctx[DECRYPT],
387 if (ctx->drv_ctx[ENCRYPT]) {
388 ret = caam_drv_ctx_update(ctx->drv_ctx[ENCRYPT],
396 if (ctx->drv_ctx[DECRYPT]) {
397 ret = caam_drv_ctx_update(ctx->drv_ctx[DECRYPT],
495 if (ctx->drv_ctx[ENCRYPT]) {
496 ret = caam_drv_ctx_update(ctx->drv_ctx[ENCRYPT],
504 if (ctx->drv_ctx[DECRYPT]) {
505 ret = caam_drv_ctx_update(ctx->drv_ctx[DECRYPT],
601 if (ctx->drv_ctx[ENCRYPT]) {
602 ret = caam_drv_ctx_update(ctx->drv_ctx[ENCRYPT],
610 if (ctx->drv_ctx[DECRYPT]) {
611 ret = caam_drv_ctx_update(ctx->drv_ctx[DECRYPT],
648 if (ctx->drv_ctx[ENCRYPT]) {
649 ret = caam_drv_ctx_update(ctx->drv_ctx[ENCRYPT],
657 if (ctx->drv_ctx[DECRYPT]) {
658 ret = caam_drv_ctx_update(ctx->drv_ctx[DECRYPT],
769 if (ctx->drv_ctx[ENCRYPT]) {
770 ret = caam_drv_ctx_update(ctx->drv_ctx[ENCRYPT],
778 if (ctx->drv_ctx[DECRYPT]) {
779 ret = caam_drv_ctx_update(ctx->drv_ctx[DECRYPT],
842 struct caam_drv_ctx *drv_ctx = ctx->drv_ctx[type];
845 if (unlikely(!drv_ctx)) {
848 /* Read again to check if some other core init drv_ctx */
849 drv_ctx = ctx->drv_ctx[type];
850 if (!drv_ctx) {
859 drv_ctx = caam_drv_ctx_init(ctx->qidev, &cpu, desc);
860 if (!IS_ERR(drv_ctx))
861 drv_ctx->op_type = type;
863 ctx->drv_ctx[type] = drv_ctx;
869 return drv_ctx;
960 struct caam_drv_ctx *drv_ctx;
962 drv_ctx = get_drv_ctx(ctx, encrypt ? ENCRYPT : DECRYPT);
963 if (IS_ERR(drv_ctx))
964 return (struct aead_edesc *)drv_ctx;
1097 edesc->drv_req.drv_ctx = drv_ctx;
1269 struct caam_drv_ctx *drv_ctx;
1272 drv_ctx = get_drv_ctx(ctx, encrypt ? ENCRYPT : DECRYPT);
1273 if (IS_ERR(drv_ctx))
1274 return (struct skcipher_edesc *)drv_ctx;
1358 edesc->drv_req.drv_ctx = drv_ctx;
2499 ctx->drv_ctx[ENCRYPT] = NULL;
2500 ctx->drv_ctx[DECRYPT] = NULL;
2550 caam_drv_ctx_rel(ctx->drv_ctx[ENCRYPT]);
2551 caam_drv_ctx_rel(ctx->drv_ctx[DECRYPT]);