Lines Matching refs:fcp_cmnd
264 (sizeof(struct fcp_cmnd) + sizeof(struct fcp_rsp));
269 (int)sizeof(struct fcp_cmnd),
280 * struct fcp_cmnd, struct fcp_rsp and the number of bde's
301 psb->fcp_cmnd = psb->data;
302 psb->fcp_rsp = psb->data + sizeof(struct fcp_cmnd);
303 psb->dma_sgl = psb->data + sizeof(struct fcp_cmnd) +
309 pdma_phys_fcp_rsp = psb->dma_handle + sizeof(struct fcp_cmnd);
310 pdma_phys_sgl = psb->dma_handle + sizeof(struct fcp_cmnd) +
320 bpl[0].tus.f.bdeSize = sizeof(struct fcp_cmnd);
341 iocb->un.fcpi64.bdl.bdeSize = sizeof(struct fcp_cmnd);
649 lpfc_cmd->fcp_cmnd = tmp->fcp_cmnd;
664 sgl->sge_len = cpu_to_le32(sizeof(struct fcp_cmnd));
668 pdma_phys_fcp_rsp = pdma_phys_fcp_cmd + sizeof(struct fcp_cmnd);
778 * @fcp_cmnd: The FCP Command that is provided by the SCSI layer.
780 * The routine copies the entire FCP command from @fcp_cmnd to @data while
784 lpfc_fcpcmd_to_iocb(u8 *data, struct fcp_cmnd *fcp_cmnd)
788 for (i = 0, j = 0; i < sizeof(struct fcp_cmnd);
790 ((uint32_t *)data)[j] = cpu_to_be32(((uint32_t *)fcp_cmnd)[j]);
813 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd;
825 * bumping the bpl beyond the fcp_cmnd and fcp_rsp regions to the first
907 physaddr += (sizeof(struct fcp_cmnd) +
923 fcp_cmnd->fcpDl = cpu_to_be32(scsi_bufflen(scsi_cmnd));
930 lpfc_fcpcmd_to_iocb(iocb_cmd->unsli3.fcp_ext.icd, fcp_cmnd);
2497 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd;
2508 * Start the lpfc command prep by bumping the bpl beyond fcp_cmnd
2614 fcp_cmnd->fcpDl = be32_to_cpu(fcpdl);
3049 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd;
3066 * bumping the bpl beyond the fcp_cmnd and fcp_rsp regions to the first
3231 fcp_cmnd->fcpDl = cpu_to_be32(scsi_bufflen(scsi_cmnd));
3238 total_len = be32_to_cpu(fcp_cmnd->fcpDl);
3247 be32_to_cpu(fcp_cmnd->fcpDl);
3293 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd;
3305 * Start the lpfc command prep by bumping the sgl beyond fcp_cmnd
3426 fcp_cmnd->fcpDl = be32_to_cpu(fcpdl);
3434 total_len = be32_to_cpu(fcp_cmnd->fcpDl);
3443 be32_to_cpu(fcp_cmnd->fcpDl);
3822 struct fcp_cmnd *fcpcmd = lpfc_cmd->fcp_cmnd;
4608 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd;
4618 * bumping the bpl beyond the fcp_cmnd and fcp_rsp regions to the first
4634 fcp_cmnd->fcpCntl3 = WRITE_DATA;
4638 fcp_cmnd->fcpCntl3 = READ_DATA;
4644 fcp_cmnd->fcpCntl3 = 0;
4684 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd;
4708 fcp_cmnd->fcpCntl3 = WRITE_DATA;
4720 fcp_cmnd->fcpCntl3 = READ_DATA;
4737 fcp_cmnd->fcpCntl3 = 0;
4749 sizeof(struct fcp_cmnd) + sizeof(struct fcp_rsp));
4783 * This routine initializes fcp_cmnd and iocb data structure from scsi command
4791 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd;
4799 lpfc_cmd->fcp_cmnd->fcpCntl2 = 0;
4802 &lpfc_cmd->fcp_cmnd->fcp_lun);
4804 ptr = &fcp_cmnd->fcpCdb[0];
4811 fcp_cmnd->fcpCntl1 = SIMPLE_Q;
4839 struct fcp_cmnd *fcp_cmnd;
4851 fcp_cmnd = lpfc_cmd->fcp_cmnd;
4853 memset(fcp_cmnd, 0, sizeof(struct fcp_cmnd));
4854 int_to_scsilun(lun, &fcp_cmnd->fcp_lun);
4855 fcp_cmnd->fcpCntl2 = task_mgmt_cmd;
4857 lpfc_fcpcmd_to_iocb(piocb->unsli3.fcp_ext.icd, fcp_cmnd);
4899 struct fcp_cmnd *fcp_cmnd;
4914 fcp_cmnd = lpfc_cmd->fcp_cmnd;
4916 memset(fcp_cmnd, 0, sizeof(struct fcp_cmnd));
4917 int_to_scsilun(lun, &fcp_cmnd->fcp_lun);
4918 fcp_cmnd->fcpCntl3 = 0;
4919 fcp_cmnd->fcpCntl2 = task_mgmt_cmd;
4922 sizeof(struct fcp_cmnd) + sizeof(struct fcp_rsp));
5437 switch (lpfc_cmd->fcp_cmnd->fcpCntl3) {