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