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()
522 int crypto_register_template(struct crypto_template *tmpl) in crypto_register_template() argument
529 crypto_check_module_sig(tmpl->module); in crypto_register_template()
532 if (q == tmpl) in crypto_register_template()
536 list_add(&tmpl->list, &crypto_template_list); in crypto_register_template()
562 void crypto_unregister_template(struct crypto_template *tmpl) in crypto_unregister_template() argument
571 BUG_ON(list_empty(&tmpl->list)); in crypto_unregister_template()
572 list_del_init(&tmpl->list); in crypto_unregister_template()
574 list = &tmpl->instances; in crypto_unregister_template()
602 struct crypto_template *q, *tmpl = NULL; in __crypto_lookup_template() local
611 tmpl = q; in __crypto_lookup_template()
616 return tmpl; in __crypto_lookup_template()
626 int crypto_register_instance(struct crypto_template *tmpl, in crypto_register_instance() argument
638 inst->alg.cra_module = tmpl->module; in crypto_register_instance()
665 hlist_add_head(&inst->list, &tmpl->instances); in crypto_register_instance()
666 inst->tmpl = tmpl; in crypto_register_instance()