Lines Matching refs:ENCRYPT
258 if (ctx->drv_ctx[ENCRYPT]) { in aead_setkey()
259 ret = caam_drv_ctx_update(ctx->drv_ctx[ENCRYPT], 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()
490 if (ctx->drv_ctx[ENCRYPT]) { in rfc4106_setkey()
491 ret = caam_drv_ctx_update(ctx->drv_ctx[ENCRYPT], in rfc4106_setkey()
596 if (ctx->drv_ctx[ENCRYPT]) { in rfc4543_setkey()
597 ret = caam_drv_ctx_update(ctx->drv_ctx[ENCRYPT], in rfc4543_setkey()
643 if (ctx->drv_ctx[ENCRYPT]) { in skcipher_setkey()
644 ret = caam_drv_ctx_update(ctx->drv_ctx[ENCRYPT], in skcipher_setkey()
764 if (ctx->drv_ctx[ENCRYPT]) { in xts_skcipher_setkey()
765 ret = caam_drv_ctx_update(ctx->drv_ctx[ENCRYPT], in xts_skcipher_setkey()
848 if (type == ENCRYPT) in get_drv_ctx()
957 drv_ctx = get_drv_ctx(ctx, encrypt ? ENCRYPT : DECRYPT); in aead_edesc_alloc()
1261 drv_ctx = get_drv_ctx(ctx, encrypt ? ENCRYPT : DECRYPT); in skcipher_edesc_alloc()
2483 ctx->drv_ctx[ENCRYPT] = NULL; in caam_init_common()
2534 caam_drv_ctx_rel(ctx->drv_ctx[ENCRYPT]); in caam_exit_common()