Lines Matching refs:tmpl
80 struct crypto_template *tmpl = inst->tmpl; in crypto_destroy_instance() local
83 crypto_tmpl_put(tmpl); in crypto_destroy_instance()
122 struct crypto_template *tmpl = inst->tmpl; in crypto_remove_instance() local
129 if (!tmpl || !crypto_tmpl_get(tmpl)) in crypto_remove_instance()
533 int crypto_register_template(struct crypto_template *tmpl) in crypto_register_template() argument
540 crypto_check_module_sig(tmpl->module); in crypto_register_template()
543 if (q == tmpl) in crypto_register_template()
547 list_add(&tmpl->list, &crypto_template_list); in crypto_register_template()
573 void crypto_unregister_template(struct crypto_template *tmpl) in crypto_unregister_template() argument
582 BUG_ON(list_empty(&tmpl->list)); in crypto_unregister_template()
583 list_del_init(&tmpl->list); in crypto_unregister_template()
585 list = &tmpl->instances; in crypto_unregister_template()
613 struct crypto_template *q, *tmpl = NULL; in __crypto_lookup_template() local
622 tmpl = q; in __crypto_lookup_template()
627 return tmpl; in __crypto_lookup_template()
637 int crypto_register_instance(struct crypto_template *tmpl, in crypto_register_instance() argument
650 inst->alg.cra_module = tmpl->module; in crypto_register_instance()
681 hlist_add_head(&inst->list, &tmpl->instances); in crypto_register_instance()
682 inst->tmpl = tmpl; in crypto_register_instance()