Lines Matching refs:bus
355 struct usbd_bus *bus = pipe->up_dev->ud_bus; in roothub_ctrl_start() local
369 KASSERT(bus->ub_usepolling || mutex_owned(bus->ub_lock)); in roothub_ctrl_start()
372 KASSERTMSG(bus->ub_rhxfer == NULL, "rhxfer=%p", bus->ub_rhxfer); in roothub_ctrl_start()
400 *out = bus->ub_rhconf; in roothub_ctrl_start()
411 if (bus->ub_revision >= USBREV_3_0) { in roothub_ctrl_start()
414 } else if (bus->ub_revision == USBREV_2_0) { in roothub_ctrl_start()
423 if (bus->ub_revision >= USBREV_3_0) { in roothub_ctrl_start()
426 } else if (bus->ub_revision == USBREV_2_0) { in roothub_ctrl_start()
435 if (bus->ub_revision == USBREV_2_0) { in roothub_ctrl_start()
446 if (bus->ub_revision == USBREV_2_0) { in roothub_ctrl_start()
462 if (bus->ub_revision >= USBREV_3_0) { in roothub_ctrl_start()
526 bus->ub_rhaddr = value; in roothub_ctrl_start()
533 bus->ub_rhconf = value; in roothub_ctrl_start()
555 KASSERTMSG(bus->ub_rhxfer == NULL, "rhxfer=%p", bus->ub_rhxfer); in roothub_ctrl_start()
556 bus->ub_rhxfer = xfer; in roothub_ctrl_start()
557 if (!bus->ub_usepolling) in roothub_ctrl_start()
558 mutex_exit(bus->ub_lock); in roothub_ctrl_start()
560 actlen = bus->ub_methods->ubm_rhctrl(bus, req, buf, buflen); in roothub_ctrl_start()
562 if (!bus->ub_usepolling) in roothub_ctrl_start()
563 mutex_enter(bus->ub_lock); in roothub_ctrl_start()
564 KASSERTMSG(bus->ub_rhxfer == xfer, "rhxfer=%p", bus->ub_rhxfer); in roothub_ctrl_start()
565 bus->ub_rhxfer = NULL; in roothub_ctrl_start()
566 cv_signal(&bus->ub_rhxfercv); in roothub_ctrl_start()
588 struct usbd_bus *bus = xfer->ux_bus; in roothub_ctrl_abort() local
590 KASSERT(mutex_owned(bus->ub_lock)); in roothub_ctrl_abort()
591 KASSERTMSG(bus->ub_rhxfer == xfer, "rhxfer=%p", bus->ub_rhxfer); in roothub_ctrl_abort()
599 while (bus->ub_rhxfer == xfer) in roothub_ctrl_abort()
600 cv_wait(&bus->ub_rhxfercv, bus->ub_lock); in roothub_ctrl_abort()