Lines Matching defs:areq
27 static int aspeed_crypto_do_fallback(struct skcipher_request *areq)
29 struct aspeed_cipher_reqctx *rctx = skcipher_request_ctx(areq);
30 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq);
35 skcipher_request_set_callback(&rctx->fallback_req, areq->base.flags,
36 areq->base.complete, areq->base.data);
37 skcipher_request_set_crypt(&rctx->fallback_req, areq->src, areq->dst,
38 areq->cryptlen, areq->iv);
48 static bool aspeed_crypto_need_fallback(struct skcipher_request *areq)
50 struct aspeed_cipher_reqctx *rctx = skcipher_request_ctx(areq);
52 if (areq->cryptlen == 0)
56 !IS_ALIGNED(areq->cryptlen, DES_BLOCK_SIZE))
60 !IS_ALIGNED(areq->cryptlen, AES_BLOCK_SIZE))
79 static int aspeed_crypto_do_request(struct crypto_engine *engine, void *areq)
81 struct skcipher_request *req = skcipher_request_cast(areq);