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