Lines Matching refs:fcp_cmnd

343 		(sizeof(struct fcp_cmnd) + sizeof(struct fcp_rsp));  in lpfc_new_scsi_buf_s3()
348 (int)sizeof(struct fcp_cmnd), in lpfc_new_scsi_buf_s3()
380 psb->fcp_cmnd = psb->data; in lpfc_new_scsi_buf_s3()
381 psb->fcp_rsp = psb->data + sizeof(struct fcp_cmnd); in lpfc_new_scsi_buf_s3()
382 psb->dma_sgl = psb->data + sizeof(struct fcp_cmnd) + in lpfc_new_scsi_buf_s3()
388 pdma_phys_fcp_rsp = psb->dma_handle + sizeof(struct fcp_cmnd); in lpfc_new_scsi_buf_s3()
389 pdma_phys_sgl = psb->dma_handle + sizeof(struct fcp_cmnd) + in lpfc_new_scsi_buf_s3()
399 bpl[0].tus.f.bdeSize = sizeof(struct fcp_cmnd); in lpfc_new_scsi_buf_s3()
420 iocb->un.fcpi64.bdl.bdeSize = sizeof(struct fcp_cmnd); in lpfc_new_scsi_buf_s3()
679 lpfc_cmd->fcp_cmnd = tmp->fcp_cmnd; in lpfc_get_scsi_buf_s4()
694 sgl->sge_len = cpu_to_le32(sizeof(struct fcp_cmnd)); in lpfc_get_scsi_buf_s4()
698 pdma_phys_fcp_rsp = pdma_phys_fcp_cmd + sizeof(struct fcp_cmnd); in lpfc_get_scsi_buf_s4()
717 iocb->un.fcpi64.bdl.bdeSize = sizeof(struct fcp_cmnd); in lpfc_get_scsi_buf_s4()
839 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd; in lpfc_scsi_prep_dma_buf_s3() local
933 physaddr += (sizeof(struct fcp_cmnd) + in lpfc_scsi_prep_dma_buf_s3()
949 fcp_cmnd->fcpDl = cpu_to_be32(scsi_bufflen(scsi_cmnd)); in lpfc_scsi_prep_dma_buf_s3()
2524 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd; in lpfc_bg_scsi_prep_dma_buf_s3() local
2641 fcp_cmnd->fcpDl = be32_to_cpu(fcpdl); in lpfc_bg_scsi_prep_dma_buf_s3()
3050 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd; in lpfc_scsi_prep_dma_buf_s4() local
3223 fcp_cmnd->fcpDl = cpu_to_be32(scsi_bufflen(scsi_cmnd)); in lpfc_scsi_prep_dma_buf_s4()
3263 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd; in lpfc_bg_scsi_prep_dma_buf_s4() local
3395 fcp_cmnd->fcpDl = be32_to_cpu(fcpdl); in lpfc_bg_scsi_prep_dma_buf_s4()
3613 struct fcp_cmnd *fcpcmd = lpfc_cmd->fcp_cmnd; in lpfc_handle_fcp_err()
4064 lpfc_fcpcmd_to_iocb(uint8_t *data, struct fcp_cmnd *fcp_cmnd) in lpfc_fcpcmd_to_iocb() argument
4067 for (i = 0, j = 0; i < sizeof(struct fcp_cmnd); in lpfc_fcpcmd_to_iocb()
4069 ((uint32_t *)data)[j] = cpu_to_be32(((uint32_t *)fcp_cmnd)[j]); in lpfc_fcpcmd_to_iocb()
4088 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd; in lpfc_scsi_prep_cmnd() local
4103 lpfc_cmd->fcp_cmnd->fcpCntl2 = 0; in lpfc_scsi_prep_cmnd()
4106 &lpfc_cmd->fcp_cmnd->fcp_lun); in lpfc_scsi_prep_cmnd()
4108 ptr = &fcp_cmnd->fcpCdb[0]; in lpfc_scsi_prep_cmnd()
4115 fcp_cmnd->fcpCntl1 = SIMPLE_Q; in lpfc_scsi_prep_cmnd()
4142 fcp_cmnd->fcpCntl3 = WRITE_DATA; in lpfc_scsi_prep_cmnd()
4148 fcp_cmnd->fcpCntl3 = READ_DATA; in lpfc_scsi_prep_cmnd()
4156 fcp_cmnd->fcpCntl3 = 0; in lpfc_scsi_prep_cmnd()
4162 lpfc_fcpcmd_to_iocb(iocb_cmd->unsli3.fcp_ext.icd, fcp_cmnd); in lpfc_scsi_prep_cmnd()
4205 struct fcp_cmnd *fcp_cmnd; in lpfc_scsi_prep_task_mgmt_cmd() local
4218 fcp_cmnd = lpfc_cmd->fcp_cmnd; in lpfc_scsi_prep_task_mgmt_cmd()
4220 memset(fcp_cmnd, 0, sizeof(struct fcp_cmnd)); in lpfc_scsi_prep_task_mgmt_cmd()
4221 int_to_scsilun(lun, &fcp_cmnd->fcp_lun); in lpfc_scsi_prep_task_mgmt_cmd()
4222 fcp_cmnd->fcpCntl2 = task_mgmt_cmd; in lpfc_scsi_prep_task_mgmt_cmd()
4225 lpfc_fcpcmd_to_iocb(piocb->unsli3.fcp_ext.icd, fcp_cmnd); in lpfc_scsi_prep_task_mgmt_cmd()
4688 switch (lpfc_cmd->fcp_cmnd->fcpCntl3) { in lpfc_queuecommand()