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()
93 memcpy(engine->sram_pool, &sreq->op, sizeof(sreq->op)); in mv_cesa_skcipher_std_step()
95 memcpy_toio(engine->sram, &sreq->op, sizeof(sreq->op)); in mv_cesa_skcipher_std_step()
99 sreq->offset); in mv_cesa_skcipher_std_step()
101 sreq->size = len; in mv_cesa_skcipher_std_step()
102 mv_cesa_set_crypt_op_len(&sreq->op, len); in mv_cesa_skcipher_std_step()
105 if (!sreq->skip_ctx) { in mv_cesa_skcipher_std_step()
107 memcpy(engine->sram_pool, &sreq->op, sizeof(sreq->op)); in mv_cesa_skcipher_std_step()
109 memcpy_toio(engine->sram, &sreq->op, sizeof(sreq->op)); in mv_cesa_skcipher_std_step()
110 sreq->skip_ctx = true; in mv_cesa_skcipher_std_step()
112 memcpy(engine->sram_pool, &sreq->op, sizeof(sreq->op.desc)); in mv_cesa_skcipher_std_step()
114 memcpy_toio(engine->sram, &sreq->op, sizeof(sreq->op.desc)); in mv_cesa_skcipher_std_step()
127 struct mv_cesa_skcipher_std_req *sreq = &creq->std; in mv_cesa_skcipher_std_process() local
132 CESA_SA_DATA_SRAM_OFFSET, sreq->size, in mv_cesa_skcipher_std_process()
133 sreq->offset); in mv_cesa_skcipher_std_process()
135 sreq->offset += len; in mv_cesa_skcipher_std_process()
136 if (sreq->offset < req->cryptlen) in mv_cesa_skcipher_std_process()
179 struct mv_cesa_skcipher_std_req *sreq = &creq->std; in mv_cesa_skcipher_std_prepare() local
181 sreq->size = 0; in mv_cesa_skcipher_std_prepare()
182 sreq->offset = 0; in mv_cesa_skcipher_std_prepare()
411 struct mv_cesa_skcipher_std_req *sreq = &creq->std; in mv_cesa_skcipher_std_req_init() local
414 sreq->op = *op_templ; in mv_cesa_skcipher_std_req_init()
415 sreq->skip_ctx = false; in mv_cesa_skcipher_std_req_init()