Lines Matching refs:tgt_fcpreq
297 tgt_fcp_req_to_fcpreq(struct nvmefc_tgt_fcp_req *tgt_fcpreq)
299 return container_of(tgt_fcpreq, struct fcloop_fcpreq, tgt_fcp_req);
804 struct nvmefc_tgt_fcp_req *tgt_fcpreq)
806 struct fcloop_fcpreq *tfcp_req = tgt_fcp_req_to_fcpreq(tgt_fcpreq);
810 u8 op = tgt_fcpreq->op;
829 tgt_fcpreq->transferred_length = 0;
830 tgt_fcpreq->fcp_error = -ECANCELED;
831 tgt_fcpreq->done(tgt_fcpreq);
843 xfrlen = tgt_fcpreq->transfer_length;
845 fcloop_fcp_copy_data(op, tgt_fcpreq->sg,
846 fcpreq->first_sgl, tgt_fcpreq->offset,
854 xfrlen = tgt_fcpreq->transfer_length;
856 fcloop_fcp_copy_data(op, tgt_fcpreq->sg,
857 fcpreq->first_sgl, tgt_fcpreq->offset,
869 rsplen = ((fcpreq->rsplen < tgt_fcpreq->rsplen) ?
870 fcpreq->rsplen : tgt_fcpreq->rsplen);
871 memcpy(fcpreq->rspaddr, tgt_fcpreq->rspaddr, rsplen);
872 if (rsplen < tgt_fcpreq->rsplen)
889 tgt_fcpreq->transferred_length = xfrlen;
890 tgt_fcpreq->fcp_error = fcp_err;
891 tgt_fcpreq->done(tgt_fcpreq);
898 struct nvmefc_tgt_fcp_req *tgt_fcpreq)
900 struct fcloop_fcpreq *tfcp_req = tgt_fcp_req_to_fcpreq(tgt_fcpreq);
923 struct nvmefc_tgt_fcp_req *tgt_fcpreq)
925 struct fcloop_fcpreq *tfcp_req = tgt_fcp_req_to_fcpreq(tgt_fcpreq);