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