Lines Matching defs: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);
758 struct nvmefc_tgt_fcp_req *tgt_fcpreq)
760 struct fcloop_fcpreq *tfcp_req = tgt_fcp_req_to_fcpreq(tgt_fcpreq);
764 u8 op = tgt_fcpreq->op;
783 tgt_fcpreq->transferred_length = 0;
784 tgt_fcpreq->fcp_error = -ECANCELED;
785 tgt_fcpreq->done(tgt_fcpreq);
797 xfrlen = tgt_fcpreq->transfer_length;
799 fcloop_fcp_copy_data(op, tgt_fcpreq->sg,
800 fcpreq->first_sgl, tgt_fcpreq->offset,
808 xfrlen = tgt_fcpreq->transfer_length;
810 fcloop_fcp_copy_data(op, tgt_fcpreq->sg,
811 fcpreq->first_sgl, tgt_fcpreq->offset,
823 rsplen = ((fcpreq->rsplen < tgt_fcpreq->rsplen) ?
824 fcpreq->rsplen : tgt_fcpreq->rsplen);
825 memcpy(fcpreq->rspaddr, tgt_fcpreq->rspaddr, rsplen);
826 if (rsplen < tgt_fcpreq->rsplen)
843 tgt_fcpreq->transferred_length = xfrlen;
844 tgt_fcpreq->fcp_error = fcp_err;
845 tgt_fcpreq->done(tgt_fcpreq);
852 struct nvmefc_tgt_fcp_req *tgt_fcpreq)
854 struct fcloop_fcpreq *tfcp_req = tgt_fcp_req_to_fcpreq(tgt_fcpreq);
877 struct nvmefc_tgt_fcp_req *tgt_fcpreq)
879 struct fcloop_fcpreq *tfcp_req = tgt_fcp_req_to_fcpreq(tgt_fcpreq);