Lines Matching refs:creq

61 	struct mv_cesa_skcipher_req *creq = skcipher_request_ctx(req);  in mv_cesa_skcipher_dma_cleanup()  local
64 dma_unmap_sg(cesa_dev->dev, req->dst, creq->dst_nents, in mv_cesa_skcipher_dma_cleanup()
66 dma_unmap_sg(cesa_dev->dev, req->src, creq->src_nents, in mv_cesa_skcipher_dma_cleanup()
69 dma_unmap_sg(cesa_dev->dev, req->src, creq->src_nents, in mv_cesa_skcipher_dma_cleanup()
72 mv_cesa_dma_cleanup(&creq->base); in mv_cesa_skcipher_dma_cleanup()
77 struct mv_cesa_skcipher_req *creq = skcipher_request_ctx(req); in mv_cesa_skcipher_cleanup() local
79 if (mv_cesa_req_get_type(&creq->base) == CESA_DMA_REQ) in mv_cesa_skcipher_cleanup()
85 struct mv_cesa_skcipher_req *creq = skcipher_request_ctx(req); in mv_cesa_skcipher_std_step() local
86 struct mv_cesa_skcipher_std_req *sreq = &creq->std; in mv_cesa_skcipher_std_step()
87 struct mv_cesa_engine *engine = creq->base.engine; in mv_cesa_skcipher_std_step()
97 len = mv_cesa_sg_copy_to_sram(engine, req->src, creq->src_nents, in mv_cesa_skcipher_std_step()
126 struct mv_cesa_skcipher_req *creq = skcipher_request_ctx(req); in mv_cesa_skcipher_std_process() local
127 struct mv_cesa_skcipher_std_req *sreq = &creq->std; in mv_cesa_skcipher_std_process()
128 struct mv_cesa_engine *engine = creq->base.engine; in mv_cesa_skcipher_std_process()
131 len = mv_cesa_sg_copy_from_sram(engine, req->dst, creq->dst_nents, in mv_cesa_skcipher_std_process()
146 struct mv_cesa_skcipher_req *creq = skcipher_request_ctx(skreq); in mv_cesa_skcipher_process() local
147 struct mv_cesa_req *basereq = &creq->base; in mv_cesa_skcipher_process()
158 struct mv_cesa_skcipher_req *creq = skcipher_request_ctx(skreq); in mv_cesa_skcipher_step() local
160 if (mv_cesa_req_get_type(&creq->base) == CESA_DMA_REQ) in mv_cesa_skcipher_step()
161 mv_cesa_dma_step(&creq->base); in mv_cesa_skcipher_step()
169 struct mv_cesa_skcipher_req *creq = skcipher_request_ctx(req); in mv_cesa_skcipher_dma_prepare() local
170 struct mv_cesa_req *basereq = &creq->base; in mv_cesa_skcipher_dma_prepare()
178 struct mv_cesa_skcipher_req *creq = skcipher_request_ctx(req); in mv_cesa_skcipher_std_prepare() local
179 struct mv_cesa_skcipher_std_req *sreq = &creq->std; in mv_cesa_skcipher_std_prepare()
189 struct mv_cesa_skcipher_req *creq = skcipher_request_ctx(skreq); in mv_cesa_skcipher_prepare() local
191 creq->base.engine = engine; in mv_cesa_skcipher_prepare()
193 if (mv_cesa_req_get_type(&creq->base) == CESA_DMA_REQ) in mv_cesa_skcipher_prepare()
211 struct mv_cesa_skcipher_req *creq = skcipher_request_ctx(skreq); in mv_cesa_skcipher_complete() local
212 struct mv_cesa_engine *engine = creq->base.engine; in mv_cesa_skcipher_complete()
218 if (mv_cesa_req_get_type(&creq->base) == CESA_DMA_REQ) { in mv_cesa_skcipher_complete()
221 basereq = &creq->base; in mv_cesa_skcipher_complete()
315 struct mv_cesa_skcipher_req *creq = skcipher_request_ctx(req); in mv_cesa_skcipher_dma_req_init() local
318 struct mv_cesa_req *basereq = &creq->base; in mv_cesa_skcipher_dma_req_init()
327 ret = dma_map_sg(cesa_dev->dev, req->src, creq->src_nents, in mv_cesa_skcipher_dma_req_init()
332 ret = dma_map_sg(cesa_dev->dev, req->dst, creq->dst_nents, in mv_cesa_skcipher_dma_req_init()
339 ret = dma_map_sg(cesa_dev->dev, req->src, creq->src_nents, in mv_cesa_skcipher_dma_req_init()
396 dma_unmap_sg(cesa_dev->dev, req->dst, creq->dst_nents, in mv_cesa_skcipher_dma_req_init()
400 dma_unmap_sg(cesa_dev->dev, req->src, creq->src_nents, in mv_cesa_skcipher_dma_req_init()
410 struct mv_cesa_skcipher_req *creq = skcipher_request_ctx(req); in mv_cesa_skcipher_std_req_init() local
411 struct mv_cesa_skcipher_std_req *sreq = &creq->std; in mv_cesa_skcipher_std_req_init()
412 struct mv_cesa_req *basereq = &creq->base; in mv_cesa_skcipher_std_req_init()
425 struct mv_cesa_skcipher_req *creq = skcipher_request_ctx(req); in mv_cesa_skcipher_req_init() local
433 creq->src_nents = sg_nents_for_len(req->src, req->cryptlen); in mv_cesa_skcipher_req_init()
434 if (creq->src_nents < 0) { in mv_cesa_skcipher_req_init()
436 return creq->src_nents; in mv_cesa_skcipher_req_init()
438 creq->dst_nents = sg_nents_for_len(req->dst, req->cryptlen); in mv_cesa_skcipher_req_init()
439 if (creq->dst_nents < 0) { in mv_cesa_skcipher_req_init()
441 return creq->dst_nents; in mv_cesa_skcipher_req_init()
459 struct mv_cesa_skcipher_req *creq = skcipher_request_ctx(req); in mv_cesa_skcipher_queue_req() local
469 ret = mv_cesa_queue_req(&req->base, &creq->base); in mv_cesa_skcipher_queue_req()