Lines Matching refs:fallback_req

81 	ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm);  in sun8i_ce_hash_init()
82 rctx->fallback_req.base.flags = areq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in sun8i_ce_hash_init()
84 return crypto_ahash_init(&rctx->fallback_req); in sun8i_ce_hash_init()
93 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_export()
94 rctx->fallback_req.base.flags = areq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in sun8i_ce_hash_export()
96 return crypto_ahash_export(&rctx->fallback_req, out); in sun8i_ce_hash_export()
105 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_import()
106 rctx->fallback_req.base.flags = areq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in sun8i_ce_hash_import()
108 return crypto_ahash_import(&rctx->fallback_req, in); in sun8i_ce_hash_import()
121 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_final()
122 rctx->fallback_req.base.flags = areq->base.flags & in sun8i_ce_hash_final()
124 rctx->fallback_req.result = areq->result; in sun8i_ce_hash_final()
131 return crypto_ahash_final(&rctx->fallback_req); in sun8i_ce_hash_final()
140 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_update()
141 rctx->fallback_req.base.flags = areq->base.flags & in sun8i_ce_hash_update()
143 rctx->fallback_req.nbytes = areq->nbytes; in sun8i_ce_hash_update()
144 rctx->fallback_req.src = areq->src; in sun8i_ce_hash_update()
146 return crypto_ahash_update(&rctx->fallback_req); in sun8i_ce_hash_update()
159 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_finup()
160 rctx->fallback_req.base.flags = areq->base.flags & in sun8i_ce_hash_finup()
163 rctx->fallback_req.nbytes = areq->nbytes; in sun8i_ce_hash_finup()
164 rctx->fallback_req.src = areq->src; in sun8i_ce_hash_finup()
165 rctx->fallback_req.result = areq->result; in sun8i_ce_hash_finup()
171 return crypto_ahash_finup(&rctx->fallback_req); in sun8i_ce_hash_finup()
184 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_digest_fb()
185 rctx->fallback_req.base.flags = areq->base.flags & in sun8i_ce_hash_digest_fb()
188 rctx->fallback_req.nbytes = areq->nbytes; in sun8i_ce_hash_digest_fb()
189 rctx->fallback_req.src = areq->src; in sun8i_ce_hash_digest_fb()
190 rctx->fallback_req.result = areq->result; in sun8i_ce_hash_digest_fb()
196 return crypto_ahash_digest(&rctx->fallback_req); in sun8i_ce_hash_digest_fb()