Searched refs:enc_cd (Results 1 - 1 of 1) sorted by relevance
/linux-4.4.14/drivers/crypto/qat/qat_common/ |
H A D | qat_algs.c | 106 struct qat_alg_cd *enc_cd; member in struct:qat_alg_aead_ctx 118 struct icp_qat_hw_cipher_algo_blk *enc_cd; member in struct:qat_alg_ablkcipher_ctx 279 struct qat_enc *enc_ctx = &ctx->enc_cd->qat_enc_cd; qat_alg_aead_init_enc_session() 471 struct icp_qat_hw_cipher_algo_blk *enc_cd = ctx->enc_cd; qat_alg_ablkcipher_init_enc() local 475 qat_alg_ablkcipher_init_com(ctx, req, enc_cd, key, keylen); qat_alg_ablkcipher_init_enc() 477 enc_cd->aes.cipher_config.val = QAT_AES_HW_CONFIG_ENC(alg, mode); qat_alg_ablkcipher_init_enc() 580 if (ctx->enc_cd) { qat_alg_aead_setkey() 583 memset(ctx->enc_cd, 0, sizeof(*ctx->enc_cd)); qat_alg_aead_setkey() 598 ctx->enc_cd = dma_zalloc_coherent(dev, sizeof(*ctx->enc_cd), qat_alg_aead_setkey() 601 if (!ctx->enc_cd) { qat_alg_aead_setkey() 623 memset(ctx->enc_cd, 0, sizeof(struct qat_alg_cd)); qat_alg_aead_setkey() 625 ctx->enc_cd, ctx->enc_cd_paddr); qat_alg_aead_setkey() 626 ctx->enc_cd = NULL; qat_alg_aead_setkey() 909 if (ctx->enc_cd) { qat_alg_ablkcipher_setkey() 912 memset(ctx->enc_cd, 0, sizeof(*ctx->enc_cd)); qat_alg_ablkcipher_setkey() 928 ctx->enc_cd = dma_zalloc_coherent(dev, sizeof(*ctx->enc_cd), qat_alg_ablkcipher_setkey() 931 if (!ctx->enc_cd) { qat_alg_ablkcipher_setkey() 950 memset(ctx->dec_cd, 0, sizeof(*ctx->enc_cd)); qat_alg_ablkcipher_setkey() 951 dma_free_coherent(dev, sizeof(*ctx->enc_cd), qat_alg_ablkcipher_setkey() 955 memset(ctx->enc_cd, 0, sizeof(*ctx->dec_cd)); qat_alg_ablkcipher_setkey() 957 ctx->enc_cd, ctx->enc_cd_paddr); qat_alg_ablkcipher_setkey() 958 ctx->enc_cd = NULL; qat_alg_ablkcipher_setkey() 1099 if (ctx->enc_cd) { qat_alg_aead_exit() 1100 memset(ctx->enc_cd, 0, sizeof(struct qat_alg_cd)); qat_alg_aead_exit() 1102 ctx->enc_cd, ctx->enc_cd_paddr); qat_alg_aead_exit() 1133 if (ctx->enc_cd) { qat_alg_ablkcipher_exit() 1134 memset(ctx->enc_cd, 0, qat_alg_ablkcipher_exit() 1138 ctx->enc_cd, ctx->enc_cd_paddr); qat_alg_ablkcipher_exit()
|
Completed in 63 milliseconds