Lines Matching defs:nports
337 for (x = 0; x != udev->hub->nports; x++) {
394 for (x = 0; x != hub->nports; x++) {
517 if (hub->nports == 1)
1086 for (x = 0; x != hub->nports; x++) {
1196 uint8_t nports;
1202 nports = 0;
1216 nports = hubdesc20.bNbrPorts;
1217 if (nports > 127)
1218 nports = 127;
1231 nports = hubdesc30.bNbrPorts;
1232 if (nports > 16)
1233 nports = 16;
1242 *pnports = nports;
1265 uint16_t nports;
1338 nports = hubdesc20.bNbrPorts;
1345 if (nports >= 8) {
1347 if (nports > 127) {
1353 err = usbd_req_get_hub_descriptor(udev, NULL, &hubdesc20, nports);
1360 if (hubdesc20.bNbrPorts != nports) {
1383 nports = hubdesc30.bNbrPorts;
1390 if (nports >= 8) {
1392 if (nports > ((udev->parent_hub != NULL) ? 15 : 127)) {
1398 err = usbd_req_get_ss_hub_descriptor(udev, NULL, &hubdesc30, nports);
1405 if (hubdesc30.bNbrPorts != nports) {
1414 nports = 1;
1419 if (nports == 0) {
1425 hub = bsd_malloc(sizeof(hub[0]) + (sizeof(hub->ports[0]) * nports),
1438 hub->nports = nports;
1500 for (x = 0; x != nports; x++) {
1538 for (x = 0; x != nports; x++) {
1580 "removable, %s powered\n", nports, (nports != 1) ? "s" : "",
1644 for (x = 0; x != hub->nports; x++) {
1709 uint8_t nports;
1713 nports = hub->nports;
1714 for (x = 0; x != nports; x++) {
2836 uint8_t nports;
2856 nports = udev->hub->nports;
2859 for (x = 0; x != nports; x++) {