Lines Matching defs:hub
1090 struct usbd_hub *hub = hdev->ud_hub;
1093 KASSERT(hub != NULL);
1095 prop_dictionary_set_uint8(dict, "hub-address", hdev->ud_addr);
1096 for (p=1; p <= hub->uh_hubdesc.bNbrPorts; ++p) {
1097 if (hub->uh_ports[p-1].up_dev == dev) {
1098 prop_dictionary_set_uint8(dict, "hub-port", p);
1399 struct usbd_device *hub;
1455 /* Locate port on upstream high speed hub */
1456 for (adev = dev, hub = up->up_parent;
1457 hub != NULL && hub->ud_speed != USB_SPEED_HIGH;
1458 adev = hub, hub = hub->ud_myhub)
1460 if (hub) {
1461 for (p = 1; p <= hub->ud_hub->uh_hubdesc.bNbrPorts; p++) {
1462 if (hub->ud_hub->uh_ports[p - 1].up_dev == adev) {
1464 &hub->ud_hub->uh_ports[p - 1];
1494 * The root hub can never fail to give the initial descriptor,
1601 if (port == 0) { /* root hub */