Lines Matching refs:nports
344 for (x = 0; x != udev->hub->nports; x++) { in uhub_reset_tt_callback()
401 for (x = 0; x != hub->nports; x++) { in uhub_count_active_host_ports()
1031 for (x = 0; x != hub->nports; x++) { in uhub_explore()
1147 uint8_t nports; in uhub_query_info() local
1153 nports = 0; in uhub_query_info()
1167 nports = hubdesc20.bNbrPorts; in uhub_query_info()
1168 if (nports > 127) in uhub_query_info()
1169 nports = 127; in uhub_query_info()
1182 nports = hubdesc30.bNbrPorts; in uhub_query_info()
1183 if (nports > 16) in uhub_query_info()
1184 nports = 16; in uhub_query_info()
1193 *pnports = nports; in uhub_query_info()
1216 uint16_t nports; in uhub_attach() local
1276 nports = hubdesc20.bNbrPorts; in uhub_attach()
1283 if (nports >= 8) { in uhub_attach()
1285 if (nports > 127) { in uhub_attach()
1291 err = usbd_req_get_hub_descriptor(udev, NULL, &hubdesc20, nports); in uhub_attach()
1298 if (hubdesc20.bNbrPorts != nports) { in uhub_attach()
1321 nports = hubdesc30.bNbrPorts; in uhub_attach()
1328 if (nports >= 8) { in uhub_attach()
1330 if (nports > ((udev->parent_hub != NULL) ? 15 : 127)) { in uhub_attach()
1336 err = usbd_req_get_ss_hub_descriptor(udev, NULL, &hubdesc30, nports); in uhub_attach()
1343 if (hubdesc30.bNbrPorts != nports) { in uhub_attach()
1352 nports = 1; in uhub_attach()
1357 if (nports == 0) { in uhub_attach()
1361 if (nports > USB_MAX_PORTS) { in uhub_attach()
1366 hub = malloc(sizeof(hub[0]) + (sizeof(hub->ports[0]) * nports), in uhub_attach()
1379 hub->nports = nports; in uhub_attach()
1459 for (x = 0; x != nports; x++) { in uhub_attach()
1515 "removable, %s powered\n", nports, (nports != 1) ? "s" : "", in uhub_attach()
1563 for (x = 0; x != hub->nports; x++) { in uhub_detach()
1622 uint8_t nports; in uhub_find_iface_index() local
1626 nports = hub->nports; in uhub_find_iface_index()
1627 for (x = 0; x != nports; x++) { in uhub_find_iface_index()
2751 uint8_t nports; in usb_dev_suspend_peer() local
2770 nports = udev->hub->nports; in usb_dev_suspend_peer()
2773 for (x = 0; x != nports; x++) { in usb_dev_suspend_peer()