Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/tws/tws_cam.c
Show First 20 Lines • Show All 741 Lines • ▼ Show 20 Lines | #endif | ||||
req->flags |= TWS_DATA_CCB; | req->flags |= TWS_DATA_CCB; | ||||
/* save ccb ptr */ | /* save ccb ptr */ | ||||
req->ccb_ptr = ccb; | req->ccb_ptr = ccb; | ||||
/* | /* | ||||
* tws_map_load_data_callback will fill in the SGL, | * tws_map_load_data_callback will fill in the SGL, | ||||
* and submit the I/O. | * and submit the I/O. | ||||
*/ | */ | ||||
sc->stats.scsi_ios++; | sc->stats.scsi_ios++; | ||||
callout_reset(&req->timeout, (ccb_h->timeout * hz) / 1000, tws_timeout, req); | callout_reset_sbt(&req->timeout, SBT_1MS * ccb->ccb_h.timeout, 0, | ||||
tws_timeout, req, 0); | |||||
error = tws_map_request(sc, req); | error = tws_map_request(sc, req); | ||||
return(error); | return(error); | ||||
} | } | ||||
int | int | ||||
tws_send_scsi_cmd(struct tws_softc *sc, int cmd) | tws_send_scsi_cmd(struct tws_softc *sc, int cmd) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 556 Lines • Show Last 20 Lines |