Lines Matching refs:hub
1094 struct usbd_hub *hub = hdev->ud_hub;
1097 KASSERT(hub != NULL);
1099 prop_dictionary_set_uint8(dict, "hub-address", hdev->ud_addr);
1100 for (p=1; p <= hub->uh_hubdesc.bNbrPorts; ++p) {
1101 if (hub->uh_ports[p-1].up_dev == dev) {
1102 prop_dictionary_set_uint8(dict, "hub-port", p);
1402 struct usbd_device *hub;
1460 /* Locate port on upstream high speed hub */
1461 for (adev = dev, hub = up->up_parent;
1462 hub != NULL && hub->ud_speed != USB_SPEED_HIGH;
1463 adev = hub, hub = hub->ud_myhub)
1465 if (hub) {
1466 for (p = 1; p <= hub->ud_hub->uh_hubdesc.bNbrPorts; p++) {
1467 if (hub->ud_hub->uh_ports[p - 1].up_dev == adev) {
1469 &hub->ud_hub->uh_ports[p - 1];
1499 * The root hub can never fail to give the initial descriptor,
1606 if (port == 0) { /* root hub */