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