• Home
  • Raw
  • Download

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()
58 qce->async_req_done(tmpl->qce, error); in qce_ablkcipher_done()
67 struct qce_alg_template *tmpl = to_cipher_tmpl(async_req->tfm); in qce_ablkcipher_async_req_handle() local
68 struct qce_device *qce = tmpl->qce; in qce_ablkcipher_async_req_handle()
142 ret = qce_start(async_req, tmpl->crypto_alg_type, req->nbytes, 0); in qce_ablkcipher_async_req_handle()
209 struct qce_alg_template *tmpl = to_cipher_tmpl(tfm); in qce_ablkcipher_crypt() local
212 rctx->flags = tmpl->alg_flags; in qce_ablkcipher_crypt()
224 return tmpl->qce->async_req_enqueue(tmpl->qce, &req->base); in qce_ablkcipher_crypt()
349 struct qce_alg_template *tmpl; in qce_ablkcipher_register_one() local
353 tmpl = kzalloc(sizeof(*tmpl), GFP_KERNEL); in qce_ablkcipher_register_one()
354 if (!tmpl) in qce_ablkcipher_register_one()
357 alg = &tmpl->alg.crypto; in qce_ablkcipher_register_one()
382 INIT_LIST_HEAD(&tmpl->entry); in qce_ablkcipher_register_one()
383 tmpl->crypto_alg_type = CRYPTO_ALG_TYPE_ABLKCIPHER; in qce_ablkcipher_register_one()
384 tmpl->alg_flags = def->flags; in qce_ablkcipher_register_one()
385 tmpl->qce = qce; in qce_ablkcipher_register_one()
389 kfree(tmpl); in qce_ablkcipher_register_one()
394 list_add_tail(&tmpl->entry, &ablkcipher_algs); in qce_ablkcipher_register_one()
401 struct qce_alg_template *tmpl, *n; in qce_ablkcipher_unregister() local
403 list_for_each_entry_safe(tmpl, n, &ablkcipher_algs, entry) { in qce_ablkcipher_unregister()
404 crypto_unregister_alg(&tmpl->alg.crypto); in qce_ablkcipher_unregister()
405 list_del(&tmpl->entry); in qce_ablkcipher_unregister()
406 kfree(tmpl); in qce_ablkcipher_unregister()