Lines Matching refs:creq
172 struct se_crypto_request *creq; in nitrox_skcipher_crypt() local
174 creq = &nkreq->creq; in nitrox_skcipher_crypt()
175 creq->flags = skreq->base.flags; in nitrox_skcipher_crypt()
176 creq->gfp = (skreq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP) ? in nitrox_skcipher_crypt()
180 creq->ctrl.value = 0; in nitrox_skcipher_crypt()
181 creq->opcode = FLEXI_CRYPTO_ENCRYPT_HMAC; in nitrox_skcipher_crypt()
182 creq->ctrl.s.arg = (enc ? ENCRYPT : DECRYPT); in nitrox_skcipher_crypt()
184 creq->gph.param0 = cpu_to_be16(skreq->cryptlen); in nitrox_skcipher_crypt()
185 creq->gph.param1 = 0; in nitrox_skcipher_crypt()
187 creq->gph.param2 = cpu_to_be16(ivsize); in nitrox_skcipher_crypt()
188 creq->gph.param3 = 0; in nitrox_skcipher_crypt()
190 creq->ctx_handle = nctx->u.ctx_handle; in nitrox_skcipher_crypt()
191 creq->ctrl.s.ctxl = sizeof(struct flexi_crypto_context); in nitrox_skcipher_crypt()
194 memcpy(creq->iv, skreq->iv, ivsize); in nitrox_skcipher_crypt()
195 creq->ivsize = ivsize; in nitrox_skcipher_crypt()
196 creq->src = skreq->src; in nitrox_skcipher_crypt()
197 creq->dst = skreq->dst; in nitrox_skcipher_crypt()
203 return nitrox_process_se_request(nctx->ndev, creq, in nitrox_skcipher_crypt()