nkreq              77 drivers/crypto/cavium/nitrox/nitrox_aead.c static int alloc_src_sglist(struct nitrox_kcrypt_request *nkreq,
nkreq              90 drivers/crypto/cavium/nitrox/nitrox_aead.c 	ret = alloc_src_req_buf(nkreq, nents, ivsize);
nkreq              94 drivers/crypto/cavium/nitrox/nitrox_aead.c 	nitrox_creq_copy_iv(nkreq->src, iv, ivsize);
nkreq              95 drivers/crypto/cavium/nitrox/nitrox_aead.c 	nitrox_creq_set_src_sg(nkreq, nents, ivsize, src, buflen);
nkreq             100 drivers/crypto/cavium/nitrox/nitrox_aead.c static int alloc_dst_sglist(struct nitrox_kcrypt_request *nkreq,
nkreq             114 drivers/crypto/cavium/nitrox/nitrox_aead.c 	ret = alloc_dst_req_buf(nkreq, nents);
nkreq             118 drivers/crypto/cavium/nitrox/nitrox_aead.c 	nitrox_creq_set_orh(nkreq);
nkreq             119 drivers/crypto/cavium/nitrox/nitrox_aead.c 	nitrox_creq_set_comp(nkreq);
nkreq             120 drivers/crypto/cavium/nitrox/nitrox_aead.c 	nitrox_creq_set_dst_sg(nkreq, nents, ivsize, dst, buflen);
nkreq             125 drivers/crypto/cavium/nitrox/nitrox_aead.c static void free_src_sglist(struct nitrox_kcrypt_request *nkreq)
nkreq             127 drivers/crypto/cavium/nitrox/nitrox_aead.c 	kfree(nkreq->src);
nkreq             130 drivers/crypto/cavium/nitrox/nitrox_aead.c static void free_dst_sglist(struct nitrox_kcrypt_request *nkreq)
nkreq             132 drivers/crypto/cavium/nitrox/nitrox_aead.c 	kfree(nkreq->dst);
nkreq             137 drivers/crypto/cavium/nitrox/nitrox_aead.c 	struct se_crypto_request *creq = &rctx->nkreq.creq;
nkreq             159 drivers/crypto/cavium/nitrox/nitrox_aead.c 	ret = alloc_src_sglist(&rctx->nkreq, rctx->src, rctx->iv, rctx->ivsize,
nkreq             164 drivers/crypto/cavium/nitrox/nitrox_aead.c 	ret = alloc_dst_sglist(&rctx->nkreq, rctx->dst, rctx->ivsize,
nkreq             167 drivers/crypto/cavium/nitrox/nitrox_aead.c 		free_src_sglist(&rctx->nkreq);
nkreq             179 drivers/crypto/cavium/nitrox/nitrox_aead.c 	free_src_sglist(&rctx->nkreq);
nkreq             180 drivers/crypto/cavium/nitrox/nitrox_aead.c 	free_dst_sglist(&rctx->nkreq);
nkreq             194 drivers/crypto/cavium/nitrox/nitrox_aead.c 	struct se_crypto_request *creq = &rctx->nkreq.creq;
nkreq             225 drivers/crypto/cavium/nitrox/nitrox_aead.c 	struct se_crypto_request *creq = &rctx->nkreq.creq;
nkreq             398 drivers/crypto/cavium/nitrox/nitrox_aead.c 	struct nitrox_kcrypt_request *nkreq = &rctx->base.nkreq;
nkreq             400 drivers/crypto/cavium/nitrox/nitrox_aead.c 	free_src_sglist(nkreq);
nkreq             401 drivers/crypto/cavium/nitrox/nitrox_aead.c 	free_dst_sglist(nkreq);
nkreq             416 drivers/crypto/cavium/nitrox/nitrox_aead.c 	struct se_crypto_request *creq = &aead_rctx->nkreq.creq;
nkreq             448 drivers/crypto/cavium/nitrox/nitrox_aead.c 	struct se_crypto_request *creq = &aead_rctx->nkreq.creq;
nkreq             230 drivers/crypto/cavium/nitrox/nitrox_req.h 	struct nitrox_kcrypt_request nkreq;
nkreq             612 drivers/crypto/cavium/nitrox/nitrox_req.h static inline int alloc_src_req_buf(struct nitrox_kcrypt_request *nkreq,
nkreq             615 drivers/crypto/cavium/nitrox/nitrox_req.h 	struct se_crypto_request *creq = &nkreq->creq;
nkreq             617 drivers/crypto/cavium/nitrox/nitrox_req.h 	nkreq->src = alloc_req_buf(nents, ivsize, creq->gfp);
nkreq             618 drivers/crypto/cavium/nitrox/nitrox_req.h 	if (!nkreq->src)
nkreq             634 drivers/crypto/cavium/nitrox/nitrox_req.h static inline void nitrox_creq_set_src_sg(struct nitrox_kcrypt_request *nkreq,
nkreq             638 drivers/crypto/cavium/nitrox/nitrox_req.h 	char *iv = nkreq->src;
nkreq             640 drivers/crypto/cavium/nitrox/nitrox_req.h 	struct se_crypto_request *creq = &nkreq->creq;
nkreq             658 drivers/crypto/cavium/nitrox/nitrox_req.h static inline int alloc_dst_req_buf(struct nitrox_kcrypt_request *nkreq,
nkreq             662 drivers/crypto/cavium/nitrox/nitrox_req.h 	struct se_crypto_request *creq = &nkreq->creq;
nkreq             664 drivers/crypto/cavium/nitrox/nitrox_req.h 	nkreq->dst = alloc_req_buf(nents, extralen, creq->gfp);
nkreq             665 drivers/crypto/cavium/nitrox/nitrox_req.h 	if (!nkreq->dst)
nkreq             671 drivers/crypto/cavium/nitrox/nitrox_req.h static inline void nitrox_creq_set_orh(struct nitrox_kcrypt_request *nkreq)
nkreq             673 drivers/crypto/cavium/nitrox/nitrox_req.h 	struct se_crypto_request *creq = &nkreq->creq;
nkreq             675 drivers/crypto/cavium/nitrox/nitrox_req.h 	creq->orh = (u64 *)(nkreq->dst);
nkreq             679 drivers/crypto/cavium/nitrox/nitrox_req.h static inline void nitrox_creq_set_comp(struct nitrox_kcrypt_request *nkreq)
nkreq             681 drivers/crypto/cavium/nitrox/nitrox_req.h 	struct se_crypto_request *creq = &nkreq->creq;
nkreq             683 drivers/crypto/cavium/nitrox/nitrox_req.h 	creq->comp = (u64 *)(nkreq->dst + ORH_HLEN);
nkreq             692 drivers/crypto/cavium/nitrox/nitrox_req.h static inline void nitrox_creq_set_dst_sg(struct nitrox_kcrypt_request *nkreq,
nkreq             696 drivers/crypto/cavium/nitrox/nitrox_req.h 	struct se_crypto_request *creq = &nkreq->creq;
nkreq             698 drivers/crypto/cavium/nitrox/nitrox_req.h 	char *iv = nkreq->src;
nkreq             700 drivers/crypto/cavium/nitrox/nitrox_req.h 	creq->dst = nitrox_creq_dst_sg(nkreq->dst);
nkreq             139 drivers/crypto/cavium/nitrox/nitrox_skcipher.c 	struct nitrox_kcrypt_request *nkreq = skcipher_request_ctx(skreq);
nkreq             144 drivers/crypto/cavium/nitrox/nitrox_skcipher.c 	ret = alloc_src_req_buf(nkreq, nents, ivsize);
nkreq             148 drivers/crypto/cavium/nitrox/nitrox_skcipher.c 	nitrox_creq_copy_iv(nkreq->src, skreq->iv, ivsize);
nkreq             149 drivers/crypto/cavium/nitrox/nitrox_skcipher.c 	nitrox_creq_set_src_sg(nkreq, nents, ivsize, skreq->src,
nkreq             157 drivers/crypto/cavium/nitrox/nitrox_skcipher.c 	struct nitrox_kcrypt_request *nkreq = skcipher_request_ctx(skreq);
nkreq             164 drivers/crypto/cavium/nitrox/nitrox_skcipher.c 	ret = alloc_dst_req_buf(nkreq, nents);
nkreq             168 drivers/crypto/cavium/nitrox/nitrox_skcipher.c 	nitrox_creq_set_orh(nkreq);
nkreq             169 drivers/crypto/cavium/nitrox/nitrox_skcipher.c 	nitrox_creq_set_comp(nkreq);
nkreq             170 drivers/crypto/cavium/nitrox/nitrox_skcipher.c 	nitrox_creq_set_dst_sg(nkreq, nents, ivsize, skreq->dst,
nkreq             178 drivers/crypto/cavium/nitrox/nitrox_skcipher.c 	struct nitrox_kcrypt_request *nkreq = skcipher_request_ctx(skreq);
nkreq             180 drivers/crypto/cavium/nitrox/nitrox_skcipher.c 	kfree(nkreq->src);
nkreq             185 drivers/crypto/cavium/nitrox/nitrox_skcipher.c 	struct nitrox_kcrypt_request *nkreq = skcipher_request_ctx(skreq);
nkreq             187 drivers/crypto/cavium/nitrox/nitrox_skcipher.c 	kfree(nkreq->dst);
nkreq             208 drivers/crypto/cavium/nitrox/nitrox_skcipher.c 	struct nitrox_kcrypt_request *nkreq = skcipher_request_ctx(skreq);
nkreq             213 drivers/crypto/cavium/nitrox/nitrox_skcipher.c 	creq = &nkreq->creq;