Home
last modified time | relevance | path

Searched refs:rkc (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/crypto/rockchip/
H A Drk3288_crypto_skcipher.c94 struct rk_crypto_info *rkc; in rk_cipher_handle_req() local
100 rkc = get_rk_crypto(); in rk_cipher_handle_req()
102 engine = rkc->engine; in rk_cipher_handle_req()
103 rctx->dev = rkc; in rk_cipher_handle_req()
315 struct rk_crypto_info *rkc = rctx->dev; in rk_cipher_run() local
317 err = pm_runtime_resume_and_get(rkc->dev); in rk_cipher_run()
322 rkc->nreq++; in rk_cipher_run()
348 err = dma_map_sg(rkc->dev, sgs, 1, DMA_BIDIRECTIONAL); in rk_cipher_run()
354 err = dma_map_sg(rkc->dev, sgs, 1, DMA_TO_DEVICE); in rk_cipher_run()
359 err = dma_map_sg(rkc->dev, sgd, 1, DMA_FROM_DEVICE); in rk_cipher_run()
[all …]
H A Drk3288_crypto_ahash.c237 struct rk_crypto_info *rkc = rctx->dev; in rk_hash_prepare() local
240 ret = dma_map_sg(rkc->dev, areq->src, sg_nents(areq->src), DMA_TO_DEVICE); in rk_hash_prepare()
253 struct rk_crypto_info *rkc = rctx->dev; in rk_hash_unprepare() local
255 dma_unmap_sg(rkc->dev, areq->src, rctx->nrsg, DMA_TO_DEVICE); in rk_hash_unprepare()
266 struct rk_crypto_info *rkc = rctx->dev; in rk_hash_run() local
271 err = pm_runtime_resume_and_get(rkc->dev); in rk_hash_run()
282 rkc->nreq++; in rk_hash_run()
299 rk_ahash_reg_init(areq, rkc); in rk_hash_run()
302 reinit_completion(&rkc->complete); in rk_hash_run()
303 rkc->status = 0; in rk_hash_run()
[all …]