Lines Matching refs:fallback_req
82 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_init()
83 rctx->fallback_req.base.flags = areq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in sun8i_ce_hash_init()
85 return crypto_ahash_init(&rctx->fallback_req); in sun8i_ce_hash_init()
94 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_export()
95 rctx->fallback_req.base.flags = areq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in sun8i_ce_hash_export()
97 return crypto_ahash_export(&rctx->fallback_req, out); in sun8i_ce_hash_export()
106 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_import()
107 rctx->fallback_req.base.flags = areq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in sun8i_ce_hash_import()
109 return crypto_ahash_import(&rctx->fallback_req, in); in sun8i_ce_hash_import()
122 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_final()
123 rctx->fallback_req.base.flags = areq->base.flags & in sun8i_ce_hash_final()
125 rctx->fallback_req.result = areq->result; in sun8i_ce_hash_final()
132 return crypto_ahash_final(&rctx->fallback_req); in sun8i_ce_hash_final()
141 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_update()
142 rctx->fallback_req.base.flags = areq->base.flags & in sun8i_ce_hash_update()
144 rctx->fallback_req.nbytes = areq->nbytes; in sun8i_ce_hash_update()
145 rctx->fallback_req.src = areq->src; in sun8i_ce_hash_update()
147 return crypto_ahash_update(&rctx->fallback_req); in sun8i_ce_hash_update()
160 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_finup()
161 rctx->fallback_req.base.flags = areq->base.flags & in sun8i_ce_hash_finup()
164 rctx->fallback_req.nbytes = areq->nbytes; in sun8i_ce_hash_finup()
165 rctx->fallback_req.src = areq->src; in sun8i_ce_hash_finup()
166 rctx->fallback_req.result = areq->result; in sun8i_ce_hash_finup()
172 return crypto_ahash_finup(&rctx->fallback_req); in sun8i_ce_hash_finup()
185 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_digest_fb()
186 rctx->fallback_req.base.flags = areq->base.flags & in sun8i_ce_hash_digest_fb()
189 rctx->fallback_req.nbytes = areq->nbytes; in sun8i_ce_hash_digest_fb()
190 rctx->fallback_req.src = areq->src; in sun8i_ce_hash_digest_fb()
191 rctx->fallback_req.result = areq->result; in sun8i_ce_hash_digest_fb()
197 return crypto_ahash_digest(&rctx->fallback_req); in sun8i_ce_hash_digest_fb()