Lines Matching defs:rctx
75 struct sun8i_ce_hash_reqctx *rctx = ahash_request_ctx(areq);
79 memset(rctx, 0, sizeof(struct sun8i_ce_hash_reqctx));
81 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm);
82 rctx->fallback_req.base.flags = areq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP;
84 return crypto_ahash_init(&rctx->fallback_req);
89 struct sun8i_ce_hash_reqctx *rctx = ahash_request_ctx(areq);
93 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm);
94 rctx->fallback_req.base.flags = areq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP;
96 return crypto_ahash_export(&rctx->fallback_req, out);
101 struct sun8i_ce_hash_reqctx *rctx = ahash_request_ctx(areq);
105 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm);
106 rctx->fallback_req.base.flags = areq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP;
108 return crypto_ahash_import(&rctx->fallback_req, in);
113 struct sun8i_ce_hash_reqctx *rctx = ahash_request_ctx(areq);
121 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm);
122 rctx->fallback_req.base.flags = areq->base.flags &
124 rctx->fallback_req.result = areq->result;
131 return crypto_ahash_final(&rctx->fallback_req);
136 struct sun8i_ce_hash_reqctx *rctx = ahash_request_ctx(areq);
140 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm);
141 rctx->fallback_req.base.flags = areq->base.flags &
143 rctx->fallback_req.nbytes = areq->nbytes;
144 rctx->fallback_req.src = areq->src;
146 return crypto_ahash_update(&rctx->fallback_req);
151 struct sun8i_ce_hash_reqctx *rctx = ahash_request_ctx(areq);
159 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm);
160 rctx->fallback_req.base.flags = areq->base.flags &
163 rctx->fallback_req.nbytes = areq->nbytes;
164 rctx->fallback_req.src = areq->src;
165 rctx->fallback_req.result = areq->result;
171 return crypto_ahash_finup(&rctx->fallback_req);
176 struct sun8i_ce_hash_reqctx *rctx = ahash_request_ctx(areq);
184 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm);
185 rctx->fallback_req.base.flags = areq->base.flags &
188 rctx->fallback_req.nbytes = areq->nbytes;
189 rctx->fallback_req.src = areq->src;
190 rctx->fallback_req.result = areq->result;
196 return crypto_ahash_digest(&rctx->fallback_req);
221 struct sun8i_ce_hash_reqctx *rctx = ahash_request_ctx(areq);
244 rctx->flow = e;
255 struct sun8i_ce_hash_reqctx *rctx = ahash_request_ctx(areq);
301 flow = rctx->flow;