Lines Matching defs:alg
1758 struct ahash_alg *alg =
1761 container_of(alg, struct caam_hash_alg, ahash_alg);
1800 ctx->key_dir = alg->setkey ? DMA_TO_DEVICE : DMA_NONE;
1861 return alg->setkey ? 0 : ahash_set_sh_desc(ahash);
1899 struct crypto_alg *alg;
1909 alg = &halg->halg.base;
1912 snprintf(alg->cra_name, CRYPTO_MAX_ALG_NAME, "%s",
1914 snprintf(alg->cra_driver_name, CRYPTO_MAX_ALG_NAME, "%s",
1917 snprintf(alg->cra_name, CRYPTO_MAX_ALG_NAME, "%s",
1919 snprintf(alg->cra_driver_name, CRYPTO_MAX_ALG_NAME, "%s",
1923 alg->cra_module = THIS_MODULE;
1924 alg->cra_init = caam_hash_cra_init;
1925 alg->cra_exit = caam_hash_cra_exit;
1926 alg->cra_ctxsize = sizeof(struct caam_hash_ctx);
1927 alg->cra_priority = CAAM_CRA_PRIORITY;
1928 alg->cra_blocksize = template->blocksize;
1929 alg->cra_alignmask = 0;
1930 alg->cra_flags = CRYPTO_ALG_ASYNC | CRYPTO_ALG_ALLOCATES_MEMORY;
1976 struct caam_hash_template *alg = driver_hash + i;
1979 if (is_mdha(alg->alg_type) &&
1980 alg->template_ahash.halg.digestsize > md_limit)
1984 t_alg = caam_hash_alloc(alg, true);
1987 pr_warn("%s alg allocation failed\n",
1988 alg->hmac_driver_name);
1994 pr_warn("%s alg registration failed: %d\n",
2001 if ((alg->alg_type & OP_ALG_ALGSEL_MASK) == OP_ALG_ALGSEL_AES)
2005 t_alg = caam_hash_alloc(alg, false);
2008 pr_warn("%s alg allocation failed\n", alg->driver_name);
2014 pr_warn("%s alg registration failed: %d\n",