Lines Matching refs:dec_cd
66 struct qat_alg_cd *dec_cd; member
85 struct icp_qat_hw_cipher_algo_blk *dec_cd; member
340 struct qat_dec *dec_ctx = &ctx->dec_cd->qat_dec_cd; in qat_alg_aead_init_dec_session()
464 struct icp_qat_hw_cipher_algo_blk *dec_cd = ctx->dec_cd; in qat_alg_skcipher_init_dec() local
468 qat_alg_skcipher_init_com(ctx, req, dec_cd, key, keylen); in qat_alg_skcipher_init_dec()
472 dec_cd->aes.cipher_config.val = in qat_alg_skcipher_init_dec()
475 dec_cd->aes.cipher_config.val = in qat_alg_skcipher_init_dec()
559 memset(ctx->dec_cd, 0, sizeof(*ctx->dec_cd)); in qat_alg_aead_rekey()
588 ctx->dec_cd = dma_alloc_coherent(dev, sizeof(*ctx->dec_cd), in qat_alg_aead_newkey()
591 if (!ctx->dec_cd) { in qat_alg_aead_newkey()
604 memset(ctx->dec_cd, 0, sizeof(struct qat_alg_cd)); in qat_alg_aead_newkey()
606 ctx->dec_cd, ctx->dec_cd_paddr); in qat_alg_aead_newkey()
607 ctx->dec_cd = NULL; in qat_alg_aead_newkey()
920 memset(ctx->dec_cd, 0, sizeof(*ctx->dec_cd)); in qat_alg_skcipher_rekey()
948 ctx->dec_cd = dma_alloc_coherent(dev, sizeof(*ctx->dec_cd), in qat_alg_skcipher_newkey()
951 if (!ctx->dec_cd) { in qat_alg_skcipher_newkey()
963 memset(ctx->dec_cd, 0, sizeof(*ctx->dec_cd)); in qat_alg_skcipher_newkey()
964 dma_free_coherent(dev, sizeof(*ctx->dec_cd), in qat_alg_skcipher_newkey()
965 ctx->dec_cd, ctx->dec_cd_paddr); in qat_alg_skcipher_newkey()
966 ctx->dec_cd = NULL; in qat_alg_skcipher_newkey()
1232 if (ctx->dec_cd) { in qat_alg_aead_exit()
1233 memset(ctx->dec_cd, 0, sizeof(struct qat_alg_cd)); in qat_alg_aead_exit()
1235 ctx->dec_cd, ctx->dec_cd_paddr); in qat_alg_aead_exit()
1281 if (ctx->dec_cd) { in qat_alg_skcipher_exit_tfm()
1282 memset(ctx->dec_cd, 0, in qat_alg_skcipher_exit_tfm()
1286 ctx->dec_cd, ctx->dec_cd_paddr); in qat_alg_skcipher_exit_tfm()