Lines Matching refs:tmpl
30 struct qce_alg_template *tmpl = to_cipher_tmpl(async_req->tfm); in qce_ablkcipher_done() local
31 struct qce_device *qce = tmpl->qce; in qce_ablkcipher_done()
56 qce->async_req_done(tmpl->qce, error); in qce_ablkcipher_done()
65 struct qce_alg_template *tmpl = to_cipher_tmpl(async_req->tfm); in qce_ablkcipher_async_req_handle() local
66 struct qce_device *qce = tmpl->qce; in qce_ablkcipher_async_req_handle()
134 ret = qce_start(async_req, tmpl->crypto_alg_type, req->nbytes, 0); in qce_ablkcipher_async_req_handle()
199 struct qce_alg_template *tmpl = to_cipher_tmpl(tfm); in qce_ablkcipher_crypt() local
202 rctx->flags = tmpl->alg_flags; in qce_ablkcipher_crypt()
214 return tmpl->qce->async_req_enqueue(tmpl->qce, &req->base); in qce_ablkcipher_crypt()
339 struct qce_alg_template *tmpl; in qce_ablkcipher_register_one() local
343 tmpl = kzalloc(sizeof(*tmpl), GFP_KERNEL); in qce_ablkcipher_register_one()
344 if (!tmpl) in qce_ablkcipher_register_one()
347 alg = &tmpl->alg.crypto; in qce_ablkcipher_register_one()
372 INIT_LIST_HEAD(&tmpl->entry); in qce_ablkcipher_register_one()
373 tmpl->crypto_alg_type = CRYPTO_ALG_TYPE_ABLKCIPHER; in qce_ablkcipher_register_one()
374 tmpl->alg_flags = def->flags; in qce_ablkcipher_register_one()
375 tmpl->qce = qce; in qce_ablkcipher_register_one()
379 kfree(tmpl); in qce_ablkcipher_register_one()
384 list_add_tail(&tmpl->entry, &ablkcipher_algs); in qce_ablkcipher_register_one()
391 struct qce_alg_template *tmpl, *n; in qce_ablkcipher_unregister() local
393 list_for_each_entry_safe(tmpl, n, &ablkcipher_algs, entry) { in qce_ablkcipher_unregister()
394 crypto_unregister_alg(&tmpl->alg.crypto); in qce_ablkcipher_unregister()
395 list_del(&tmpl->entry); in qce_ablkcipher_unregister()
396 kfree(tmpl); in qce_ablkcipher_unregister()