Lines Matching refs:tmpl
82 struct crypto_template *tmpl = inst->tmpl; in crypto_destroy_instance_workfn() local
85 crypto_tmpl_put(tmpl); in crypto_destroy_instance_workfn()
134 struct crypto_template *tmpl = inst->tmpl; in crypto_remove_instance() local
141 if (!tmpl || !crypto_tmpl_get(tmpl)) in crypto_remove_instance()
546 int crypto_register_template(struct crypto_template *tmpl) in crypto_register_template() argument
553 crypto_check_module_sig(tmpl->module); in crypto_register_template()
556 if (q == tmpl) in crypto_register_template()
560 list_add(&tmpl->list, &crypto_template_list); in crypto_register_template()
586 void crypto_unregister_template(struct crypto_template *tmpl) in crypto_unregister_template() argument
595 BUG_ON(list_empty(&tmpl->list)); in crypto_unregister_template()
596 list_del_init(&tmpl->list); in crypto_unregister_template()
598 list = &tmpl->instances; in crypto_unregister_template()
626 struct crypto_template *q, *tmpl = NULL; in __crypto_lookup_template() local
635 tmpl = q; in __crypto_lookup_template()
640 return tmpl; in __crypto_lookup_template()
650 int crypto_register_instance(struct crypto_template *tmpl, in crypto_register_instance() argument
663 inst->alg.cra_module = tmpl->module; in crypto_register_instance()
694 hlist_add_head(&inst->list, &tmpl->instances); in crypto_register_instance()
695 inst->tmpl = tmpl; in crypto_register_instance()