Lines Matching refs:tmpl
32 struct qce_alg_template *tmpl = to_cipher_tmpl(crypto_skcipher_reqtfm(req));
33 struct qce_device *qce = tmpl->qce;
60 qce->async_req_done(tmpl->qce, error);
69 struct qce_alg_template *tmpl = to_cipher_tmpl(crypto_skcipher_reqtfm(req));
70 struct qce_device *qce = tmpl->qce;
152 ret = qce_start(async_req, tmpl->crypto_alg_type);
261 struct qce_alg_template *tmpl = to_cipher_tmpl(tfm);
266 rctx->flags = tmpl->alg_flags;
307 return tmpl->qce->async_req_enqueue(tmpl->qce, &req->base);
439 struct qce_alg_template *tmpl;
443 tmpl = kzalloc(sizeof(*tmpl), GFP_KERNEL);
444 if (!tmpl)
447 alg = &tmpl->alg.skcipher;
480 INIT_LIST_HEAD(&tmpl->entry);
481 tmpl->crypto_alg_type = CRYPTO_ALG_TYPE_SKCIPHER;
482 tmpl->alg_flags = def->flags;
483 tmpl->qce = qce;
488 kfree(tmpl);
492 list_add_tail(&tmpl->entry, &skcipher_algs);
499 struct qce_alg_template *tmpl, *n;
501 list_for_each_entry_safe(tmpl, n, &skcipher_algs, entry) {
502 crypto_unregister_skcipher(&tmpl->alg.skcipher);
503 list_del(&tmpl->entry);
504 kfree(tmpl);