Lines Matching refs:sreq
89 struct mv_cesa_skcipher_std_req *sreq = &creq->std; in mv_cesa_skcipher_std_step() local
91 size_t len = min_t(size_t, req->cryptlen - sreq->offset, in mv_cesa_skcipher_std_step()
94 mv_cesa_adjust_op(engine, &sreq->op); in mv_cesa_skcipher_std_step()
96 memcpy(engine->sram_pool, &sreq->op, sizeof(sreq->op)); in mv_cesa_skcipher_std_step()
98 memcpy_toio(engine->sram, &sreq->op, sizeof(sreq->op)); in mv_cesa_skcipher_std_step()
102 sreq->offset); in mv_cesa_skcipher_std_step()
104 sreq->size = len; in mv_cesa_skcipher_std_step()
105 mv_cesa_set_crypt_op_len(&sreq->op, len); in mv_cesa_skcipher_std_step()
108 if (!sreq->skip_ctx) { in mv_cesa_skcipher_std_step()
110 memcpy(engine->sram_pool, &sreq->op, sizeof(sreq->op)); in mv_cesa_skcipher_std_step()
112 memcpy_toio(engine->sram, &sreq->op, sizeof(sreq->op)); in mv_cesa_skcipher_std_step()
113 sreq->skip_ctx = true; in mv_cesa_skcipher_std_step()
115 memcpy(engine->sram_pool, &sreq->op, sizeof(sreq->op.desc)); in mv_cesa_skcipher_std_step()
117 memcpy_toio(engine->sram, &sreq->op, sizeof(sreq->op.desc)); in mv_cesa_skcipher_std_step()
130 struct mv_cesa_skcipher_std_req *sreq = &creq->std; in mv_cesa_skcipher_std_process() local
135 CESA_SA_DATA_SRAM_OFFSET, sreq->size, in mv_cesa_skcipher_std_process()
136 sreq->offset); in mv_cesa_skcipher_std_process()
138 sreq->offset += len; in mv_cesa_skcipher_std_process()
139 if (sreq->offset < req->cryptlen) in mv_cesa_skcipher_std_process()
182 struct mv_cesa_skcipher_std_req *sreq = &creq->std; in mv_cesa_skcipher_std_prepare() local
184 sreq->size = 0; in mv_cesa_skcipher_std_prepare()
185 sreq->offset = 0; in mv_cesa_skcipher_std_prepare()
413 struct mv_cesa_skcipher_std_req *sreq = &creq->std; in mv_cesa_skcipher_std_req_init() local
416 sreq->op = *op_templ; in mv_cesa_skcipher_std_req_init()
417 sreq->skip_ctx = false; in mv_cesa_skcipher_std_req_init()