Lines Matching refs:t_alg
4185 struct caam_crypto_alg *t_alg, *n; in caam_algapi_exit() local
4190 list_for_each_entry_safe(t_alg, n, &alg_list, entry) { in caam_algapi_exit()
4191 crypto_unregister_alg(&t_alg->crypto_alg); in caam_algapi_exit()
4192 list_del(&t_alg->entry); in caam_algapi_exit()
4193 kfree(t_alg); in caam_algapi_exit()
4200 struct caam_crypto_alg *t_alg; in caam_alg_alloc() local
4203 t_alg = kzalloc(sizeof(struct caam_crypto_alg), GFP_KERNEL); in caam_alg_alloc()
4204 if (!t_alg) { in caam_alg_alloc()
4209 alg = &t_alg->crypto_alg; in caam_alg_alloc()
4238 t_alg->class1_alg_type = template->class1_alg_type; in caam_alg_alloc()
4239 t_alg->class2_alg_type = template->class2_alg_type; in caam_alg_alloc()
4240 t_alg->alg_op = template->alg_op; in caam_alg_alloc()
4242 return t_alg; in caam_alg_alloc()
4283 struct caam_crypto_alg *t_alg; in caam_algapi_init() local
4285 t_alg = caam_alg_alloc(&driver_algs[i]); in caam_algapi_init()
4286 if (IS_ERR(t_alg)) { in caam_algapi_init()
4287 err = PTR_ERR(t_alg); in caam_algapi_init()
4293 err = crypto_register_alg(&t_alg->crypto_alg); in caam_algapi_init()
4296 t_alg->crypto_alg.cra_driver_name); in caam_algapi_init()
4297 kfree(t_alg); in caam_algapi_init()
4299 list_add_tail(&t_alg->entry, &alg_list); in caam_algapi_init()