Lines Matching refs:nports
339 for (x = 0; x != udev->hub->nports; x++) { in uhub_reset_tt_callback()
396 for (x = 0; x != hub->nports; x++) { in uhub_count_active_host_ports()
519 if (hub->nports == 1) in uhub_explore_sub()
1087 for (x = 0; x != hub->nports; x++) { in uhub_explore()
1201 uint8_t nports; in uhub_query_info() local
1207 nports = 0; in uhub_query_info()
1221 nports = hubdesc20.bNbrPorts; in uhub_query_info()
1222 if (nports > 127) in uhub_query_info()
1223 nports = 127; in uhub_query_info()
1236 nports = hubdesc30.bNbrPorts; in uhub_query_info()
1237 if (nports > 16) in uhub_query_info()
1238 nports = 16; in uhub_query_info()
1247 *pnports = nports; in uhub_query_info()
1270 uint16_t nports; in uhub_attach() local
1343 nports = hubdesc20.bNbrPorts; in uhub_attach()
1350 if (nports >= 8) { in uhub_attach()
1352 if (nports > 127) { in uhub_attach()
1358 err = usbd_req_get_hub_descriptor(udev, NULL, &hubdesc20, nports); in uhub_attach()
1365 if (hubdesc20.bNbrPorts != nports) { in uhub_attach()
1388 nports = hubdesc30.bNbrPorts; in uhub_attach()
1395 if (nports >= 8) { in uhub_attach()
1397 if (nports > ((udev->parent_hub != NULL) ? 15 : 127)) { in uhub_attach()
1403 err = usbd_req_get_ss_hub_descriptor(udev, NULL, &hubdesc30, nports); in uhub_attach()
1410 if (hubdesc30.bNbrPorts != nports) { in uhub_attach()
1419 nports = 1; in uhub_attach()
1424 if (nports == 0) { in uhub_attach()
1430 hub = bsd_malloc(sizeof(hub[0]) + (sizeof(hub->ports[0]) * nports), in uhub_attach()
1443 hub->nports = nports; in uhub_attach()
1505 for (x = 0; x != nports; x++) { in uhub_attach()
1543 for (x = 0; x != nports; x++) { in uhub_attach()
1585 "removable, %s powered\n", nports, (nports != 1) ? "s" : "", in uhub_attach()
1649 for (x = 0; x != hub->nports; x++) { in uhub_detach()
1715 uint8_t nports; in uhub_find_iface_index() local
1719 nports = hub->nports; in uhub_find_iface_index()
1720 for (x = 0; x != nports; x++) { in uhub_find_iface_index()
2850 uint8_t nports; in usb_dev_suspend_peer() local
2870 nports = udev->hub->nports; in usb_dev_suspend_peer()
2873 for (x = 0; x != nports; x++) { in usb_dev_suspend_peer()