Lines Matching refs:rctx

75 	struct sun8i_ce_hash_reqctx *rctx = ahash_request_ctx(areq);  in sun8i_ce_hash_init()  local
79 memset(rctx, 0, sizeof(struct sun8i_ce_hash_reqctx)); in sun8i_ce_hash_init()
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()
89 struct sun8i_ce_hash_reqctx *rctx = ahash_request_ctx(areq); in sun8i_ce_hash_export() local
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()
101 struct sun8i_ce_hash_reqctx *rctx = ahash_request_ctx(areq); in sun8i_ce_hash_import() local
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()
113 struct sun8i_ce_hash_reqctx *rctx = ahash_request_ctx(areq); in sun8i_ce_hash_final() local
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()
136 struct sun8i_ce_hash_reqctx *rctx = ahash_request_ctx(areq); in sun8i_ce_hash_update() local
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()
151 struct sun8i_ce_hash_reqctx *rctx = ahash_request_ctx(areq); in sun8i_ce_hash_finup() local
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()
176 struct sun8i_ce_hash_reqctx *rctx = ahash_request_ctx(areq); in sun8i_ce_hash_digest_fb() local
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()
221 struct sun8i_ce_hash_reqctx *rctx = ahash_request_ctx(areq); in sun8i_ce_hash_digest() local
244 rctx->flow = e; in sun8i_ce_hash_digest()
255 struct sun8i_ce_hash_reqctx *rctx = ahash_request_ctx(areq); in sun8i_ce_hash_run() local
301 flow = rctx->flow; in sun8i_ce_hash_run()