Lines Matching refs:tmpl
31 struct qce_alg_template *tmpl = to_cipher_tmpl(crypto_skcipher_reqtfm(req));
32 struct qce_device *qce = tmpl->qce;
59 qce->async_req_done(tmpl->qce, error);
68 struct qce_alg_template *tmpl = to_cipher_tmpl(crypto_skcipher_reqtfm(req));
69 struct qce_device *qce = tmpl->qce;
151 ret = qce_start(async_req, tmpl->crypto_alg_type, req->cryptlen, 0);
228 struct qce_alg_template *tmpl = to_cipher_tmpl(tfm);
232 rctx->flags = tmpl->alg_flags;
256 return tmpl->qce->async_req_enqueue(tmpl->qce, &req->base);
388 struct qce_alg_template *tmpl;
392 tmpl = kzalloc(sizeof(*tmpl), GFP_KERNEL);
393 if (!tmpl)
396 alg = &tmpl->alg.skcipher;
429 INIT_LIST_HEAD(&tmpl->entry);
430 tmpl->crypto_alg_type = CRYPTO_ALG_TYPE_SKCIPHER;
431 tmpl->alg_flags = def->flags;
432 tmpl->qce = qce;
437 kfree(tmpl);
441 list_add_tail(&tmpl->entry, &skcipher_algs);
448 struct qce_alg_template *tmpl, *n;
450 list_for_each_entry_safe(tmpl, n, &skcipher_algs, entry) {
451 crypto_unregister_skcipher(&tmpl->alg.skcipher);
452 list_del(&tmpl->entry);
453 kfree(tmpl);