Lines Matching refs:nkreq
93 static int alloc_src_sglist(struct nitrox_kcrypt_request *nkreq,
106 ret = alloc_src_req_buf(nkreq, nents, ivsize);
110 nitrox_creq_copy_iv(nkreq->src, iv, ivsize);
111 nitrox_creq_set_src_sg(nkreq, nents, ivsize, src, buflen);
116 static int alloc_dst_sglist(struct nitrox_kcrypt_request *nkreq,
130 ret = alloc_dst_req_buf(nkreq, nents);
134 nitrox_creq_set_orh(nkreq);
135 nitrox_creq_set_comp(nkreq);
136 nitrox_creq_set_dst_sg(nkreq, nents, ivsize, dst, buflen);
141 static void free_src_sglist(struct nitrox_kcrypt_request *nkreq)
143 kfree(nkreq->src);
146 static void free_dst_sglist(struct nitrox_kcrypt_request *nkreq)
148 kfree(nkreq->dst);
153 struct se_crypto_request *creq = &rctx->nkreq.creq;
175 ret = alloc_src_sglist(&rctx->nkreq, rctx->src, rctx->iv, rctx->ivsize,
180 ret = alloc_dst_sglist(&rctx->nkreq, rctx->dst, rctx->ivsize,
183 free_src_sglist(&rctx->nkreq);
195 free_src_sglist(&rctx->nkreq);
196 free_dst_sglist(&rctx->nkreq);
218 struct se_crypto_request *creq = &rctx->nkreq.creq;
252 struct se_crypto_request *creq = &rctx->nkreq.creq;
428 struct nitrox_kcrypt_request *nkreq = &rctx->base.nkreq;
430 free_src_sglist(nkreq);
431 free_dst_sglist(nkreq);
446 struct se_crypto_request *creq = &aead_rctx->nkreq.creq;
478 struct se_crypto_request *creq = &aead_rctx->nkreq.creq;