Lines Matching defs:tmpl
76 struct crypto_template *tmpl = inst->tmpl;
79 crypto_tmpl_put(tmpl);
128 struct crypto_template *tmpl = inst->tmpl;
135 if (!tmpl || !crypto_tmpl_get(tmpl))
511 int crypto_register_template(struct crypto_template *tmpl)
518 crypto_check_module_sig(tmpl->module);
521 if (q == tmpl)
525 list_add(&tmpl->list, &crypto_template_list);
551 void crypto_unregister_template(struct crypto_template *tmpl)
560 BUG_ON(list_empty(&tmpl->list));
561 list_del_init(&tmpl->list);
563 list = &tmpl->instances;
591 struct crypto_template *q, *tmpl = NULL;
600 tmpl = q;
605 return tmpl;
615 int crypto_register_instance(struct crypto_template *tmpl,
626 inst->alg.cra_module = tmpl->module;
651 hlist_add_head(&inst->list, &tmpl->instances);
652 inst->tmpl = tmpl;