Lines Matching refs:sreq

86 	struct mv_cesa_skcipher_std_req *sreq = &creq->std;  in mv_cesa_skcipher_std_step()  local
88 size_t len = min_t(size_t, req->cryptlen - sreq->offset, in mv_cesa_skcipher_std_step()
91 mv_cesa_adjust_op(engine, &sreq->op); in mv_cesa_skcipher_std_step()
92 memcpy_toio(engine->sram, &sreq->op, sizeof(sreq->op)); in mv_cesa_skcipher_std_step()
96 len, sreq->offset); in mv_cesa_skcipher_std_step()
98 sreq->size = len; in mv_cesa_skcipher_std_step()
99 mv_cesa_set_crypt_op_len(&sreq->op, len); in mv_cesa_skcipher_std_step()
102 if (!sreq->skip_ctx) { in mv_cesa_skcipher_std_step()
103 memcpy_toio(engine->sram, &sreq->op, sizeof(sreq->op)); in mv_cesa_skcipher_std_step()
104 sreq->skip_ctx = true; in mv_cesa_skcipher_std_step()
106 memcpy_toio(engine->sram, &sreq->op, sizeof(sreq->op.desc)); in mv_cesa_skcipher_std_step()
120 struct mv_cesa_skcipher_std_req *sreq = &creq->std; in mv_cesa_skcipher_std_process() local
126 sreq->size, sreq->offset); in mv_cesa_skcipher_std_process()
128 sreq->offset += len; in mv_cesa_skcipher_std_process()
129 if (sreq->offset < req->cryptlen) in mv_cesa_skcipher_std_process()
172 struct mv_cesa_skcipher_std_req *sreq = &creq->std; in mv_cesa_skcipher_std_prepare() local
174 sreq->size = 0; in mv_cesa_skcipher_std_prepare()
175 sreq->offset = 0; in mv_cesa_skcipher_std_prepare()
401 struct mv_cesa_skcipher_std_req *sreq = &creq->std; in mv_cesa_skcipher_std_req_init() local
404 sreq->op = *op_templ; in mv_cesa_skcipher_std_req_init()
405 sreq->skip_ctx = false; in mv_cesa_skcipher_std_req_init()