Lines Matching refs:fcp_cmnd
165 struct fcp_cmnd *fcp_cmnd = (struct fcp_cmnd *)addr; in csio_scsi_fcp_cmnd() local
170 int_to_scsilun(scmnd->device->lun, &fcp_cmnd->fc_lun); in csio_scsi_fcp_cmnd()
171 fcp_cmnd->fc_tm_flags = 0; in csio_scsi_fcp_cmnd()
172 fcp_cmnd->fc_cmdref = 0; in csio_scsi_fcp_cmnd()
174 memcpy(fcp_cmnd->fc_cdb, scmnd->cmnd, 16); in csio_scsi_fcp_cmnd()
175 fcp_cmnd->fc_pri_ta = FCP_PTA_SIMPLE; in csio_scsi_fcp_cmnd()
176 fcp_cmnd->fc_dl = cpu_to_be32(scsi_bufflen(scmnd)); in csio_scsi_fcp_cmnd()
180 fcp_cmnd->fc_flags = FCP_CFL_WRDATA; in csio_scsi_fcp_cmnd()
182 fcp_cmnd->fc_flags = FCP_CFL_RDDATA; in csio_scsi_fcp_cmnd()
184 fcp_cmnd->fc_flags = 0; in csio_scsi_fcp_cmnd()
186 memset(fcp_cmnd, 0, sizeof(*fcp_cmnd)); in csio_scsi_fcp_cmnd()
187 int_to_scsilun(scmnd->device->lun, &fcp_cmnd->fc_lun); in csio_scsi_fcp_cmnd()
188 fcp_cmnd->fc_tm_flags = (uint8_t)scmnd->SCp.Message; in csio_scsi_fcp_cmnd()
2424 scm->proto_cmd_len = sizeof(struct fcp_cmnd); in csio_scsim_init()