Lines Matching refs:tgt_fcpreq

297 tgt_fcp_req_to_fcpreq(struct nvmefc_tgt_fcp_req *tgt_fcpreq)  in tgt_fcp_req_to_fcpreq()  argument
299 return container_of(tgt_fcpreq, struct fcloop_fcpreq, tgt_fcp_req); in tgt_fcp_req_to_fcpreq()
755 struct nvmefc_tgt_fcp_req *tgt_fcpreq) in fcloop_fcp_op() argument
757 struct fcloop_fcpreq *tfcp_req = tgt_fcp_req_to_fcpreq(tgt_fcpreq); in fcloop_fcp_op()
761 u8 op = tgt_fcpreq->op; in fcloop_fcp_op()
779 tgt_fcpreq->transferred_length = 0; in fcloop_fcp_op()
780 tgt_fcpreq->fcp_error = -ECANCELED; in fcloop_fcp_op()
781 tgt_fcpreq->done(tgt_fcpreq); in fcloop_fcp_op()
793 xfrlen = tgt_fcpreq->transfer_length; in fcloop_fcp_op()
795 fcloop_fcp_copy_data(op, tgt_fcpreq->sg, in fcloop_fcp_op()
796 fcpreq->first_sgl, tgt_fcpreq->offset, in fcloop_fcp_op()
804 xfrlen = tgt_fcpreq->transfer_length; in fcloop_fcp_op()
806 fcloop_fcp_copy_data(op, tgt_fcpreq->sg, in fcloop_fcp_op()
807 fcpreq->first_sgl, tgt_fcpreq->offset, in fcloop_fcp_op()
819 rsplen = ((fcpreq->rsplen < tgt_fcpreq->rsplen) ? in fcloop_fcp_op()
820 fcpreq->rsplen : tgt_fcpreq->rsplen); in fcloop_fcp_op()
821 memcpy(fcpreq->rspaddr, tgt_fcpreq->rspaddr, rsplen); in fcloop_fcp_op()
822 if (rsplen < tgt_fcpreq->rsplen) in fcloop_fcp_op()
839 tgt_fcpreq->transferred_length = xfrlen; in fcloop_fcp_op()
840 tgt_fcpreq->fcp_error = fcp_err; in fcloop_fcp_op()
841 tgt_fcpreq->done(tgt_fcpreq); in fcloop_fcp_op()
848 struct nvmefc_tgt_fcp_req *tgt_fcpreq) in fcloop_tgt_fcp_abort() argument
850 struct fcloop_fcpreq *tfcp_req = tgt_fcp_req_to_fcpreq(tgt_fcpreq); in fcloop_tgt_fcp_abort()
872 struct nvmefc_tgt_fcp_req *tgt_fcpreq) in fcloop_fcp_req_release() argument
874 struct fcloop_fcpreq *tfcp_req = tgt_fcp_req_to_fcpreq(tgt_fcpreq); in fcloop_fcp_req_release()