• Home
  • Raw
  • Download

Lines Matching refs:rctx

46 	struct rk_ahash_rctx *rctx = ahash_request_ctx(areq);  in rk_ahash_digest_fb()  local
54 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in rk_ahash_digest_fb()
55 rctx->fallback_req.base.flags = areq->base.flags & in rk_ahash_digest_fb()
58 rctx->fallback_req.nbytes = areq->nbytes; in rk_ahash_digest_fb()
59 rctx->fallback_req.src = areq->src; in rk_ahash_digest_fb()
60 rctx->fallback_req.result = areq->result; in rk_ahash_digest_fb()
62 return crypto_ahash_digest(&rctx->fallback_req); in rk_ahash_digest_fb()
90 struct rk_ahash_rctx *rctx = ahash_request_ctx(req); in rk_ahash_reg_init() local
110 CRYPTO_WRITE(dev, RK_CRYPTO_HASH_CTRL, rctx->mode | in rk_ahash_reg_init()
122 struct rk_ahash_rctx *rctx = ahash_request_ctx(req); in rk_ahash_init() local
126 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_init()
127 rctx->fallback_req.base.flags = req->base.flags & in rk_ahash_init()
130 return crypto_ahash_init(&rctx->fallback_req); in rk_ahash_init()
135 struct rk_ahash_rctx *rctx = ahash_request_ctx(req); in rk_ahash_update() local
139 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_update()
140 rctx->fallback_req.base.flags = req->base.flags & in rk_ahash_update()
142 rctx->fallback_req.nbytes = req->nbytes; in rk_ahash_update()
143 rctx->fallback_req.src = req->src; in rk_ahash_update()
145 return crypto_ahash_update(&rctx->fallback_req); in rk_ahash_update()
150 struct rk_ahash_rctx *rctx = ahash_request_ctx(req); in rk_ahash_final() local
154 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_final()
155 rctx->fallback_req.base.flags = req->base.flags & in rk_ahash_final()
157 rctx->fallback_req.result = req->result; in rk_ahash_final()
159 return crypto_ahash_final(&rctx->fallback_req); in rk_ahash_final()
164 struct rk_ahash_rctx *rctx = ahash_request_ctx(req); in rk_ahash_finup() local
168 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_finup()
169 rctx->fallback_req.base.flags = req->base.flags & in rk_ahash_finup()
172 rctx->fallback_req.nbytes = req->nbytes; in rk_ahash_finup()
173 rctx->fallback_req.src = req->src; in rk_ahash_finup()
174 rctx->fallback_req.result = req->result; in rk_ahash_finup()
176 return crypto_ahash_finup(&rctx->fallback_req); in rk_ahash_finup()
181 struct rk_ahash_rctx *rctx = ahash_request_ctx(req); in rk_ahash_import() local
185 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_import()
186 rctx->fallback_req.base.flags = req->base.flags & in rk_ahash_import()
189 return crypto_ahash_import(&rctx->fallback_req, in); in rk_ahash_import()
194 struct rk_ahash_rctx *rctx = ahash_request_ctx(req); in rk_ahash_export() local
198 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in rk_ahash_export()
199 rctx->fallback_req.base.flags = req->base.flags & in rk_ahash_export()
202 return crypto_ahash_export(&rctx->fallback_req, out); in rk_ahash_export()
207 struct rk_ahash_rctx *rctx = ahash_request_ctx(req); in rk_ahash_digest() local
219 rctx->dev = dev; in rk_ahash_digest()
236 struct rk_ahash_rctx *rctx = ahash_request_ctx(areq); in rk_hash_prepare() local
237 struct rk_crypto_info *rkc = rctx->dev; in rk_hash_prepare()
244 rctx->nrsg = ret; in rk_hash_prepare()
252 struct rk_ahash_rctx *rctx = ahash_request_ctx(areq); in rk_hash_unprepare() local
253 struct rk_crypto_info *rkc = rctx->dev; in rk_hash_unprepare()
255 dma_unmap_sg(rkc->dev, areq->src, rctx->nrsg, DMA_TO_DEVICE); in rk_hash_unprepare()
262 struct rk_ahash_rctx *rctx = ahash_request_ctx(areq); in rk_hash_run() local
266 struct rk_crypto_info *rkc = rctx->dev; in rk_hash_run()
279 rctx->mode = 0; in rk_hash_run()
286 rctx->mode = RK_CRYPTO_HASH_SHA1; in rk_hash_run()
289 rctx->mode = RK_CRYPTO_HASH_SHA256; in rk_hash_run()
292 rctx->mode = RK_CRYPTO_HASH_MD5; in rk_hash_run()