Lines Matching refs:tmpl
74 struct crypto_template *tmpl = inst->tmpl; in crypto_destroy_instance() local
77 crypto_tmpl_put(tmpl); in crypto_destroy_instance()
116 struct crypto_template *tmpl = inst->tmpl; in crypto_remove_instance() local
123 if (!tmpl || !crypto_tmpl_get(tmpl)) in crypto_remove_instance()
498 int crypto_register_template(struct crypto_template *tmpl) in crypto_register_template() argument
505 crypto_check_module_sig(tmpl->module); in crypto_register_template()
508 if (q == tmpl) in crypto_register_template()
512 list_add(&tmpl->list, &crypto_template_list); in crypto_register_template()
538 void crypto_unregister_template(struct crypto_template *tmpl) in crypto_unregister_template() argument
547 BUG_ON(list_empty(&tmpl->list)); in crypto_unregister_template()
548 list_del_init(&tmpl->list); in crypto_unregister_template()
550 list = &tmpl->instances; in crypto_unregister_template()
578 struct crypto_template *q, *tmpl = NULL; in __crypto_lookup_template() local
587 tmpl = q; in __crypto_lookup_template()
592 return tmpl; in __crypto_lookup_template()
602 int crypto_register_instance(struct crypto_template *tmpl, in crypto_register_instance() argument
613 inst->alg.cra_module = tmpl->module; in crypto_register_instance()
640 hlist_add_head(&inst->list, &tmpl->instances); in crypto_register_instance()
641 inst->tmpl = tmpl; in crypto_register_instance()