Lines Matching refs:nkreq
230 struct nitrox_kcrypt_request nkreq; member
612 static inline int alloc_src_req_buf(struct nitrox_kcrypt_request *nkreq, in alloc_src_req_buf() argument
615 struct se_crypto_request *creq = &nkreq->creq; in alloc_src_req_buf()
617 nkreq->src = alloc_req_buf(nents, ivsize, creq->gfp); in alloc_src_req_buf()
618 if (!nkreq->src) in alloc_src_req_buf()
634 static inline void nitrox_creq_set_src_sg(struct nitrox_kcrypt_request *nkreq, in nitrox_creq_set_src_sg() argument
638 char *iv = nkreq->src; in nitrox_creq_set_src_sg()
640 struct se_crypto_request *creq = &nkreq->creq; in nitrox_creq_set_src_sg()
658 static inline int alloc_dst_req_buf(struct nitrox_kcrypt_request *nkreq, in alloc_dst_req_buf() argument
662 struct se_crypto_request *creq = &nkreq->creq; in alloc_dst_req_buf()
664 nkreq->dst = alloc_req_buf(nents, extralen, creq->gfp); in alloc_dst_req_buf()
665 if (!nkreq->dst) in alloc_dst_req_buf()
671 static inline void nitrox_creq_set_orh(struct nitrox_kcrypt_request *nkreq) in nitrox_creq_set_orh() argument
673 struct se_crypto_request *creq = &nkreq->creq; in nitrox_creq_set_orh()
675 creq->orh = (u64 *)(nkreq->dst); in nitrox_creq_set_orh()
679 static inline void nitrox_creq_set_comp(struct nitrox_kcrypt_request *nkreq) in nitrox_creq_set_comp() argument
681 struct se_crypto_request *creq = &nkreq->creq; in nitrox_creq_set_comp()
683 creq->comp = (u64 *)(nkreq->dst + ORH_HLEN); in nitrox_creq_set_comp()
692 static inline void nitrox_creq_set_dst_sg(struct nitrox_kcrypt_request *nkreq, in nitrox_creq_set_dst_sg() argument
696 struct se_crypto_request *creq = &nkreq->creq; in nitrox_creq_set_dst_sg()
698 char *iv = nkreq->src; in nitrox_creq_set_dst_sg()
700 creq->dst = nitrox_creq_dst_sg(nkreq->dst); in nitrox_creq_set_dst_sg()