Lines Matching refs:nCmd

827 		       struct nvmefc_fcp_req *nCmd)  in lpfc_nvme_adj_fcp_sgls()  argument
850 sgl->sge_len = cpu_to_le32(nCmd->cmdlen); in lpfc_nvme_adj_fcp_sgls()
872 dptr = (uint32_t *)nCmd->cmdaddr; /* payload ptr */ in lpfc_nvme_adj_fcp_sgls()
892 sgl->addr_hi = cpu_to_le32(putPaddrHigh(nCmd->cmddma)); in lpfc_nvme_adj_fcp_sgls()
893 sgl->addr_lo = cpu_to_le32(putPaddrLow(nCmd->cmddma)); in lpfc_nvme_adj_fcp_sgls()
897 wqe->generic.bde.tus.f.bdeSize = nCmd->cmdlen; in lpfc_nvme_adj_fcp_sgls()
909 sgl->addr_hi = cpu_to_le32(putPaddrHigh(nCmd->rspdma)); in lpfc_nvme_adj_fcp_sgls()
910 sgl->addr_lo = cpu_to_le32(putPaddrLow(nCmd->rspdma)); in lpfc_nvme_adj_fcp_sgls()
912 if (nCmd->sg_cnt) in lpfc_nvme_adj_fcp_sgls()
917 sgl->sge_len = cpu_to_le32(nCmd->rsplen); in lpfc_nvme_adj_fcp_sgls()
939 struct nvmefc_fcp_req *nCmd; in lpfc_nvme_io_cmd_cmpl() local
977 nCmd = lpfc_ncmd->nvmeCmd; in lpfc_nvme_io_cmd_cmpl()
1009 ep = (struct nvme_fc_ersp_iu *)nCmd->rspaddr; in lpfc_nvme_io_cmd_cmpl()
1015 cp = (struct nvme_fc_cmd_iu *)nCmd->cmdaddr; in lpfc_nvme_io_cmd_cmpl()
1029 ep->xfrd_len = cpu_to_be32(nCmd->payload_length); in lpfc_nvme_io_cmd_cmpl()
1036 ep->cqe.sq_id = nCmd->sqid; in lpfc_nvme_io_cmd_cmpl()
1042 nCmd->rcv_rsplen = LPFC_NVME_ERSP_LEN; in lpfc_nvme_io_cmd_cmpl()
1043 nCmd->transferred_length = nCmd->payload_length; in lpfc_nvme_io_cmd_cmpl()
1061 nCmd->transferred_length = wcqe->total_data_placed; in lpfc_nvme_io_cmd_cmpl()
1062 nCmd->rcv_rsplen = 0; in lpfc_nvme_io_cmd_cmpl()
1063 nCmd->status = 0; in lpfc_nvme_io_cmd_cmpl()
1066 nCmd->transferred_length = wcqe->total_data_placed; in lpfc_nvme_io_cmd_cmpl()
1067 nCmd->rcv_rsplen = wcqe->parameter; in lpfc_nvme_io_cmd_cmpl()
1068 nCmd->status = 0; in lpfc_nvme_io_cmd_cmpl()
1071 cp = (struct nvme_fc_cmd_iu *)nCmd->cmdaddr; in lpfc_nvme_io_cmd_cmpl()
1072 ep = (struct nvme_fc_ersp_iu *)nCmd->rspaddr; in lpfc_nvme_io_cmd_cmpl()
1075 if (nCmd->rcv_rsplen == LPFC_NVME_ERSP_LEN) { in lpfc_nvme_io_cmd_cmpl()
1110 lpfc_ncmd, nCmd, in lpfc_nvme_io_cmd_cmpl()
1124 nCmd->transferred_length = 0; in lpfc_nvme_io_cmd_cmpl()
1125 nCmd->rcv_rsplen = 0; in lpfc_nvme_io_cmd_cmpl()
1126 nCmd->status = NVME_SC_INTERNAL; in lpfc_nvme_io_cmd_cmpl()
1165 freqpriv = nCmd->private; in lpfc_nvme_io_cmd_cmpl()
1174 nCmd->io_dir == NVMEFC_FCP_READ && in lpfc_nvme_io_cmd_cmpl()
1175 nCmd->payload_length) { in lpfc_nvme_io_cmd_cmpl()
1178 lpfc_update_cmf_cmpl(phba, lat, nCmd->payload_length, NULL); in lpfc_nvme_io_cmd_cmpl()
1182 nCmd->done(nCmd); in lpfc_nvme_io_cmd_cmpl()
1211 struct nvmefc_fcp_req *nCmd = lpfc_ncmd->nvmeCmd; in lpfc_nvme_prep_io_cmd() local
1221 if (nCmd->sg_cnt) { in lpfc_nvme_prep_io_cmd()
1222 if (nCmd->io_dir == NVMEFC_FCP_WRITE) { in lpfc_nvme_prep_io_cmd()
1229 wqe->fcp_iwrite.total_xfer_len = nCmd->payload_length; in lpfc_nvme_prep_io_cmd()
1252 wqe->fcp_iread.total_xfer_len = nCmd->payload_length; in lpfc_nvme_prep_io_cmd()
1273 nCmd->cmdaddr)->sqe.common; in lpfc_nvme_prep_io_cmd()
1285 (nCmd->rsplen + nCmd->cmdlen)); in lpfc_nvme_prep_io_cmd()
1339 struct nvmefc_fcp_req *nCmd = lpfc_ncmd->nvmeCmd; in lpfc_nvme_prep_io_dma() local
1353 lpfc_nvme_adj_fcp_sgls(vport, lpfc_ncmd, nCmd); in lpfc_nvme_prep_io_dma()
1359 if (nCmd->sg_cnt) { in lpfc_nvme_prep_io_dma()
1367 lpfc_ncmd->seg_cnt = nCmd->sg_cnt; in lpfc_nvme_prep_io_dma()
1385 nseg = nCmd->sg_cnt; in lpfc_nvme_prep_io_dma()
1386 data_sg = nCmd->first_sgl; in lpfc_nvme_prep_io_dma()
1495 if (nCmd->payload_length != 0) { in lpfc_nvme_prep_io_dma()
1499 nCmd->sg_cnt, nCmd->payload_length); in lpfc_nvme_prep_io_dma()
2804 struct nvmefc_fcp_req *nCmd; in lpfc_nvme_cancel_iocb() local
2821 nCmd = lpfc_ncmd->nvmeCmd; in lpfc_nvme_cancel_iocb()
2822 if (!nCmd) { in lpfc_nvme_cancel_iocb()