Lines Matching refs:fcp_cmnd
343 (sizeof(struct fcp_cmnd) + sizeof(struct fcp_rsp));
348 (int)sizeof(struct fcp_cmnd),
359 * struct fcp_cmnd, struct fcp_rsp and the number of bde's
380 psb->fcp_cmnd = psb->data;
381 psb->fcp_rsp = psb->data + sizeof(struct fcp_cmnd);
382 psb->dma_sgl = psb->data + sizeof(struct fcp_cmnd) +
388 pdma_phys_fcp_rsp = psb->dma_handle + sizeof(struct fcp_cmnd);
389 pdma_phys_sgl = psb->dma_handle + sizeof(struct fcp_cmnd) +
399 bpl[0].tus.f.bdeSize = sizeof(struct fcp_cmnd);
420 iocb->un.fcpi64.bdl.bdeSize = sizeof(struct fcp_cmnd);
679 lpfc_cmd->fcp_cmnd = tmp->fcp_cmnd;
694 sgl->sge_len = cpu_to_le32(sizeof(struct fcp_cmnd));
698 pdma_phys_fcp_rsp = pdma_phys_fcp_cmd + sizeof(struct fcp_cmnd);
717 iocb->un.fcpi64.bdl.bdeSize = sizeof(struct fcp_cmnd);
839 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd;
851 * bumping the bpl beyond the fcp_cmnd and fcp_rsp regions to the first
933 physaddr += (sizeof(struct fcp_cmnd) +
949 fcp_cmnd->fcpDl = cpu_to_be32(scsi_bufflen(scsi_cmnd));
2524 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd;
2535 * Start the lpfc command prep by bumping the bpl beyond fcp_cmnd
2641 fcp_cmnd->fcpDl = be32_to_cpu(fcpdl);
3050 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd;
3066 * bumping the bpl beyond the fcp_cmnd and fcp_rsp regions to the first
3223 fcp_cmnd->fcpDl = cpu_to_be32(scsi_bufflen(scsi_cmnd));
3263 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd;
3274 * Start the lpfc command prep by bumping the sgl beyond fcp_cmnd
3395 fcp_cmnd->fcpDl = be32_to_cpu(fcpdl);
3613 struct fcp_cmnd *fcpcmd = lpfc_cmd->fcp_cmnd;
4058 * @fcp_cmnd: The FCP Command that is provided by the SCSI layer.
4060 * The routine copies the entire FCP command from @fcp_cmnd to @data while
4064 lpfc_fcpcmd_to_iocb(uint8_t *data, struct fcp_cmnd *fcp_cmnd)
4067 for (i = 0, j = 0; i < sizeof(struct fcp_cmnd);
4069 ((uint32_t *)data)[j] = cpu_to_be32(((uint32_t *)fcp_cmnd)[j]);
4079 * This routine initializes fcp_cmnd and iocb data structure from scsi command
4088 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd;
4103 lpfc_cmd->fcp_cmnd->fcpCntl2 = 0;
4106 &lpfc_cmd->fcp_cmnd->fcp_lun);
4108 ptr = &fcp_cmnd->fcpCdb[0];
4115 fcp_cmnd->fcpCntl1 = SIMPLE_Q;
4126 * bumping the bpl beyond the fcp_cmnd and fcp_rsp regions to the first
4142 fcp_cmnd->fcpCntl3 = WRITE_DATA;
4148 fcp_cmnd->fcpCntl3 = READ_DATA;
4156 fcp_cmnd->fcpCntl3 = 0;
4162 lpfc_fcpcmd_to_iocb(iocb_cmd->unsli3.fcp_ext.icd, fcp_cmnd);
4205 struct fcp_cmnd *fcp_cmnd;
4218 fcp_cmnd = lpfc_cmd->fcp_cmnd;
4220 memset(fcp_cmnd, 0, sizeof(struct fcp_cmnd));
4221 int_to_scsilun(lun, &fcp_cmnd->fcp_lun);
4222 fcp_cmnd->fcpCntl2 = task_mgmt_cmd;
4225 lpfc_fcpcmd_to_iocb(piocb->unsli3.fcp_ext.icd, fcp_cmnd);
4688 switch (lpfc_cmd->fcp_cmnd->fcpCntl3) {