Lines Matching defs:nCmd

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