Lines Matching refs:nports
338 for (x = 0; x != udev->hub->nports; x++) { in uhub_reset_tt_callback()
395 for (x = 0; x != hub->nports; x++) { in uhub_count_active_host_ports()
518 if (hub->nports == 1) in uhub_explore_sub()
1087 for (x = 0; x != hub->nports; x++) { in uhub_explore()
1197 uint8_t nports; in uhub_query_info() local
1203 nports = 0; in uhub_query_info()
1217 nports = hubdesc20.bNbrPorts; in uhub_query_info()
1218 if (nports > 127) in uhub_query_info()
1219 nports = 127; in uhub_query_info()
1232 nports = hubdesc30.bNbrPorts; in uhub_query_info()
1233 if (nports > 16) in uhub_query_info()
1234 nports = 16; in uhub_query_info()
1243 *pnports = nports; in uhub_query_info()
1266 uint16_t nports; in uhub_attach() local
1339 nports = hubdesc20.bNbrPorts; in uhub_attach()
1346 if (nports >= 8) { in uhub_attach()
1348 if (nports > 127) { in uhub_attach()
1354 err = usbd_req_get_hub_descriptor(udev, NULL, &hubdesc20, nports); in uhub_attach()
1361 if (hubdesc20.bNbrPorts != nports) { in uhub_attach()
1384 nports = hubdesc30.bNbrPorts; in uhub_attach()
1391 if (nports >= 8) { in uhub_attach()
1393 if (nports > ((udev->parent_hub != NULL) ? 15 : 127)) { in uhub_attach()
1399 err = usbd_req_get_ss_hub_descriptor(udev, NULL, &hubdesc30, nports); in uhub_attach()
1406 if (hubdesc30.bNbrPorts != nports) { in uhub_attach()
1415 nports = 1; in uhub_attach()
1420 if (nports == 0) { in uhub_attach()
1426 hub = bsd_malloc(sizeof(hub[0]) + (sizeof(hub->ports[0]) * nports), in uhub_attach()
1439 hub->nports = nports; in uhub_attach()
1501 for (x = 0; x != nports; x++) { in uhub_attach()
1539 for (x = 0; x != nports; x++) { in uhub_attach()
1581 "removable, %s powered\n", nports, (nports != 1) ? "s" : "", in uhub_attach()
1645 for (x = 0; x != hub->nports; x++) { in uhub_detach()
1710 uint8_t nports; in uhub_find_iface_index() local
1714 nports = hub->nports; in uhub_find_iface_index()
1715 for (x = 0; x != nports; x++) { in uhub_find_iface_index()
2837 uint8_t nports; in usb_dev_suspend_peer() local
2857 nports = udev->hub->nports; in usb_dev_suspend_peer()
2860 for (x = 0; x != nports; x++) { in usb_dev_suspend_peer()