Home | History | Annotate | Download | only in usb

Lines Matching defs:sc_bus

145 	struct usbd_bus *sc_bus;	/* USB controller */
299 sc->sc_bus = aux;
300 usbrev = sc->sc_bus->ub_revision;
302 cv_init(&sc->sc_bus->ub_needsexplore_cv, "usbevt");
303 cv_init(&sc->sc_bus->ub_rhxfercv, "usbrhxfer");
323 sc->sc_bus->ub_soft = softint_establish(SOFTINT_USB | SOFTINT_MPSAFE,
324 usb_soft_intr, sc->sc_bus);
325 if (sc->sc_bus->ub_soft == NULL) {
332 sc->sc_bus->ub_methods->ubm_getlock(sc->sc_bus, &sc->sc_bus->ub_lock);
333 KASSERT(sc->sc_bus->ub_lock != NULL);
467 sc->sc_bus->ub_usbctl = self;
470 switch (sc->sc_bus->ub_revision) {
493 err = usbd_new_device(self, sc->sc_bus, 0, speed, 0,
504 sc->sc_bus->ub_roothub = dev;
718 struct usbd_bus *bus = sc->sc_bus;
738 sc->sc_bus->ub_needsexplore = 1;
748 while (sc->sc_bus->ub_usepolling)
994 if (sc->sc_bus->ub_devices[dindex] == NULL) {
1016 err = usbd_do_request_flags(sc->sc_bus->ub_devices[dindex],
1051 if ((dev = sc->sc_bus->ub_devices[dindex]) == NULL) {
1070 if ((dev = sc->sc_bus->ub_devices[dindex]) == NULL) {
1085 *(struct usb_device_stats *)data = sc->sc_bus->ub_stats;
1176 struct usbd_bus *bus = sc->sc_bus;
1197 mutex_exit(sc->sc_bus->ub_lock);
1420 mutex_enter(sc->sc_bus->ub_lock);
1421 cv_signal(&sc->sc_bus->ub_needsexplore_cv);
1422 cv_timedwait(&sc->sc_bus->ub_needsexplore_cv,
1423 sc->sc_bus->ub_lock, hz * 60);
1424 mutex_exit(sc->sc_bus->ub_lock);
1428 if (sc->sc_bus->ub_soft != NULL) {
1429 softint_disestablish(sc->sc_bus->ub_soft);
1430 sc->sc_bus->ub_soft = NULL;
1437 cv_destroy(&sc->sc_bus->ub_needsexplore_cv);
1438 cv_destroy(&sc->sc_bus->ub_rhxfercv);