Lines Matching refs:rctx

74 	struct sun8i_ce_hash_reqctx *rctx = ahash_request_ctx(areq);  in sun8i_ce_hash_init()  local
78 memset(rctx, 0, sizeof(struct sun8i_ce_hash_reqctx)); in sun8i_ce_hash_init()
80 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_init()
81 rctx->fallback_req.base.flags = areq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in sun8i_ce_hash_init()
83 return crypto_ahash_init(&rctx->fallback_req); in sun8i_ce_hash_init()
88 struct sun8i_ce_hash_reqctx *rctx = ahash_request_ctx(areq); in sun8i_ce_hash_export() local
92 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_export()
93 rctx->fallback_req.base.flags = areq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in sun8i_ce_hash_export()
95 return crypto_ahash_export(&rctx->fallback_req, out); in sun8i_ce_hash_export()
100 struct sun8i_ce_hash_reqctx *rctx = ahash_request_ctx(areq); in sun8i_ce_hash_import() local
104 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_import()
105 rctx->fallback_req.base.flags = areq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in sun8i_ce_hash_import()
107 return crypto_ahash_import(&rctx->fallback_req, in); in sun8i_ce_hash_import()
112 struct sun8i_ce_hash_reqctx *rctx = ahash_request_ctx(areq); in sun8i_ce_hash_final() local
116 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_final()
117 rctx->fallback_req.base.flags = areq->base.flags & in sun8i_ce_hash_final()
119 rctx->fallback_req.result = areq->result; in sun8i_ce_hash_final()
132 return crypto_ahash_final(&rctx->fallback_req); in sun8i_ce_hash_final()
137 struct sun8i_ce_hash_reqctx *rctx = ahash_request_ctx(areq); in sun8i_ce_hash_update() local
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()
152 struct sun8i_ce_hash_reqctx *rctx = ahash_request_ctx(areq); in sun8i_ce_hash_finup() local
156 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_finup()
157 rctx->fallback_req.base.flags = areq->base.flags & in sun8i_ce_hash_finup()
160 rctx->fallback_req.nbytes = areq->nbytes; in sun8i_ce_hash_finup()
161 rctx->fallback_req.src = areq->src; in sun8i_ce_hash_finup()
162 rctx->fallback_req.result = areq->result; in sun8i_ce_hash_finup()
175 return crypto_ahash_finup(&rctx->fallback_req); in sun8i_ce_hash_finup()
180 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()
203 return crypto_ahash_digest(&rctx->fallback_req); in sun8i_ce_hash_digest_fb()
243 struct sun8i_ce_hash_reqctx *rctx = ahash_request_ctx(areq); in sun8i_ce_hash_digest() local
266 rctx->flow = e; in sun8i_ce_hash_digest()
335 struct sun8i_ce_hash_reqctx *rctx = ahash_request_ctx(areq); in sun8i_ce_hash_run() local
378 flow = rctx->flow; in sun8i_ce_hash_run()