Lines Matching refs:hub

185  * driver instance for "hub" connected to "usb"
186 * and "hub" connected to "hub"
261 struct usb_hub *hub;
264 hub = udev->hub;
265 if (hub == NULL)
267 sc = hub->hubsoftc;
293 struct usb_hub *hub;
307 hub = udev->hub;
308 if ((hub == NULL) ||
320 up = hub->ports + port - 1;
350 &hub->tt_msg[0], &hub->tt_msg[1]);
374 for (x = 0; x != udev->hub->nports; x++) {
375 up = udev->hub->ports + x;
417 struct usb_hub *hub;
424 hub = udev->hub;
425 if (hub == NULL)
427 sc = hub->hubsoftc;
431 for (x = 0; x != hub->nports; x++) {
432 up = hub->ports + x;
570 if (child->hub)
571 err = (child->hub->explore) (child);
626 udev->hub->ports + portno - 1);
895 udev->hub->ports + portno - 1);
1005 struct usb_hub *hub;
1013 hub = udev->hub;
1014 sc = hub->hubsoftc;
1035 for (x = 0; x != hub->nports; x++) {
1036 up = hub->ports + x;
1210 struct usb_hub *hub;
1368 hub = malloc(sizeof(hub[0]) + (sizeof(hub->ports[0]) * nports),
1371 if (hub == NULL)
1374 hub = &sc->sc_hub;
1376 udev->hub = hub;
1379 hub->hubsoftc = sc;
1380 hub->explore = &uhub_explore;
1381 hub->nports = nports;
1382 hub->hubudev = udev;
1384 hub->tt_msg[0].hdr.pm_callback = &uhub_reset_tt_proc;
1385 hub->tt_msg[0].udev = udev;
1386 hub->tt_msg[1].hdr.pm_callback = &uhub_reset_tt_proc;
1387 hub->tt_msg[1].udev = udev;
1389 /* if self powered hub, give ports maximum current */
1391 hub->portpower = USB_MAX_POWER;
1393 hub->portpower = USB_MIN_POWER;
1437 * These are the events on the bus when a hub is attached:
1439 * Get hub descriptor (see above)
1463 struct usb_port *up = hub->ports + x;
1536 free(udev->hub, M_USBDEV);
1538 udev->hub = NULL;
1546 * Called from process context when the hub is gone.
1553 struct usb_hub *hub = sc->sc_udev->hub;
1558 if (hub == NULL) /* must be partially working */
1565 for (x = 0; x != hub->nports; x++) {
1567 child = usb_bus_port_get_device(bus, hub->ports + x);
1583 &hub->tt_msg[0], &hub->tt_msg[1]);
1588 free(hub, M_USBDEV);
1590 sc->sc_udev->hub = NULL;
1626 uhub_find_iface_index(struct usb_hub *hub, device_t child,
1635 nports = hub->nports;
1637 udev = usb_bus_port_get_device(hub->hubudev->bus,
1638 hub->ports + x);
1663 struct usb_hub *hub;
1673 hub = sc->sc_udev->hub;
1676 uhub_find_iface_index(hub, child, &res);
1678 DPRINTF("device not on hub\n");
1708 struct usb_hub *hub;
1719 hub = sc->sc_udev->hub;
1722 uhub_find_iface_index(hub, child, &res);
1724 DPRINTF("device not on hub\n");
1855 struct usb_hub *hub;
1876 hub = udev->parent_hs_hub->hub;
1878 slot = usb_intr_find_best_slot(hub->uframe_usage,
1883 hub->uframe_usage[x] += len;
2606 /* resume parent hub first */
2711 if (udev->hub != NULL) {
2712 nports = udev->hub->nports;
2717 udev->hub->ports + x);