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()
2509 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd; in lpfc_bg_scsi_prep_dma_buf_s3() local
2626 fcp_cmnd->fcpDl = be32_to_cpu(fcpdl); in lpfc_bg_scsi_prep_dma_buf_s3()
3063 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd; in lpfc_scsi_prep_dma_buf_s4() local
3245 fcp_cmnd->fcpDl = cpu_to_be32(scsi_bufflen(scsi_cmnd)); in lpfc_scsi_prep_dma_buf_s4()
3252 total_len = be32_to_cpu(fcp_cmnd->fcpDl); in lpfc_scsi_prep_dma_buf_s4()
3261 be32_to_cpu(fcp_cmnd->fcpDl); in lpfc_scsi_prep_dma_buf_s4()
3307 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd; in lpfc_bg_scsi_prep_dma_buf_s4() local
3440 fcp_cmnd->fcpDl = be32_to_cpu(fcpdl); in lpfc_bg_scsi_prep_dma_buf_s4()
3448 total_len = be32_to_cpu(fcp_cmnd->fcpDl); in lpfc_bg_scsi_prep_dma_buf_s4()
3457 be32_to_cpu(fcp_cmnd->fcpDl); in lpfc_bg_scsi_prep_dma_buf_s4()
3836 struct fcp_cmnd *fcpcmd = lpfc_cmd->fcp_cmnd; in lpfc_handle_fcp_err()
4627 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd; in lpfc_scsi_prep_cmnd_buf_s3() local
4653 fcp_cmnd->fcpCntl3 = WRITE_DATA; in lpfc_scsi_prep_cmnd_buf_s3()
4657 fcp_cmnd->fcpCntl3 = READ_DATA; in lpfc_scsi_prep_cmnd_buf_s3()
4663 fcp_cmnd->fcpCntl3 = 0; in lpfc_scsi_prep_cmnd_buf_s3()
4703 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd; in lpfc_scsi_prep_cmnd_buf_s4() local
4727 fcp_cmnd->fcpCntl3 = WRITE_DATA; in lpfc_scsi_prep_cmnd_buf_s4()
4739 fcp_cmnd->fcpCntl3 = READ_DATA; in lpfc_scsi_prep_cmnd_buf_s4()
4756 fcp_cmnd->fcpCntl3 = 0; in lpfc_scsi_prep_cmnd_buf_s4()
4768 sizeof(struct fcp_cmnd) + sizeof(struct fcp_rsp)); in lpfc_scsi_prep_cmnd_buf_s4()
4810 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd; in lpfc_scsi_prep_cmnd() local
4818 lpfc_cmd->fcp_cmnd->fcpCntl2 = 0; in lpfc_scsi_prep_cmnd()
4821 &lpfc_cmd->fcp_cmnd->fcp_lun); in lpfc_scsi_prep_cmnd()
4823 ptr = &fcp_cmnd->fcpCdb[0]; in lpfc_scsi_prep_cmnd()
4830 fcp_cmnd->fcpCntl1 = SIMPLE_Q; in lpfc_scsi_prep_cmnd()
4858 struct fcp_cmnd *fcp_cmnd; in lpfc_scsi_prep_task_mgmt_cmd_s3() local
4870 fcp_cmnd = lpfc_cmd->fcp_cmnd; in lpfc_scsi_prep_task_mgmt_cmd_s3()
4872 memset(fcp_cmnd, 0, sizeof(struct fcp_cmnd)); in lpfc_scsi_prep_task_mgmt_cmd_s3()
4873 int_to_scsilun(lun, &fcp_cmnd->fcp_lun); in lpfc_scsi_prep_task_mgmt_cmd_s3()
4874 fcp_cmnd->fcpCntl2 = task_mgmt_cmd; in lpfc_scsi_prep_task_mgmt_cmd_s3()
4876 lpfc_fcpcmd_to_iocb(piocb->unsli3.fcp_ext.icd, fcp_cmnd); in lpfc_scsi_prep_task_mgmt_cmd_s3()
4918 struct fcp_cmnd *fcp_cmnd; in lpfc_scsi_prep_task_mgmt_cmd_s4() local
4933 fcp_cmnd = lpfc_cmd->fcp_cmnd; in lpfc_scsi_prep_task_mgmt_cmd_s4()
4935 memset(fcp_cmnd, 0, sizeof(struct fcp_cmnd)); in lpfc_scsi_prep_task_mgmt_cmd_s4()
4936 int_to_scsilun(lun, &fcp_cmnd->fcp_lun); in lpfc_scsi_prep_task_mgmt_cmd_s4()
4937 fcp_cmnd->fcpCntl3 = 0; in lpfc_scsi_prep_task_mgmt_cmd_s4()
4938 fcp_cmnd->fcpCntl2 = task_mgmt_cmd; in lpfc_scsi_prep_task_mgmt_cmd_s4()
4941 sizeof(struct fcp_cmnd) + sizeof(struct fcp_rsp)); in lpfc_scsi_prep_task_mgmt_cmd_s4()
5457 switch (lpfc_cmd->fcp_cmnd->fcpCntl3) { in lpfc_queuecommand()