• Home
  • Raw
  • Download

Lines Matching refs:fcpreq

30 	struct nvmefc_tgt_fcp_req	*fcpreq;	/* only if RS */  member
71 struct nvmefc_tgt_fcp_req *fcpreq; member
640 fod->fcpreq = NULL; in nvmet_fc_prep_fcp_iodlist()
700 struct nvmefc_tgt_fcp_req *fcpreq) in nvmet_fc_queue_fcp_req() argument
702 struct nvmet_fc_fcp_iod *fod = fcpreq->nvmet_fc_private; in nvmet_fc_queue_fcp_req()
708 fcpreq->hwqid = queue->qid ? in nvmet_fc_queue_fcp_req()
721 nvmet_fc_queue_fcp_req(fod->tgtport, fod->queue, fod->fcpreq); in nvmet_fc_fcp_rqst_op_defer_work()
729 struct nvmefc_tgt_fcp_req *fcpreq = fod->fcpreq; in nvmet_fc_free_fcp_iod() local
737 fcpreq->nvmet_fc_private = NULL; in nvmet_fc_free_fcp_iod()
743 fod->fcpreq = NULL; in nvmet_fc_free_fcp_iod()
745 tgtport->ops->fcp_req_release(&tgtport->fc_target_port, fcpreq); in nvmet_fc_free_fcp_iod()
762 fcpreq = deferfcp->fcp_req; in nvmet_fc_free_fcp_iod()
770 memcpy(&fod->cmdiubuf, fcpreq->rspaddr, fcpreq->rsplen); in nvmet_fc_free_fcp_iod()
773 fcpreq->rspaddr = NULL; in nvmet_fc_free_fcp_iod()
774 fcpreq->rsplen = 0; in nvmet_fc_free_fcp_iod()
775 fcpreq->nvmet_fc_private = fod; in nvmet_fc_free_fcp_iod()
776 fod->fcpreq = fcpreq; in nvmet_fc_free_fcp_iod()
780 tgtport->ops->defer_rcv(&tgtport->fc_target_port, fcpreq); in nvmet_fc_free_fcp_iod()
909 &tgtport->fc_target_port, fod->fcpreq); in nvmet_fc_delete_target_queue()
2060 iod->fcpreq = NULL; in nvmet_fc_rcv_ls_req()
2144 if (fod->fcpreq->op == NVMET_FCOP_READDATA_RSP) in nvmet_fc_prep_fcp_rsp()
2178 fod->fcpreq->rspaddr = ersp; in nvmet_fc_prep_fcp_rsp()
2179 fod->fcpreq->rspdma = fod->rspdma; in nvmet_fc_prep_fcp_rsp()
2183 fod->fcpreq->rsplen = NVME_FC_SIZEOF_ZEROS_RSP; in nvmet_fc_prep_fcp_rsp()
2189 fod->fcpreq->rsplen = sizeof(*ersp); in nvmet_fc_prep_fcp_rsp()
2196 static void nvmet_fc_xmt_fcp_op_done(struct nvmefc_tgt_fcp_req *fcpreq);
2202 struct nvmefc_tgt_fcp_req *fcpreq = fod->fcpreq; in nvmet_fc_abort_op() local
2213 tgtport->ops->fcp_abort(&tgtport->fc_target_port, fcpreq); in nvmet_fc_abort_op()
2224 fod->fcpreq->op = NVMET_FCOP_RSP; in nvmet_fc_xmt_fcp_rsp()
2225 fod->fcpreq->timeout = 0; in nvmet_fc_xmt_fcp_rsp()
2229 ret = tgtport->ops->fcp_op(&tgtport->fc_target_port, fod->fcpreq); in nvmet_fc_xmt_fcp_rsp()
2238 struct nvmefc_tgt_fcp_req *fcpreq = fod->fcpreq; in nvmet_fc_transfer_fcp_data() local
2245 fcpreq->op = op; in nvmet_fc_transfer_fcp_data()
2246 fcpreq->offset = fod->offset; in nvmet_fc_transfer_fcp_data()
2247 fcpreq->timeout = NVME_FC_TGTOP_TIMEOUT_SEC; in nvmet_fc_transfer_fcp_data()
2258 fcpreq->sg = sg; in nvmet_fc_transfer_fcp_data()
2259 fcpreq->sg_cnt = 0; in nvmet_fc_transfer_fcp_data()
2261 fcpreq->sg_cnt < tgtport->max_sg_cnt && in nvmet_fc_transfer_fcp_data()
2263 fcpreq->sg_cnt++; in nvmet_fc_transfer_fcp_data()
2267 if (tlen < remaininglen && fcpreq->sg_cnt == 0) { in nvmet_fc_transfer_fcp_data()
2268 fcpreq->sg_cnt++; in nvmet_fc_transfer_fcp_data()
2277 fcpreq->transfer_length = tlen; in nvmet_fc_transfer_fcp_data()
2278 fcpreq->transferred_length = 0; in nvmet_fc_transfer_fcp_data()
2279 fcpreq->fcp_error = 0; in nvmet_fc_transfer_fcp_data()
2280 fcpreq->rsplen = 0; in nvmet_fc_transfer_fcp_data()
2287 ((fod->offset + fcpreq->transfer_length) == fod->req.transfer_len) && in nvmet_fc_transfer_fcp_data()
2289 fcpreq->op = NVMET_FCOP_READDATA_RSP; in nvmet_fc_transfer_fcp_data()
2293 ret = tgtport->ops->fcp_op(&tgtport->fc_target_port, fod->fcpreq); in nvmet_fc_transfer_fcp_data()
2308 fcpreq->fcp_error = ret; in nvmet_fc_transfer_fcp_data()
2309 fcpreq->transferred_length = 0; in nvmet_fc_transfer_fcp_data()
2310 nvmet_fc_xmt_fcp_op_done(fod->fcpreq); in nvmet_fc_transfer_fcp_data()
2318 struct nvmefc_tgt_fcp_req *fcpreq = fod->fcpreq; in __nvmet_fc_fod_op_abort() local
2323 if (fcpreq->op == NVMET_FCOP_WRITEDATA) { in __nvmet_fc_fod_op_abort()
2341 struct nvmefc_tgt_fcp_req *fcpreq = fod->fcpreq; in nvmet_fc_fod_op_done() local
2351 switch (fcpreq->op) { in nvmet_fc_fod_op_done()
2356 if (fcpreq->fcp_error || in nvmet_fc_fod_op_done()
2357 fcpreq->transferred_length != fcpreq->transfer_length) { in nvmet_fc_fod_op_done()
2366 fod->offset += fcpreq->transferred_length; in nvmet_fc_fod_op_done()
2386 if (fcpreq->fcp_error || in nvmet_fc_fod_op_done()
2387 fcpreq->transferred_length != fcpreq->transfer_length) { in nvmet_fc_fod_op_done()
2394 if (fcpreq->op == NVMET_FCOP_READDATA_RSP) { in nvmet_fc_fod_op_done()
2401 fod->offset += fcpreq->transferred_length; in nvmet_fc_fod_op_done()
2430 nvmet_fc_xmt_fcp_op_done(struct nvmefc_tgt_fcp_req *fcpreq) in nvmet_fc_xmt_fcp_op_done() argument
2432 struct nvmet_fc_fcp_iod *fod = fcpreq->nvmet_fc_private; in nvmet_fc_xmt_fcp_op_done()
2524 fod->fcpreq->done = nvmet_fc_xmt_fcp_op_done; in nvmet_fc_handle_fcp_rqst()
2645 struct nvmefc_tgt_fcp_req *fcpreq, in nvmet_fc_rcv_fcp_req() argument
2680 fcpreq->nvmet_fc_private = fod; in nvmet_fc_rcv_fcp_req()
2681 fod->fcpreq = fcpreq; in nvmet_fc_rcv_fcp_req()
2685 nvmet_fc_queue_fcp_req(tgtport, queue, fcpreq); in nvmet_fc_rcv_fcp_req()
2716 fcpreq->rspaddr = cmdiubuf; in nvmet_fc_rcv_fcp_req()
2717 fcpreq->rsplen = cmdiubuf_len; in nvmet_fc_rcv_fcp_req()
2718 deferfcp->fcp_req = fcpreq; in nvmet_fc_rcv_fcp_req()
2756 struct nvmefc_tgt_fcp_req *fcpreq) in nvmet_fc_rcv_fcp_abort() argument
2758 struct nvmet_fc_fcp_iod *fod = fcpreq->nvmet_fc_private; in nvmet_fc_rcv_fcp_abort()
2762 if (!fod || fod->fcpreq != fcpreq) in nvmet_fc_rcv_fcp_abort()