Lines Matching refs:tmpl
29 struct qce_alg_template *tmpl = to_aead_tmpl(crypto_aead_reqtfm(req));
30 struct qce_device *qce = tmpl->qce;
96 struct qce_alg_template *tmpl = to_aead_tmpl(crypto_aead_reqtfm(req));
97 struct qce_device *qce = tmpl->qce;
116 struct qce_alg_template *tmpl = to_aead_tmpl(crypto_aead_reqtfm(req));
117 struct qce_device *qce = tmpl->qce;
304 struct qce_alg_template *tmpl = to_aead_tmpl(crypto_aead_reqtfm(req));
305 struct qce_device *qce = tmpl->qce;
414 struct qce_alg_template *tmpl = to_aead_tmpl(crypto_aead_reqtfm(req));
415 struct qce_device *qce = tmpl->qce;
478 ret = qce_start(async_req, tmpl->crypto_alg_type);
507 struct qce_alg_template *tmpl = to_aead_tmpl(tfm);
510 rctx->flags = tmpl->alg_flags;
552 return tmpl->qce->async_req_enqueue(tmpl->qce, &req->base);
761 struct qce_alg_template *tmpl;
765 tmpl = kzalloc(sizeof(*tmpl), GFP_KERNEL);
766 if (!tmpl)
769 alg = &tmpl->alg.aead;
798 INIT_LIST_HEAD(&tmpl->entry);
799 tmpl->crypto_alg_type = CRYPTO_ALG_TYPE_AEAD;
800 tmpl->alg_flags = def->flags;
801 tmpl->qce = qce;
806 kfree(tmpl);
810 list_add_tail(&tmpl->entry, &aead_algs);
817 struct qce_alg_template *tmpl, *n;
819 list_for_each_entry_safe(tmpl, n, &aead_algs, entry) {
820 crypto_unregister_aead(&tmpl->alg.aead);
821 list_del(&tmpl->entry);
822 kfree(tmpl);