Lines Matching defs:alg
1765 struct ahash_alg *alg =
1768 container_of(alg, struct caam_hash_alg, ahash_alg.base);
1807 ctx->key_dir = alg->setkey ? DMA_TO_DEVICE : DMA_NONE;
1865 return alg->setkey ? 0 : ahash_set_sh_desc(ahash);
1903 struct crypto_alg *alg;
1911 alg = &halg->halg.base;
1914 snprintf(alg->cra_name, CRYPTO_MAX_ALG_NAME, "%s",
1916 snprintf(alg->cra_driver_name, CRYPTO_MAX_ALG_NAME, "%s",
1919 snprintf(alg->cra_name, CRYPTO_MAX_ALG_NAME, "%s",
1921 snprintf(alg->cra_driver_name, CRYPTO_MAX_ALG_NAME, "%s",
1925 alg->cra_module = THIS_MODULE;
1926 alg->cra_init = caam_hash_cra_init;
1927 alg->cra_exit = caam_hash_cra_exit;
1928 alg->cra_ctxsize = sizeof(struct caam_hash_ctx) + crypto_dma_padding();
1929 alg->cra_priority = CAAM_CRA_PRIORITY;
1930 alg->cra_blocksize = template->blocksize;
1931 alg->cra_alignmask = 0;
1932 alg->cra_flags = CRYPTO_ALG_ASYNC | CRYPTO_ALG_ALLOCATES_MEMORY;
1981 struct caam_hash_template *alg = driver_hash + i;
1984 if (is_mdha(alg->alg_type) &&
1985 alg->template_ahash.halg.digestsize > md_limit)
1989 t_alg = caam_hash_alloc(alg, true);
1992 pr_warn("%s alg allocation failed\n",
1993 alg->hmac_driver_name);
1999 pr_warn("%s alg registration failed: %d\n",
2006 if ((alg->alg_type & OP_ALG_ALGSEL_MASK) == OP_ALG_ALGSEL_AES)
2010 t_alg = caam_hash_alloc(alg, false);
2013 pr_warn("%s alg allocation failed\n", alg->driver_name);
2019 pr_warn("%s alg registration failed: %d\n",