Lines Matching defs:nCmd

970 		       struct nvmefc_fcp_req *nCmd)
993 sgl->sge_len = cpu_to_le32(nCmd->cmdlen);
1015 dptr = (uint32_t *)nCmd->cmdaddr; /* payload ptr */
1035 sgl->addr_hi = cpu_to_le32(putPaddrHigh(nCmd->cmddma));
1036 sgl->addr_lo = cpu_to_le32(putPaddrLow(nCmd->cmddma));
1040 wqe->generic.bde.tus.f.bdeSize = nCmd->cmdlen;
1052 sgl->addr_hi = cpu_to_le32(putPaddrHigh(nCmd->rspdma));
1053 sgl->addr_lo = cpu_to_le32(putPaddrLow(nCmd->rspdma));
1055 if (nCmd->sg_cnt)
1060 sgl->sge_len = cpu_to_le32(nCmd->rsplen);
1082 struct nvmefc_fcp_req *nCmd;
1117 nCmd = lpfc_ncmd->nvmeCmd;
1149 ep = (struct nvme_fc_ersp_iu *)nCmd->rspaddr;
1155 cp = (struct nvme_fc_cmd_iu *)nCmd->cmdaddr;
1169 ep->xfrd_len = cpu_to_be32(nCmd->payload_length);
1176 ep->cqe.sq_id = nCmd->sqid;
1182 nCmd->rcv_rsplen = LPFC_NVME_ERSP_LEN;
1183 nCmd->transferred_length = nCmd->payload_length;
1201 nCmd->transferred_length = wcqe->total_data_placed;
1202 nCmd->rcv_rsplen = 0;
1203 nCmd->status = 0;
1206 nCmd->transferred_length = wcqe->total_data_placed;
1207 nCmd->rcv_rsplen = wcqe->parameter;
1208 nCmd->status = 0;
1210 if (nCmd->rcv_rsplen == LPFC_NVME_ERSP_LEN)
1228 lpfc_ncmd, nCmd,
1242 nCmd->transferred_length = 0;
1243 nCmd->rcv_rsplen = 0;
1244 nCmd->status = NVME_SC_INTERNAL;
1282 freqpriv = nCmd->private;
1286 nCmd->done(nCmd);
1317 struct nvmefc_fcp_req *nCmd = lpfc_ncmd->nvmeCmd;
1330 if (nCmd->sg_cnt) {
1331 if (nCmd->io_dir == NVMEFC_FCP_WRITE) {
1338 wqe->fcp_iwrite.total_xfer_len = nCmd->payload_length;
1361 wqe->fcp_iread.total_xfer_len = nCmd->payload_length;
1378 nCmd->cmdaddr)->sqe.common;
1390 (nCmd->rsplen + nCmd->cmdlen));
1428 struct nvmefc_fcp_req *nCmd = lpfc_ncmd->nvmeCmd;
1443 lpfc_nvme_adj_fcp_sgls(vport, lpfc_ncmd, nCmd);
1449 if (nCmd->sg_cnt) {
1457 lpfc_ncmd->seg_cnt = nCmd->sg_cnt;
1475 nseg = nCmd->sg_cnt;
1476 data_sg = nCmd->first_sgl;
1582 if (nCmd->payload_length != 0) {
1586 nCmd->sg_cnt, nCmd->payload_length);
2778 struct nvmefc_fcp_req *nCmd;
2800 nCmd = lpfc_ncmd->nvmeCmd;
2805 nCmd->transferred_length = 0;
2806 nCmd->rcv_rsplen = 0;
2807 nCmd->status = NVME_SC_INTERNAL;
2808 freqpriv = nCmd->private;
2813 nCmd->done(nCmd);