Lines Matching refs:nkreq
221 * @nkreq: Base request context
235 struct nitrox_kcrypt_request nkreq;
620 static inline int alloc_src_req_buf(struct nitrox_kcrypt_request *nkreq,
623 struct se_crypto_request *creq = &nkreq->creq;
625 nkreq->src = alloc_req_buf(nents, ivsize, creq->gfp);
626 if (!nkreq->src)
642 static inline void nitrox_creq_set_src_sg(struct nitrox_kcrypt_request *nkreq,
646 char *iv = nkreq->src;
648 struct se_crypto_request *creq = &nkreq->creq;
666 static inline int alloc_dst_req_buf(struct nitrox_kcrypt_request *nkreq,
670 struct se_crypto_request *creq = &nkreq->creq;
672 nkreq->dst = alloc_req_buf(nents, extralen, creq->gfp);
673 if (!nkreq->dst)
679 static inline void nitrox_creq_set_orh(struct nitrox_kcrypt_request *nkreq)
681 struct se_crypto_request *creq = &nkreq->creq;
683 creq->orh = (u64 *)(nkreq->dst);
687 static inline void nitrox_creq_set_comp(struct nitrox_kcrypt_request *nkreq)
689 struct se_crypto_request *creq = &nkreq->creq;
691 creq->comp = (u64 *)(nkreq->dst + ORH_HLEN);
700 static inline void nitrox_creq_set_dst_sg(struct nitrox_kcrypt_request *nkreq,
704 struct se_crypto_request *creq = &nkreq->creq;
706 char *iv = nkreq->src;
708 creq->dst = nitrox_creq_dst_sg(nkreq->dst);