Lines Matching refs:nkreq
220 * @nkreq: Base request context
234 struct nitrox_kcrypt_request nkreq;
616 static inline int alloc_src_req_buf(struct nitrox_kcrypt_request *nkreq,
619 struct se_crypto_request *creq = &nkreq->creq;
621 nkreq->src = alloc_req_buf(nents, ivsize, creq->gfp);
622 if (!nkreq->src)
638 static inline void nitrox_creq_set_src_sg(struct nitrox_kcrypt_request *nkreq,
642 char *iv = nkreq->src;
644 struct se_crypto_request *creq = &nkreq->creq;
662 static inline int alloc_dst_req_buf(struct nitrox_kcrypt_request *nkreq,
666 struct se_crypto_request *creq = &nkreq->creq;
668 nkreq->dst = alloc_req_buf(nents, extralen, creq->gfp);
669 if (!nkreq->dst)
675 static inline void nitrox_creq_set_orh(struct nitrox_kcrypt_request *nkreq)
677 struct se_crypto_request *creq = &nkreq->creq;
679 creq->orh = (u64 *)(nkreq->dst);
683 static inline void nitrox_creq_set_comp(struct nitrox_kcrypt_request *nkreq)
685 struct se_crypto_request *creq = &nkreq->creq;
687 creq->comp = (u64 *)(nkreq->dst + ORH_HLEN);
696 static inline void nitrox_creq_set_dst_sg(struct nitrox_kcrypt_request *nkreq,
700 struct se_crypto_request *creq = &nkreq->creq;
702 char *iv = nkreq->src;
704 creq->dst = nitrox_creq_dst_sg(nkreq->dst);