Lines Matching refs:enc_cd
65 struct qat_alg_cd *enc_cd; member
84 struct icp_qat_hw_cipher_algo_blk *enc_cd; member
259 struct qat_enc *enc_ctx = &ctx->enc_cd->qat_enc_cd; in qat_alg_aead_init_enc_session()
451 struct icp_qat_hw_cipher_algo_blk *enc_cd = ctx->enc_cd; in qat_alg_skcipher_init_enc() local
455 qat_alg_skcipher_init_com(ctx, req, enc_cd, key, keylen); in qat_alg_skcipher_init_enc()
457 enc_cd->aes.cipher_config.val = QAT_AES_HW_CONFIG_ENC(alg, mode); in qat_alg_skcipher_init_enc()
558 memset(ctx->enc_cd, 0, sizeof(*ctx->enc_cd)); in qat_alg_aead_rekey()
581 ctx->enc_cd = dma_alloc_coherent(dev, sizeof(*ctx->enc_cd), in qat_alg_aead_newkey()
584 if (!ctx->enc_cd) { in qat_alg_aead_newkey()
609 memset(ctx->enc_cd, 0, sizeof(struct qat_alg_cd)); in qat_alg_aead_newkey()
611 ctx->enc_cd, ctx->enc_cd_paddr); in qat_alg_aead_newkey()
612 ctx->enc_cd = NULL; in qat_alg_aead_newkey()
624 if (ctx->enc_cd) in qat_alg_aead_setkey()
919 memset(ctx->enc_cd, 0, sizeof(*ctx->enc_cd)); in qat_alg_skcipher_rekey()
941 ctx->enc_cd = dma_alloc_coherent(dev, sizeof(*ctx->enc_cd), in qat_alg_skcipher_newkey()
944 if (!ctx->enc_cd) { in qat_alg_skcipher_newkey()
968 memset(ctx->enc_cd, 0, sizeof(*ctx->enc_cd)); in qat_alg_skcipher_newkey()
969 dma_free_coherent(dev, sizeof(*ctx->enc_cd), in qat_alg_skcipher_newkey()
970 ctx->enc_cd, ctx->enc_cd_paddr); in qat_alg_skcipher_newkey()
971 ctx->enc_cd = NULL; in qat_alg_skcipher_newkey()
984 if (ctx->enc_cd) in qat_alg_skcipher_setkey()
1227 if (ctx->enc_cd) { in qat_alg_aead_exit()
1228 memset(ctx->enc_cd, 0, sizeof(struct qat_alg_cd)); in qat_alg_aead_exit()
1230 ctx->enc_cd, ctx->enc_cd_paddr); in qat_alg_aead_exit()
1274 if (ctx->enc_cd) { in qat_alg_skcipher_exit_tfm()
1275 memset(ctx->enc_cd, 0, in qat_alg_skcipher_exit_tfm()
1279 ctx->enc_cd, ctx->enc_cd_paddr); in qat_alg_skcipher_exit_tfm()