Lines Matching refs:fcp_cmnd

259 		(sizeof(struct fcp_cmnd) + sizeof(struct fcp_rsp));  in lpfc_new_scsi_buf_s3()
264 (int)sizeof(struct fcp_cmnd), in lpfc_new_scsi_buf_s3()
296 psb->fcp_cmnd = psb->data; in lpfc_new_scsi_buf_s3()
297 psb->fcp_rsp = psb->data + sizeof(struct fcp_cmnd); in lpfc_new_scsi_buf_s3()
298 psb->dma_sgl = psb->data + sizeof(struct fcp_cmnd) + in lpfc_new_scsi_buf_s3()
304 pdma_phys_fcp_rsp = psb->dma_handle + sizeof(struct fcp_cmnd); in lpfc_new_scsi_buf_s3()
305 pdma_phys_sgl = psb->dma_handle + sizeof(struct fcp_cmnd) + in lpfc_new_scsi_buf_s3()
315 bpl[0].tus.f.bdeSize = sizeof(struct fcp_cmnd); in lpfc_new_scsi_buf_s3()
336 iocb->un.fcpi64.bdl.bdeSize = sizeof(struct fcp_cmnd); in lpfc_new_scsi_buf_s3()
644 lpfc_cmd->fcp_cmnd = tmp->fcp_cmnd; in lpfc_get_scsi_buf_s4()
659 sgl->sge_len = cpu_to_le32(sizeof(struct fcp_cmnd)); in lpfc_get_scsi_buf_s4()
663 pdma_phys_fcp_rsp = pdma_phys_fcp_cmd + sizeof(struct fcp_cmnd); in lpfc_get_scsi_buf_s4()
779 lpfc_fcpcmd_to_iocb(u8 *data, struct fcp_cmnd *fcp_cmnd) in lpfc_fcpcmd_to_iocb() argument
783 for (i = 0, j = 0; i < sizeof(struct fcp_cmnd); in lpfc_fcpcmd_to_iocb()
785 ((uint32_t *)data)[j] = cpu_to_be32(((uint32_t *)fcp_cmnd)[j]); in lpfc_fcpcmd_to_iocb()
808 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd; in lpfc_scsi_prep_dma_buf_s3() local
902 physaddr += (sizeof(struct fcp_cmnd) + in lpfc_scsi_prep_dma_buf_s3()
918 fcp_cmnd->fcpDl = cpu_to_be32(scsi_bufflen(scsi_cmnd)); in lpfc_scsi_prep_dma_buf_s3()
925 lpfc_fcpcmd_to_iocb(iocb_cmd->unsli3.fcp_ext.icd, fcp_cmnd); in lpfc_scsi_prep_dma_buf_s3()
2492 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd; in lpfc_bg_scsi_prep_dma_buf_s3() local
2609 fcp_cmnd->fcpDl = be32_to_cpu(fcpdl); in lpfc_bg_scsi_prep_dma_buf_s3()
3044 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd; in lpfc_scsi_prep_dma_buf_s4() local
3226 fcp_cmnd->fcpDl = cpu_to_be32(scsi_bufflen(scsi_cmnd)); in lpfc_scsi_prep_dma_buf_s4()
3233 total_len = be32_to_cpu(fcp_cmnd->fcpDl); in lpfc_scsi_prep_dma_buf_s4()
3242 be32_to_cpu(fcp_cmnd->fcpDl); in lpfc_scsi_prep_dma_buf_s4()
3288 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd; in lpfc_bg_scsi_prep_dma_buf_s4() local
3421 fcp_cmnd->fcpDl = be32_to_cpu(fcpdl); in lpfc_bg_scsi_prep_dma_buf_s4()
3429 total_len = be32_to_cpu(fcp_cmnd->fcpDl); in lpfc_bg_scsi_prep_dma_buf_s4()
3438 be32_to_cpu(fcp_cmnd->fcpDl); in lpfc_bg_scsi_prep_dma_buf_s4()
3817 struct fcp_cmnd *fcpcmd = lpfc_cmd->fcp_cmnd; in lpfc_handle_fcp_err()
4603 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd; in lpfc_scsi_prep_cmnd_buf_s3() local
4629 fcp_cmnd->fcpCntl3 = WRITE_DATA; in lpfc_scsi_prep_cmnd_buf_s3()
4633 fcp_cmnd->fcpCntl3 = READ_DATA; in lpfc_scsi_prep_cmnd_buf_s3()
4639 fcp_cmnd->fcpCntl3 = 0; in lpfc_scsi_prep_cmnd_buf_s3()
4679 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd; in lpfc_scsi_prep_cmnd_buf_s4() local
4703 fcp_cmnd->fcpCntl3 = WRITE_DATA; in lpfc_scsi_prep_cmnd_buf_s4()
4715 fcp_cmnd->fcpCntl3 = READ_DATA; in lpfc_scsi_prep_cmnd_buf_s4()
4732 fcp_cmnd->fcpCntl3 = 0; in lpfc_scsi_prep_cmnd_buf_s4()
4744 sizeof(struct fcp_cmnd) + sizeof(struct fcp_rsp)); in lpfc_scsi_prep_cmnd_buf_s4()
4786 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd; in lpfc_scsi_prep_cmnd() local
4794 lpfc_cmd->fcp_cmnd->fcpCntl2 = 0; in lpfc_scsi_prep_cmnd()
4797 &lpfc_cmd->fcp_cmnd->fcp_lun); in lpfc_scsi_prep_cmnd()
4799 ptr = &fcp_cmnd->fcpCdb[0]; in lpfc_scsi_prep_cmnd()
4806 fcp_cmnd->fcpCntl1 = SIMPLE_Q; in lpfc_scsi_prep_cmnd()
4834 struct fcp_cmnd *fcp_cmnd; in lpfc_scsi_prep_task_mgmt_cmd_s3() local
4846 fcp_cmnd = lpfc_cmd->fcp_cmnd; in lpfc_scsi_prep_task_mgmt_cmd_s3()
4848 memset(fcp_cmnd, 0, sizeof(struct fcp_cmnd)); in lpfc_scsi_prep_task_mgmt_cmd_s3()
4849 int_to_scsilun(lun, &fcp_cmnd->fcp_lun); in lpfc_scsi_prep_task_mgmt_cmd_s3()
4850 fcp_cmnd->fcpCntl2 = task_mgmt_cmd; in lpfc_scsi_prep_task_mgmt_cmd_s3()
4852 lpfc_fcpcmd_to_iocb(piocb->unsli3.fcp_ext.icd, fcp_cmnd); in lpfc_scsi_prep_task_mgmt_cmd_s3()
4894 struct fcp_cmnd *fcp_cmnd; in lpfc_scsi_prep_task_mgmt_cmd_s4() local
4909 fcp_cmnd = lpfc_cmd->fcp_cmnd; in lpfc_scsi_prep_task_mgmt_cmd_s4()
4911 memset(fcp_cmnd, 0, sizeof(struct fcp_cmnd)); in lpfc_scsi_prep_task_mgmt_cmd_s4()
4912 int_to_scsilun(lun, &fcp_cmnd->fcp_lun); in lpfc_scsi_prep_task_mgmt_cmd_s4()
4913 fcp_cmnd->fcpCntl3 = 0; in lpfc_scsi_prep_task_mgmt_cmd_s4()
4914 fcp_cmnd->fcpCntl2 = task_mgmt_cmd; in lpfc_scsi_prep_task_mgmt_cmd_s4()
4917 sizeof(struct fcp_cmnd) + sizeof(struct fcp_rsp)); in lpfc_scsi_prep_task_mgmt_cmd_s4()
5432 switch (lpfc_cmd->fcp_cmnd->fcpCntl3) { in lpfc_queuecommand()