Lines Matching refs:nkreq
94 static int alloc_src_sglist(struct nitrox_kcrypt_request *nkreq,
107 ret = alloc_src_req_buf(nkreq, nents, ivsize);
111 nitrox_creq_copy_iv(nkreq->src, iv, ivsize);
112 nitrox_creq_set_src_sg(nkreq, nents, ivsize, src, buflen);
117 static int alloc_dst_sglist(struct nitrox_kcrypt_request *nkreq,
131 ret = alloc_dst_req_buf(nkreq, nents);
135 nitrox_creq_set_orh(nkreq);
136 nitrox_creq_set_comp(nkreq);
137 nitrox_creq_set_dst_sg(nkreq, nents, ivsize, dst, buflen);
142 static void free_src_sglist(struct nitrox_kcrypt_request *nkreq)
144 kfree(nkreq->src);
147 static void free_dst_sglist(struct nitrox_kcrypt_request *nkreq)
149 kfree(nkreq->dst);
154 struct se_crypto_request *creq = &rctx->nkreq.creq;
176 ret = alloc_src_sglist(&rctx->nkreq, rctx->src, rctx->iv, rctx->ivsize,
181 ret = alloc_dst_sglist(&rctx->nkreq, rctx->dst, rctx->ivsize,
184 free_src_sglist(&rctx->nkreq);
196 free_src_sglist(&rctx->nkreq);
197 free_dst_sglist(&rctx->nkreq);
219 struct se_crypto_request *creq = &rctx->nkreq.creq;
253 struct se_crypto_request *creq = &rctx->nkreq.creq;
429 struct nitrox_kcrypt_request *nkreq = &rctx->base.nkreq;
431 free_src_sglist(nkreq);
432 free_dst_sglist(nkreq);
447 struct se_crypto_request *creq = &aead_rctx->nkreq.creq;
479 struct se_crypto_request *creq = &aead_rctx->nkreq.creq;