Lines Matching refs:base
248 rctx->complete(&req->base, err);
255 static void cryptd_skcipher_encrypt(struct crypto_async_request *base,
258 struct skcipher_request *req = skcipher_request_cast(base);
277 req->base.complete = rctx->complete;
283 static void cryptd_skcipher_decrypt(struct crypto_async_request *base,
286 struct skcipher_request *req = skcipher_request_cast(base);
305 req->base.complete = rctx->complete;
319 rctx->complete = req->base.complete;
320 req->base.complete = compl;
322 return cryptd_enqueue_request(queue, &req->base);
396 err = cryptd_init_instance(skcipher_crypto_instance(inst), &alg->base);
400 inst->alg.base.cra_flags |= CRYPTO_ALG_ASYNC |
401 (alg->base.cra_flags & CRYPTO_ALG_INTERNAL);
407 inst->alg.base.cra_ctxsize = sizeof(struct cryptd_skcipher_ctx);
472 rctx->complete = req->base.complete;
473 req->base.complete = compl;
475 return cryptd_enqueue_request(queue, &req->base);
486 rctx->complete(&req->base, err);
508 req->base.complete = rctx->complete;
531 req->base.complete = rctx->complete;
552 req->base.complete = rctx->complete;
573 req->base.complete = rctx->complete;
599 req->base.complete = rctx->complete;
662 err = cryptd_init_instance(ahash_crypto_instance(inst), &alg->base);
666 inst->alg.halg.base.cra_flags |= CRYPTO_ALG_ASYNC |
667 (alg->base.cra_flags & (CRYPTO_ALG_INTERNAL|
671 inst->alg.halg.base.cra_ctxsize = sizeof(struct cryptd_hash_ctx);
673 inst->alg.halg.base.cra_init = cryptd_hash_init_tfm;
674 inst->alg.halg.base.cra_exit = cryptd_hash_exit_tfm;
740 compl(&req->base, err);
753 req = container_of(areq, struct aead_request, base);
763 req = container_of(areq, struct aead_request, base);
774 rctx->complete = req->base.complete;
775 req->base.complete = compl;
776 return cryptd_enqueue_request(queue, &req->base);
849 err = cryptd_init_instance(aead_crypto_instance(inst), &alg->base);
853 inst->alg.base.cra_flags |= CRYPTO_ALG_ASYNC |
854 (alg->base.cra_flags & CRYPTO_ALG_INTERNAL);
855 inst->alg.base.cra_ctxsize = sizeof(struct cryptd_aead_ctx);
920 if (tfm->base.__crt_alg->cra_module != THIS_MODULE) {
928 return container_of(tfm, struct cryptd_skcipher, base);
934 struct cryptd_skcipher_ctx *ctx = crypto_skcipher_ctx(&tfm->base);
942 struct cryptd_skcipher_ctx *ctx = crypto_skcipher_ctx(&tfm->base);
950 struct cryptd_skcipher_ctx *ctx = crypto_skcipher_ctx(&tfm->base);
953 crypto_free_skcipher(&tfm->base);
970 if (tfm->base.__crt_alg->cra_module != THIS_MODULE) {
984 struct cryptd_hash_ctx *ctx = crypto_ahash_ctx(&tfm->base);
999 struct cryptd_hash_ctx *ctx = crypto_ahash_ctx(&tfm->base);
1007 struct cryptd_hash_ctx *ctx = crypto_ahash_ctx(&tfm->base);
1010 crypto_free_ahash(&tfm->base);
1027 if (tfm->base.__crt_alg->cra_module != THIS_MODULE) {
1042 ctx = crypto_aead_ctx(&tfm->base);
1049 struct cryptd_aead_ctx *ctx = crypto_aead_ctx(&tfm->base);
1057 struct cryptd_aead_ctx *ctx = crypto_aead_ctx(&tfm->base);
1060 crypto_free_aead(&tfm->base);