Lines Matching defs:twe
97 struct twe_softc *twe = device_private(parent);
98 struct twe_drive *td = &twe->sc_units[twea->twea_unit];
106 twe_register_callbacks(twe, twea->twea_unit, &ld_twe_callbacks);
113 ld->sc_maxqueuecnt = twe->sc_openings;
140 error = twe_param_get_1(twe, TWE_PARAM_UNITINFO + twea->twea_unit,
177 struct twe_softc *twe;
180 twe = device_private(device_parent(sc->sc_ld.sc_dv));
183 if ((ccb = twe_ccb_alloc(twe, flags)) == NULL)
202 if ((rv = twe_ccb_map(twe, ccb)) != 0) {
203 twe_ccb_free(twe, ccb);
213 rv = twe_ccb_poll(twe, ccb, 2000);
214 twe_ccb_unmap(twe, ccb);
215 twe_ccb_free(twe, ccb);
221 twe_ccb_enqueue(twe, ccb);
242 struct twe_softc *twe;
247 twe = device_private(device_parent(sc->sc_ld.sc_dv));
249 twe_ccb_unmap(twe, ccb);
250 twe_ccb_free(twe, ccb);
273 struct twe_softc *twe = device_private(device_parent(ld->sc_dv));
278 ccb = twe_ccb_alloc_wait(twe, 0);
296 rv = twe_ccb_poll(twe, ccb, 2000);
297 twe_ccb_unmap(twe, ccb);
298 twe_ccb_free(twe, ccb);
304 twe_ccb_enqueue(twe, ccb);
312 twe_ccb_free(twe, ccb);
346 MODULE(MODULE_CLASS_DRIVER, ld_twe, "ld,twe");