Lines Matching refs:nkreq

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