Lines Matching defs:nports
211 int nports;
228 nports = hssd.bNbrPorts;
229 if (dev->ud_depth != 0 && nports > UHD_SS_NPORTS_MAX) {
231 nports, UHD_SS_NPORTS_MAX, 0, 0);
232 nports = hd->bNbrPorts = UHD_SS_NPORTS_MAX;
234 rmvlen = (nports + 7) / 8;
252 nports = hd->bNbrPorts;
253 if (!err && nports > 7) {
255 USB_HUB_DESCRIPTOR_SIZE + (nports+1) / 8);
309 int p, port, nports, nremov, pwrdly;
352 nports = hubdesc.bNbrPorts;
359 for (nremov = 0, port = 1; port <= nports; port++)
363 nports, nports != 1 ? "s" : "", nremov,
366 if (nports == 0) {
371 hub = kmem_alloc(sizeof(*hub) + (nports-1) * sizeof(struct usbd_port),
411 sc->sc_statuslen = (nports + 1 + 7) / 8;
462 if (UHUB_IS_HIGH_SPEED(sc) && nports > 0) {
463 tts = kmem_alloc((UHUB_IS_SINGLE_TT(sc) ? 1 : nports) *
467 for (p = 1; p <= nports; p++) {
491 for (port = 1; port <= nports; port++) {
523 sizeof(*hub) + (nports-1) * sizeof(struct usbd_port));
912 int nports, port, rc;
924 nports = hub->uh_hubdesc.bNbrPorts;
925 for (port = 1; port <= nports; port++) {
945 (UHUB_IS_SINGLE_TT(sc) ? 1 : nports) *
948 sizeof(*hub) + (nports-1) * sizeof(struct usbd_port));
993 int nports;
1003 nports = devhub->ud_hub->uh_hubdesc.bNbrPorts;
1004 for (port = 1; port <= nports; port++) {