Changeset View
Changeset View
Standalone View
Standalone View
mpr_sas.c
Show First 20 Lines • Show All 1,921 Lines • ▼ Show 20 Lines | cm->cm_desc.FastPathSCSIIO.RequestFlags = | ||||
MPI25_REQ_DESCRIPT_FLAGS_FAST_PATH_SCSI_IO; | MPI25_REQ_DESCRIPT_FLAGS_FAST_PATH_SCSI_IO; | ||||
cm->cm_desc.FastPathSCSIIO.DevHandle = htole16(targ->handle); | cm->cm_desc.FastPathSCSIIO.DevHandle = htole16(targ->handle); | ||||
} else { | } else { | ||||
cm->cm_desc.SCSIIO.RequestFlags = | cm->cm_desc.SCSIIO.RequestFlags = | ||||
MPI2_REQ_DESCRIPT_FLAGS_SCSI_IO; | MPI2_REQ_DESCRIPT_FLAGS_SCSI_IO; | ||||
cm->cm_desc.SCSIIO.DevHandle = htole16(targ->handle); | cm->cm_desc.SCSIIO.DevHandle = htole16(targ->handle); | ||||
} | } | ||||
#if __FreeBSD_version >= 1000029 | |||||
callout_reset_sbt(&cm->cm_callout, SBT_1MS * ccb->ccb_h.timeout, 0, | callout_reset_sbt(&cm->cm_callout, SBT_1MS * ccb->ccb_h.timeout, 0, | ||||
mprsas_scsiio_timeout, cm, 0); | mprsas_scsiio_timeout, cm, 0); | ||||
#else //__FreeBSD_version < 1000029 | |||||
callout_reset(&cm->cm_callout, (ccb->ccb_h.timeout * hz) / 1000, | |||||
mprsas_scsiio_timeout, cm); | |||||
#endif //__FreeBSD_version >= 1000029 | |||||
targ->issued++; | targ->issued++; | ||||
targ->outstanding++; | targ->outstanding++; | ||||
TAILQ_INSERT_TAIL(&targ->commands, cm, cm_link); | TAILQ_INSERT_TAIL(&targ->commands, cm, cm_link); | ||||
ccb->ccb_h.status |= CAM_SIM_QUEUED; | ccb->ccb_h.status |= CAM_SIM_QUEUED; | ||||
mprsas_log_command(cm, MPR_XINFO, "%s cm %p ccb %p outstanding %u\n", | mprsas_log_command(cm, MPR_XINFO, "%s cm %p ccb %p outstanding %u\n", | ||||
__func__, cm, ccb, targ->outstanding); | __func__, cm, ccb, targ->outstanding); | ||||
▲ Show 20 Lines • Show All 1,598 Lines • Show Last 20 Lines |