t_alg 3491 drivers/crypto/caam/caamalg.c struct caam_aead_alg *t_alg = driver_aeads + i; t_alg 3493 drivers/crypto/caam/caamalg.c if (t_alg->registered) t_alg 3494 drivers/crypto/caam/caamalg.c crypto_unregister_aead(&t_alg->aead); t_alg 3498 drivers/crypto/caam/caamalg.c struct caam_skcipher_alg *t_alg = driver_algs + i; t_alg 3500 drivers/crypto/caam/caamalg.c if (t_alg->registered) t_alg 3501 drivers/crypto/caam/caamalg.c crypto_unregister_skcipher(&t_alg->skcipher); t_alg 3505 drivers/crypto/caam/caamalg.c static void caam_skcipher_alg_init(struct caam_skcipher_alg *t_alg) t_alg 3507 drivers/crypto/caam/caamalg.c struct skcipher_alg *alg = &t_alg->skcipher; t_alg 3518 drivers/crypto/caam/caamalg.c static void caam_aead_alg_init(struct caam_aead_alg *t_alg) t_alg 3520 drivers/crypto/caam/caamalg.c struct aead_alg *alg = &t_alg->aead; t_alg 3588 drivers/crypto/caam/caamalg.c struct caam_skcipher_alg *t_alg = driver_algs + i; t_alg 3589 drivers/crypto/caam/caamalg.c u32 alg_sel = t_alg->caam.class1_alg_type & OP_ALG_ALGSEL_MASK; t_alg 3610 drivers/crypto/caam/caamalg.c (t_alg->caam.class1_alg_type & OP_ALG_AAI_MASK) == t_alg 3614 drivers/crypto/caam/caamalg.c caam_skcipher_alg_init(t_alg); t_alg 3616 drivers/crypto/caam/caamalg.c err = crypto_register_skcipher(&t_alg->skcipher); t_alg 3619 drivers/crypto/caam/caamalg.c t_alg->skcipher.base.cra_driver_name); t_alg 3623 drivers/crypto/caam/caamalg.c t_alg->registered = true; t_alg 3628 drivers/crypto/caam/caamalg.c struct caam_aead_alg *t_alg = driver_aeads + i; t_alg 3629 drivers/crypto/caam/caamalg.c u32 c1_alg_sel = t_alg->caam.class1_alg_type & t_alg 3631 drivers/crypto/caam/caamalg.c u32 c2_alg_sel = t_alg->caam.class2_alg_type & t_alg 3633 drivers/crypto/caam/caamalg.c u32 alg_aai = t_alg->caam.class1_alg_type & OP_ALG_AAI_MASK; t_alg 3663 drivers/crypto/caam/caamalg.c (!md_inst || t_alg->aead.maxauthsize > md_limit)) t_alg 3666 drivers/crypto/caam/caamalg.c caam_aead_alg_init(t_alg); t_alg 3668 drivers/crypto/caam/caamalg.c err = crypto_register_aead(&t_alg->aead); t_alg 3671 drivers/crypto/caam/caamalg.c t_alg->aead.base.cra_driver_name); t_alg 3675 drivers/crypto/caam/caamalg.c t_alg->registered = true; t_alg 2506 drivers/crypto/caam/caamalg_qi.c struct caam_aead_alg *t_alg = driver_aeads + i; t_alg 2508 drivers/crypto/caam/caamalg_qi.c if (t_alg->registered) t_alg 2509 drivers/crypto/caam/caamalg_qi.c crypto_unregister_aead(&t_alg->aead); t_alg 2513 drivers/crypto/caam/caamalg_qi.c struct caam_skcipher_alg *t_alg = driver_algs + i; t_alg 2515 drivers/crypto/caam/caamalg_qi.c if (t_alg->registered) t_alg 2516 drivers/crypto/caam/caamalg_qi.c crypto_unregister_skcipher(&t_alg->skcipher); t_alg 2520 drivers/crypto/caam/caamalg_qi.c static void caam_skcipher_alg_init(struct caam_skcipher_alg *t_alg) t_alg 2522 drivers/crypto/caam/caamalg_qi.c struct skcipher_alg *alg = &t_alg->skcipher; t_alg 2533 drivers/crypto/caam/caamalg_qi.c static void caam_aead_alg_init(struct caam_aead_alg *t_alg) t_alg 2535 drivers/crypto/caam/caamalg_qi.c struct aead_alg *alg = &t_alg->aead; t_alg 2593 drivers/crypto/caam/caamalg_qi.c struct caam_skcipher_alg *t_alg = driver_algs + i; t_alg 2594 drivers/crypto/caam/caamalg_qi.c u32 alg_sel = t_alg->caam.class1_alg_type & OP_ALG_ALGSEL_MASK; t_alg 2606 drivers/crypto/caam/caamalg_qi.c caam_skcipher_alg_init(t_alg); t_alg 2608 drivers/crypto/caam/caamalg_qi.c err = crypto_register_skcipher(&t_alg->skcipher); t_alg 2611 drivers/crypto/caam/caamalg_qi.c t_alg->skcipher.base.cra_driver_name); t_alg 2615 drivers/crypto/caam/caamalg_qi.c t_alg->registered = true; t_alg 2620 drivers/crypto/caam/caamalg_qi.c struct caam_aead_alg *t_alg = driver_aeads + i; t_alg 2621 drivers/crypto/caam/caamalg_qi.c u32 c1_alg_sel = t_alg->caam.class1_alg_type & t_alg 2623 drivers/crypto/caam/caamalg_qi.c u32 c2_alg_sel = t_alg->caam.class2_alg_type & t_alg 2625 drivers/crypto/caam/caamalg_qi.c u32 alg_aai = t_alg->caam.class1_alg_type & OP_ALG_AAI_MASK; t_alg 2649 drivers/crypto/caam/caamalg_qi.c (!md_inst || (t_alg->aead.maxauthsize > md_limit))) t_alg 2652 drivers/crypto/caam/caamalg_qi.c caam_aead_alg_init(t_alg); t_alg 2654 drivers/crypto/caam/caamalg_qi.c err = crypto_register_aead(&t_alg->aead); t_alg 2657 drivers/crypto/caam/caamalg_qi.c t_alg->aead.base.cra_driver_name); t_alg 2661 drivers/crypto/caam/caamalg_qi.c t_alg->registered = true; t_alg 2934 drivers/crypto/caam/caamalg_qi2.c static void caam_skcipher_alg_init(struct caam_skcipher_alg *t_alg) t_alg 2936 drivers/crypto/caam/caamalg_qi2.c struct skcipher_alg *alg = &t_alg->skcipher; t_alg 2947 drivers/crypto/caam/caamalg_qi2.c static void caam_aead_alg_init(struct caam_aead_alg *t_alg) t_alg 2949 drivers/crypto/caam/caamalg_qi2.c struct aead_alg *alg = &t_alg->aead; t_alg 4587 drivers/crypto/caam/caamalg_qi2.c struct caam_hash_alg *t_alg; t_alg 4591 drivers/crypto/caam/caamalg_qi2.c t_alg = kzalloc(sizeof(*t_alg), GFP_KERNEL); t_alg 4592 drivers/crypto/caam/caamalg_qi2.c if (!t_alg) t_alg 4595 drivers/crypto/caam/caamalg_qi2.c t_alg->ahash_alg = template->template_ahash; t_alg 4596 drivers/crypto/caam/caamalg_qi2.c halg = &t_alg->ahash_alg; t_alg 4609 drivers/crypto/caam/caamalg_qi2.c t_alg->ahash_alg.setkey = NULL; t_alg 4620 drivers/crypto/caam/caamalg_qi2.c t_alg->alg_type = template->alg_type; t_alg 4621 drivers/crypto/caam/caamalg_qi2.c t_alg->dev = dev; t_alg 4623 drivers/crypto/caam/caamalg_qi2.c return t_alg; t_alg 5188 drivers/crypto/caam/caamalg_qi2.c struct caam_skcipher_alg *t_alg = driver_algs + i; t_alg 5189 drivers/crypto/caam/caamalg_qi2.c u32 alg_sel = t_alg->caam.class1_alg_type & OP_ALG_ALGSEL_MASK; t_alg 5207 drivers/crypto/caam/caamalg_qi2.c t_alg->caam.dev = dev; t_alg 5208 drivers/crypto/caam/caamalg_qi2.c caam_skcipher_alg_init(t_alg); t_alg 5210 drivers/crypto/caam/caamalg_qi2.c err = crypto_register_skcipher(&t_alg->skcipher); t_alg 5213 drivers/crypto/caam/caamalg_qi2.c t_alg->skcipher.base.cra_driver_name, err); t_alg 5217 drivers/crypto/caam/caamalg_qi2.c t_alg->registered = true; t_alg 5222 drivers/crypto/caam/caamalg_qi2.c struct caam_aead_alg *t_alg = driver_aeads + i; t_alg 5223 drivers/crypto/caam/caamalg_qi2.c u32 c1_alg_sel = t_alg->caam.class1_alg_type & t_alg 5225 drivers/crypto/caam/caamalg_qi2.c u32 c2_alg_sel = t_alg->caam.class2_alg_type & t_alg 5257 drivers/crypto/caam/caamalg_qi2.c t_alg->caam.dev = dev; t_alg 5258 drivers/crypto/caam/caamalg_qi2.c caam_aead_alg_init(t_alg); t_alg 5260 drivers/crypto/caam/caamalg_qi2.c err = crypto_register_aead(&t_alg->aead); t_alg 5263 drivers/crypto/caam/caamalg_qi2.c t_alg->aead.base.cra_driver_name, err); t_alg 5267 drivers/crypto/caam/caamalg_qi2.c t_alg->registered = true; t_alg 5284 drivers/crypto/caam/caamalg_qi2.c struct caam_hash_alg *t_alg; t_alg 5288 drivers/crypto/caam/caamalg_qi2.c t_alg = caam_hash_alloc(dev, alg, true); t_alg 5289 drivers/crypto/caam/caamalg_qi2.c if (IS_ERR(t_alg)) { t_alg 5290 drivers/crypto/caam/caamalg_qi2.c err = PTR_ERR(t_alg); t_alg 5296 drivers/crypto/caam/caamalg_qi2.c err = crypto_register_ahash(&t_alg->ahash_alg); t_alg 5299 drivers/crypto/caam/caamalg_qi2.c t_alg->ahash_alg.halg.base.cra_driver_name, t_alg 5301 drivers/crypto/caam/caamalg_qi2.c kfree(t_alg); t_alg 5303 drivers/crypto/caam/caamalg_qi2.c list_add_tail(&t_alg->entry, &hash_list); t_alg 5307 drivers/crypto/caam/caamalg_qi2.c t_alg = caam_hash_alloc(dev, alg, false); t_alg 5308 drivers/crypto/caam/caamalg_qi2.c if (IS_ERR(t_alg)) { t_alg 5309 drivers/crypto/caam/caamalg_qi2.c err = PTR_ERR(t_alg); t_alg 5315 drivers/crypto/caam/caamalg_qi2.c err = crypto_register_ahash(&t_alg->ahash_alg); t_alg 5318 drivers/crypto/caam/caamalg_qi2.c t_alg->ahash_alg.halg.base.cra_driver_name, t_alg 5320 drivers/crypto/caam/caamalg_qi2.c kfree(t_alg); t_alg 5322 drivers/crypto/caam/caamalg_qi2.c list_add_tail(&t_alg->entry, &hash_list); t_alg 5356 drivers/crypto/caam/caamalg_qi2.c struct caam_aead_alg *t_alg = driver_aeads + i; t_alg 5358 drivers/crypto/caam/caamalg_qi2.c if (t_alg->registered) t_alg 5359 drivers/crypto/caam/caamalg_qi2.c crypto_unregister_aead(&t_alg->aead); t_alg 5363 drivers/crypto/caam/caamalg_qi2.c struct caam_skcipher_alg *t_alg = driver_algs + i; t_alg 5365 drivers/crypto/caam/caamalg_qi2.c if (t_alg->registered) t_alg 5366 drivers/crypto/caam/caamalg_qi2.c crypto_unregister_skcipher(&t_alg->skcipher); t_alg 1926 drivers/crypto/caam/caamhash.c struct caam_hash_alg *t_alg, *n; t_alg 1931 drivers/crypto/caam/caamhash.c list_for_each_entry_safe(t_alg, n, &hash_list, entry) { t_alg 1932 drivers/crypto/caam/caamhash.c crypto_unregister_ahash(&t_alg->ahash_alg); t_alg 1933 drivers/crypto/caam/caamhash.c list_del(&t_alg->entry); t_alg 1934 drivers/crypto/caam/caamhash.c kfree(t_alg); t_alg 1942 drivers/crypto/caam/caamhash.c struct caam_hash_alg *t_alg; t_alg 1946 drivers/crypto/caam/caamhash.c t_alg = kzalloc(sizeof(*t_alg), GFP_KERNEL); t_alg 1947 drivers/crypto/caam/caamhash.c if (!t_alg) { t_alg 1952 drivers/crypto/caam/caamhash.c t_alg->ahash_alg = template->template_ahash; t_alg 1953 drivers/crypto/caam/caamhash.c halg = &t_alg->ahash_alg; t_alg 1966 drivers/crypto/caam/caamhash.c t_alg->ahash_alg.setkey = NULL; t_alg 1977 drivers/crypto/caam/caamhash.c t_alg->alg_type = template->alg_type; t_alg 1979 drivers/crypto/caam/caamhash.c return t_alg; t_alg 2020 drivers/crypto/caam/caamhash.c struct caam_hash_alg *t_alg; t_alg 2029 drivers/crypto/caam/caamhash.c t_alg = caam_hash_alloc(alg, true); t_alg 2030 drivers/crypto/caam/caamhash.c if (IS_ERR(t_alg)) { t_alg 2031 drivers/crypto/caam/caamhash.c err = PTR_ERR(t_alg); t_alg 2037 drivers/crypto/caam/caamhash.c err = crypto_register_ahash(&t_alg->ahash_alg); t_alg 2040 drivers/crypto/caam/caamhash.c t_alg->ahash_alg.halg.base.cra_driver_name, t_alg 2042 drivers/crypto/caam/caamhash.c kfree(t_alg); t_alg 2044 drivers/crypto/caam/caamhash.c list_add_tail(&t_alg->entry, &hash_list); t_alg 2050 drivers/crypto/caam/caamhash.c t_alg = caam_hash_alloc(alg, false); t_alg 2051 drivers/crypto/caam/caamhash.c if (IS_ERR(t_alg)) { t_alg 2052 drivers/crypto/caam/caamhash.c err = PTR_ERR(t_alg); t_alg 2057 drivers/crypto/caam/caamhash.c err = crypto_register_ahash(&t_alg->ahash_alg); t_alg 2060 drivers/crypto/caam/caamhash.c t_alg->ahash_alg.halg.base.cra_driver_name, t_alg 2062 drivers/crypto/caam/caamhash.c kfree(t_alg); t_alg 2064 drivers/crypto/caam/caamhash.c list_add_tail(&t_alg->entry, &hash_list); t_alg 2622 drivers/crypto/ccree/cc_aead.c struct cc_crypto_alg *t_alg; t_alg 2625 drivers/crypto/ccree/cc_aead.c t_alg = kzalloc(sizeof(*t_alg), GFP_KERNEL); t_alg 2626 drivers/crypto/ccree/cc_aead.c if (!t_alg) t_alg 2642 drivers/crypto/ccree/cc_aead.c t_alg->aead_alg = *alg; t_alg 2644 drivers/crypto/ccree/cc_aead.c t_alg->cipher_mode = tmpl->cipher_mode; t_alg 2645 drivers/crypto/ccree/cc_aead.c t_alg->flow_mode = tmpl->flow_mode; t_alg 2646 drivers/crypto/ccree/cc_aead.c t_alg->auth_mode = tmpl->auth_mode; t_alg 2648 drivers/crypto/ccree/cc_aead.c return t_alg; t_alg 2653 drivers/crypto/ccree/cc_aead.c struct cc_crypto_alg *t_alg, *n; t_alg 2659 drivers/crypto/ccree/cc_aead.c list_for_each_entry_safe(t_alg, n, &aead_handle->aead_list, t_alg 2661 drivers/crypto/ccree/cc_aead.c crypto_unregister_aead(&t_alg->aead_alg); t_alg 2662 drivers/crypto/ccree/cc_aead.c list_del(&t_alg->entry); t_alg 2663 drivers/crypto/ccree/cc_aead.c kfree(t_alg); t_alg 2675 drivers/crypto/ccree/cc_aead.c struct cc_crypto_alg *t_alg; t_alg 2704 drivers/crypto/ccree/cc_aead.c t_alg = cc_create_aead_alg(&aead_algs[alg], dev); t_alg 2705 drivers/crypto/ccree/cc_aead.c if (IS_ERR(t_alg)) { t_alg 2706 drivers/crypto/ccree/cc_aead.c rc = PTR_ERR(t_alg); t_alg 2711 drivers/crypto/ccree/cc_aead.c t_alg->drvdata = drvdata; t_alg 2712 drivers/crypto/ccree/cc_aead.c rc = crypto_register_aead(&t_alg->aead_alg); t_alg 2715 drivers/crypto/ccree/cc_aead.c t_alg->aead_alg.base.cra_driver_name); t_alg 2718 drivers/crypto/ccree/cc_aead.c list_add_tail(&t_alg->entry, &aead_handle->aead_list); t_alg 2720 drivers/crypto/ccree/cc_aead.c t_alg->aead_alg.base.cra_driver_name); t_alg 2727 drivers/crypto/ccree/cc_aead.c kfree(t_alg); t_alg 1638 drivers/crypto/ccree/cc_cipher.c struct cc_crypto_alg *t_alg; t_alg 1641 drivers/crypto/ccree/cc_cipher.c t_alg = kzalloc(sizeof(*t_alg), GFP_KERNEL); t_alg 1642 drivers/crypto/ccree/cc_cipher.c if (!t_alg) t_alg 1645 drivers/crypto/ccree/cc_cipher.c alg = &t_alg->skcipher_alg; t_alg 1662 drivers/crypto/ccree/cc_cipher.c t_alg->cipher_mode = tmpl->cipher_mode; t_alg 1663 drivers/crypto/ccree/cc_cipher.c t_alg->flow_mode = tmpl->flow_mode; t_alg 1664 drivers/crypto/ccree/cc_cipher.c t_alg->data_unit = tmpl->data_unit; t_alg 1666 drivers/crypto/ccree/cc_cipher.c return t_alg; t_alg 1671 drivers/crypto/ccree/cc_cipher.c struct cc_crypto_alg *t_alg, *n; t_alg 1676 drivers/crypto/ccree/cc_cipher.c list_for_each_entry_safe(t_alg, n, &cipher_handle->alg_list, t_alg 1678 drivers/crypto/ccree/cc_cipher.c crypto_unregister_skcipher(&t_alg->skcipher_alg); t_alg 1679 drivers/crypto/ccree/cc_cipher.c list_del(&t_alg->entry); t_alg 1680 drivers/crypto/ccree/cc_cipher.c kfree(t_alg); t_alg 1691 drivers/crypto/ccree/cc_cipher.c struct cc_crypto_alg *t_alg; t_alg 1713 drivers/crypto/ccree/cc_cipher.c t_alg = cc_create_alg(&skcipher_algs[alg], dev); t_alg 1714 drivers/crypto/ccree/cc_cipher.c if (IS_ERR(t_alg)) { t_alg 1715 drivers/crypto/ccree/cc_cipher.c rc = PTR_ERR(t_alg); t_alg 1720 drivers/crypto/ccree/cc_cipher.c t_alg->drvdata = drvdata; t_alg 1724 drivers/crypto/ccree/cc_cipher.c rc = crypto_register_skcipher(&t_alg->skcipher_alg); t_alg 1726 drivers/crypto/ccree/cc_cipher.c t_alg->skcipher_alg.base.cra_driver_name, rc); t_alg 1729 drivers/crypto/ccree/cc_cipher.c t_alg->skcipher_alg.base.cra_driver_name); t_alg 1730 drivers/crypto/ccree/cc_cipher.c kfree(t_alg); t_alg 1733 drivers/crypto/ccree/cc_cipher.c list_add_tail(&t_alg->entry, t_alg 1736 drivers/crypto/ccree/cc_cipher.c t_alg->skcipher_alg.base.cra_driver_name); t_alg 2042 drivers/crypto/ccree/cc_hash.c struct cc_hash_alg *t_alg; t_alg 2052 drivers/crypto/ccree/cc_hash.c t_alg = cc_alloc_hash_alg(&driver_hash[alg], dev, true); t_alg 2053 drivers/crypto/ccree/cc_hash.c if (IS_ERR(t_alg)) { t_alg 2054 drivers/crypto/ccree/cc_hash.c rc = PTR_ERR(t_alg); t_alg 2059 drivers/crypto/ccree/cc_hash.c t_alg->drvdata = drvdata; t_alg 2061 drivers/crypto/ccree/cc_hash.c rc = crypto_register_ahash(&t_alg->ahash_alg); t_alg 2065 drivers/crypto/ccree/cc_hash.c kfree(t_alg); t_alg 2068 drivers/crypto/ccree/cc_hash.c list_add_tail(&t_alg->entry, t_alg 2077 drivers/crypto/ccree/cc_hash.c t_alg = cc_alloc_hash_alg(&driver_hash[alg], dev, false); t_alg 2078 drivers/crypto/ccree/cc_hash.c if (IS_ERR(t_alg)) { t_alg 2079 drivers/crypto/ccree/cc_hash.c rc = PTR_ERR(t_alg); t_alg 2084 drivers/crypto/ccree/cc_hash.c t_alg->drvdata = drvdata; t_alg 2086 drivers/crypto/ccree/cc_hash.c rc = crypto_register_ahash(&t_alg->ahash_alg); t_alg 2090 drivers/crypto/ccree/cc_hash.c kfree(t_alg); t_alg 2093 drivers/crypto/ccree/cc_hash.c list_add_tail(&t_alg->entry, &hash_handle->hash_list); t_alg 3110 drivers/crypto/talitos.c struct talitos_crypto_alg *t_alg, *n; t_alg 3113 drivers/crypto/talitos.c list_for_each_entry_safe(t_alg, n, &priv->alg_list, entry) { t_alg 3114 drivers/crypto/talitos.c switch (t_alg->algt.type) { t_alg 3118 drivers/crypto/talitos.c crypto_unregister_aead(&t_alg->algt.alg.aead); t_alg 3121 drivers/crypto/talitos.c crypto_unregister_ahash(&t_alg->algt.alg.hash); t_alg 3124 drivers/crypto/talitos.c list_del(&t_alg->entry); t_alg 3148 drivers/crypto/talitos.c struct talitos_crypto_alg *t_alg; t_alg 3151 drivers/crypto/talitos.c t_alg = devm_kzalloc(dev, sizeof(struct talitos_crypto_alg), t_alg 3153 drivers/crypto/talitos.c if (!t_alg) t_alg 3156 drivers/crypto/talitos.c t_alg->algt = *template; t_alg 3158 drivers/crypto/talitos.c switch (t_alg->algt.type) { t_alg 3160 drivers/crypto/talitos.c alg = &t_alg->algt.alg.crypto; t_alg 3170 drivers/crypto/talitos.c alg = &t_alg->algt.alg.aead.base; t_alg 3172 drivers/crypto/talitos.c t_alg->algt.alg.aead.init = talitos_cra_init_aead; t_alg 3173 drivers/crypto/talitos.c t_alg->algt.alg.aead.setkey = t_alg->algt.alg.aead.setkey ?: t_alg 3175 drivers/crypto/talitos.c t_alg->algt.alg.aead.encrypt = aead_encrypt; t_alg 3176 drivers/crypto/talitos.c t_alg->algt.alg.aead.decrypt = aead_decrypt; t_alg 3179 drivers/crypto/talitos.c devm_kfree(dev, t_alg); t_alg 3184 drivers/crypto/talitos.c alg = &t_alg->algt.alg.hash.halg.base; t_alg 3187 drivers/crypto/talitos.c t_alg->algt.alg.hash.init = ahash_init; t_alg 3188 drivers/crypto/talitos.c t_alg->algt.alg.hash.update = ahash_update; t_alg 3189 drivers/crypto/talitos.c t_alg->algt.alg.hash.final = ahash_final; t_alg 3190 drivers/crypto/talitos.c t_alg->algt.alg.hash.finup = ahash_finup; t_alg 3191 drivers/crypto/talitos.c t_alg->algt.alg.hash.digest = ahash_digest; t_alg 3193 drivers/crypto/talitos.c t_alg->algt.alg.hash.setkey = ahash_setkey; t_alg 3194 drivers/crypto/talitos.c t_alg->algt.alg.hash.import = ahash_import; t_alg 3195 drivers/crypto/talitos.c t_alg->algt.alg.hash.export = ahash_export; t_alg 3199 drivers/crypto/talitos.c devm_kfree(dev, t_alg); t_alg 3205 drivers/crypto/talitos.c t_alg->algt.alg.hash.init = ahash_init_sha224_swinit; t_alg 3206 drivers/crypto/talitos.c t_alg->algt.desc_hdr_template = t_alg 3213 drivers/crypto/talitos.c dev_err(dev, "unknown algorithm type %d\n", t_alg->algt.type); t_alg 3214 drivers/crypto/talitos.c devm_kfree(dev, t_alg); t_alg 3219 drivers/crypto/talitos.c if (t_alg->algt.priority) t_alg 3220 drivers/crypto/talitos.c alg->cra_priority = t_alg->algt.priority; t_alg 3230 drivers/crypto/talitos.c t_alg->dev = dev; t_alg 3232 drivers/crypto/talitos.c return t_alg; t_alg 3452 drivers/crypto/talitos.c struct talitos_crypto_alg *t_alg; t_alg 3455 drivers/crypto/talitos.c t_alg = talitos_alg_alloc(dev, &driver_algs[i]); t_alg 3456 drivers/crypto/talitos.c if (IS_ERR(t_alg)) { t_alg 3457 drivers/crypto/talitos.c err = PTR_ERR(t_alg); t_alg 3463 drivers/crypto/talitos.c switch (t_alg->algt.type) { t_alg 3466 drivers/crypto/talitos.c &t_alg->algt.alg.crypto); t_alg 3467 drivers/crypto/talitos.c alg = &t_alg->algt.alg.crypto; t_alg 3472 drivers/crypto/talitos.c &t_alg->algt.alg.aead); t_alg 3473 drivers/crypto/talitos.c alg = &t_alg->algt.alg.aead.base; t_alg 3478 drivers/crypto/talitos.c &t_alg->algt.alg.hash); t_alg 3479 drivers/crypto/talitos.c alg = &t_alg->algt.alg.hash.halg.base; t_alg 3485 drivers/crypto/talitos.c devm_kfree(dev, t_alg); t_alg 3487 drivers/crypto/talitos.c list_add_tail(&t_alg->entry, &priv->alg_list);