Lines Matching refs:sreq
87 struct mv_cesa_ablkcipher_std_req *sreq = &creq->req.std; in mv_cesa_ablkcipher_std_step() local
88 struct mv_cesa_engine *engine = sreq->base.engine; in mv_cesa_ablkcipher_std_step()
89 size_t len = min_t(size_t, req->nbytes - sreq->offset, in mv_cesa_ablkcipher_std_step()
94 len, sreq->offset); in mv_cesa_ablkcipher_std_step()
96 sreq->size = len; in mv_cesa_ablkcipher_std_step()
97 mv_cesa_set_crypt_op_len(&sreq->op, len); in mv_cesa_ablkcipher_std_step()
100 if (!sreq->skip_ctx) { in mv_cesa_ablkcipher_std_step()
101 memcpy_toio(engine->sram, &sreq->op, sizeof(sreq->op)); in mv_cesa_ablkcipher_std_step()
102 sreq->skip_ctx = true; in mv_cesa_ablkcipher_std_step()
104 memcpy_toio(engine->sram, &sreq->op, sizeof(sreq->op.desc)); in mv_cesa_ablkcipher_std_step()
116 struct mv_cesa_ablkcipher_std_req *sreq = &creq->req.std; in mv_cesa_ablkcipher_std_process() local
117 struct mv_cesa_engine *engine = sreq->base.engine; in mv_cesa_ablkcipher_std_process()
122 sreq->size, sreq->offset); in mv_cesa_ablkcipher_std_process()
124 sreq->offset += len; in mv_cesa_ablkcipher_std_process()
125 if (sreq->offset < req->nbytes) in mv_cesa_ablkcipher_std_process()
136 struct mv_cesa_ablkcipher_std_req *sreq = &creq->req.std; in mv_cesa_ablkcipher_process() local
137 struct mv_cesa_engine *engine = sreq->base.engine; in mv_cesa_ablkcipher_process()
179 struct mv_cesa_ablkcipher_std_req *sreq = &creq->req.std; in mv_cesa_ablkcipher_std_prepare() local
180 struct mv_cesa_engine *engine = sreq->base.engine; in mv_cesa_ablkcipher_std_prepare()
182 sreq->size = 0; in mv_cesa_ablkcipher_std_prepare()
183 sreq->offset = 0; in mv_cesa_ablkcipher_std_prepare()
184 mv_cesa_adjust_op(engine, &sreq->op); in mv_cesa_ablkcipher_std_prepare()
185 memcpy_toio(engine->sram, &sreq->op, sizeof(sreq->op)); in mv_cesa_ablkcipher_std_prepare()
383 struct mv_cesa_ablkcipher_std_req *sreq = &creq->req.std; in mv_cesa_ablkcipher_std_req_init() local
385 sreq->base.type = CESA_STD_REQ; in mv_cesa_ablkcipher_std_req_init()
386 sreq->op = *op_templ; in mv_cesa_ablkcipher_std_req_init()
387 sreq->skip_ctx = false; in mv_cesa_ablkcipher_std_req_init()