Lines Matching refs:fcp_cmnd

266 		(sizeof(struct fcp_cmnd) + sizeof(struct fcp_rsp));  in lpfc_new_scsi_buf_s3()
271 (int)sizeof(struct fcp_cmnd), in lpfc_new_scsi_buf_s3()
303 psb->fcp_cmnd = psb->data; in lpfc_new_scsi_buf_s3()
304 psb->fcp_rsp = psb->data + sizeof(struct fcp_cmnd); in lpfc_new_scsi_buf_s3()
305 psb->dma_sgl = psb->data + sizeof(struct fcp_cmnd) + in lpfc_new_scsi_buf_s3()
311 pdma_phys_fcp_rsp = psb->dma_handle + sizeof(struct fcp_cmnd); in lpfc_new_scsi_buf_s3()
312 pdma_phys_sgl = psb->dma_handle + sizeof(struct fcp_cmnd) + in lpfc_new_scsi_buf_s3()
322 bpl[0].tus.f.bdeSize = sizeof(struct fcp_cmnd); in lpfc_new_scsi_buf_s3()
343 iocb->un.fcpi64.bdl.bdeSize = sizeof(struct fcp_cmnd); in lpfc_new_scsi_buf_s3()
651 lpfc_cmd->fcp_cmnd = tmp->fcp_cmnd; in lpfc_get_scsi_buf_s4()
666 sgl->sge_len = cpu_to_le32(sizeof(struct fcp_cmnd)); in lpfc_get_scsi_buf_s4()
670 pdma_phys_fcp_rsp = pdma_phys_fcp_cmd + sizeof(struct fcp_cmnd); in lpfc_get_scsi_buf_s4()
786 lpfc_fcpcmd_to_iocb(u8 *data, struct fcp_cmnd *fcp_cmnd) in lpfc_fcpcmd_to_iocb() argument
790 for (i = 0, j = 0; i < sizeof(struct fcp_cmnd); in lpfc_fcpcmd_to_iocb()
792 ((uint32_t *)data)[j] = cpu_to_be32(((uint32_t *)fcp_cmnd)[j]); in lpfc_fcpcmd_to_iocb()
815 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd; in lpfc_scsi_prep_dma_buf_s3() local
909 physaddr += (sizeof(struct fcp_cmnd) + in lpfc_scsi_prep_dma_buf_s3()
925 fcp_cmnd->fcpDl = cpu_to_be32(scsi_bufflen(scsi_cmnd)); in lpfc_scsi_prep_dma_buf_s3()
932 lpfc_fcpcmd_to_iocb(iocb_cmd->unsli3.fcp_ext.icd, fcp_cmnd); in lpfc_scsi_prep_dma_buf_s3()
2511 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd; in lpfc_bg_scsi_prep_dma_buf_s3() local
2628 fcp_cmnd->fcpDl = be32_to_cpu(fcpdl); in lpfc_bg_scsi_prep_dma_buf_s3()
3065 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd; in lpfc_scsi_prep_dma_buf_s4() local
3247 fcp_cmnd->fcpDl = cpu_to_be32(scsi_bufflen(scsi_cmnd)); in lpfc_scsi_prep_dma_buf_s4()
3254 total_len = be32_to_cpu(fcp_cmnd->fcpDl); in lpfc_scsi_prep_dma_buf_s4()
3263 be32_to_cpu(fcp_cmnd->fcpDl); in lpfc_scsi_prep_dma_buf_s4()
3309 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd; in lpfc_bg_scsi_prep_dma_buf_s4() local
3442 fcp_cmnd->fcpDl = be32_to_cpu(fcpdl); in lpfc_bg_scsi_prep_dma_buf_s4()
3450 total_len = be32_to_cpu(fcp_cmnd->fcpDl); in lpfc_bg_scsi_prep_dma_buf_s4()
3459 be32_to_cpu(fcp_cmnd->fcpDl); in lpfc_bg_scsi_prep_dma_buf_s4()
3838 struct fcp_cmnd *fcpcmd = lpfc_cmd->fcp_cmnd; in lpfc_handle_fcp_err()
4629 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd; in lpfc_scsi_prep_cmnd_buf_s3() local
4655 fcp_cmnd->fcpCntl3 = WRITE_DATA; in lpfc_scsi_prep_cmnd_buf_s3()
4659 fcp_cmnd->fcpCntl3 = READ_DATA; in lpfc_scsi_prep_cmnd_buf_s3()
4665 fcp_cmnd->fcpCntl3 = 0; in lpfc_scsi_prep_cmnd_buf_s3()
4705 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd; in lpfc_scsi_prep_cmnd_buf_s4() local
4729 fcp_cmnd->fcpCntl3 = WRITE_DATA; in lpfc_scsi_prep_cmnd_buf_s4()
4741 fcp_cmnd->fcpCntl3 = READ_DATA; in lpfc_scsi_prep_cmnd_buf_s4()
4758 fcp_cmnd->fcpCntl3 = 0; in lpfc_scsi_prep_cmnd_buf_s4()
4770 sizeof(struct fcp_cmnd) + sizeof(struct fcp_rsp)); in lpfc_scsi_prep_cmnd_buf_s4()
4812 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd; in lpfc_scsi_prep_cmnd() local
4820 lpfc_cmd->fcp_cmnd->fcpCntl2 = 0; in lpfc_scsi_prep_cmnd()
4823 &lpfc_cmd->fcp_cmnd->fcp_lun); in lpfc_scsi_prep_cmnd()
4825 ptr = &fcp_cmnd->fcpCdb[0]; in lpfc_scsi_prep_cmnd()
4832 fcp_cmnd->fcpCntl1 = SIMPLE_Q; in lpfc_scsi_prep_cmnd()
4860 struct fcp_cmnd *fcp_cmnd; in lpfc_scsi_prep_task_mgmt_cmd_s3() local
4872 fcp_cmnd = lpfc_cmd->fcp_cmnd; in lpfc_scsi_prep_task_mgmt_cmd_s3()
4874 memset(fcp_cmnd, 0, sizeof(struct fcp_cmnd)); in lpfc_scsi_prep_task_mgmt_cmd_s3()
4875 int_to_scsilun(lun, &fcp_cmnd->fcp_lun); in lpfc_scsi_prep_task_mgmt_cmd_s3()
4876 fcp_cmnd->fcpCntl2 = task_mgmt_cmd; in lpfc_scsi_prep_task_mgmt_cmd_s3()
4878 lpfc_fcpcmd_to_iocb(piocb->unsli3.fcp_ext.icd, fcp_cmnd); in lpfc_scsi_prep_task_mgmt_cmd_s3()
4920 struct fcp_cmnd *fcp_cmnd; in lpfc_scsi_prep_task_mgmt_cmd_s4() local
4935 fcp_cmnd = lpfc_cmd->fcp_cmnd; in lpfc_scsi_prep_task_mgmt_cmd_s4()
4937 memset(fcp_cmnd, 0, sizeof(struct fcp_cmnd)); in lpfc_scsi_prep_task_mgmt_cmd_s4()
4938 int_to_scsilun(lun, &fcp_cmnd->fcp_lun); in lpfc_scsi_prep_task_mgmt_cmd_s4()
4939 fcp_cmnd->fcpCntl3 = 0; in lpfc_scsi_prep_task_mgmt_cmd_s4()
4940 fcp_cmnd->fcpCntl2 = task_mgmt_cmd; in lpfc_scsi_prep_task_mgmt_cmd_s4()
4943 sizeof(struct fcp_cmnd) + sizeof(struct fcp_rsp)); in lpfc_scsi_prep_task_mgmt_cmd_s4()
5459 switch (lpfc_cmd->fcp_cmnd->fcpCntl3) { in lpfc_queuecommand()