Lines Matching refs:fcpreq

271 	struct nvmefc_fcp_req		*fcpreq;  member
285 struct nvmefc_fcp_req *fcpreq; member
548 fcloop_call_host_done(struct nvmefc_fcp_req *fcpreq, in fcloop_call_host_done() argument
553 if (fcpreq) { in fcloop_call_host_done()
554 inireq = fcpreq->private; in fcloop_call_host_done()
559 fcpreq->status = status; in fcloop_call_host_done()
560 fcpreq->done(fcpreq); in fcloop_call_host_done()
572 struct nvmefc_fcp_req *fcpreq = tfcp_req->fcpreq; in fcloop_fcp_recv_work() local
596 fcpreq->cmdaddr, fcpreq->cmdlen); in fcloop_fcp_recv_work()
598 fcloop_call_host_done(fcpreq, tfcp_req, ret); in fcloop_fcp_recv_work()
608 struct nvmefc_fcp_req *fcpreq; in fcloop_fcp_abort_recv_work() local
612 fcpreq = tfcp_req->fcpreq; in fcloop_fcp_abort_recv_work()
637 tfcp_req->fcpreq = NULL; in fcloop_fcp_abort_recv_work()
640 fcloop_call_host_done(fcpreq, tfcp_req, -ECANCELED); in fcloop_fcp_abort_recv_work()
653 struct nvmefc_fcp_req *fcpreq; in fcloop_tgt_fcprqst_done_work() local
656 fcpreq = tfcp_req->fcpreq; in fcloop_tgt_fcprqst_done_work()
660 fcloop_call_host_done(fcpreq, tfcp_req, tfcp_req->status); in fcloop_tgt_fcprqst_done_work()
668 struct nvmefc_fcp_req *fcpreq) in fcloop_fcp_req() argument
671 struct fcloop_ini_fcpreq *inireq = fcpreq->private; in fcloop_fcp_req()
681 inireq->fcpreq = fcpreq; in fcloop_fcp_req()
685 tfcp_req->fcpreq = fcpreq; in fcloop_fcp_req()
758 struct nvmefc_fcp_req *fcpreq; in fcloop_fcp_op() local
764 fcpreq = tfcp_req->fcpreq; in fcloop_fcp_op()
794 if (fcpreq) { in fcloop_fcp_op()
796 fcpreq->first_sgl, tgt_fcpreq->offset, in fcloop_fcp_op()
798 fcpreq->transferred_length += xfrlen; in fcloop_fcp_op()
805 if (fcpreq) { in fcloop_fcp_op()
807 fcpreq->first_sgl, tgt_fcpreq->offset, in fcloop_fcp_op()
809 fcpreq->transferred_length += xfrlen; in fcloop_fcp_op()
818 if (fcpreq) { 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()
824 fcpreq->rcv_rsplen = rsplen; in fcloop_fcp_op()
825 fcpreq->status = 0; in fcloop_fcp_op()
896 struct nvmefc_fcp_req *fcpreq) in fcloop_fcp_abort() argument
898 struct fcloop_ini_fcpreq *inireq = fcpreq->private; in fcloop_fcp_abort()