Home
last modified time | relevance | path

Searched refs:ud_hub (Results 1 – 6 of 6) sorted by relevance

/netbsd-src/sys/dev/usb/
H A Duhub.c373 dev->ud_hub = hub; in uhub_attach()
374 dev->ud_hub->uh_hubsoftc = sc; in uhub_attach()
489 pwrdly = dev->ud_hub->uh_hubdesc.bPwrOn2PwrGood * UHD_PWRON_FACTOR in uhub_attach()
524 dev->ud_hub = NULL; in uhub_attach()
532 usb_hub_descriptor_t *hd = &dev->ud_hub->uh_hubdesc; in uhub_explore()
533 struct uhub_softc *sc = dev->ud_hub->uh_hubsoftc; in uhub_explore()
565 dev, port, &dev->ud_hub->uh_ports[port - 1]); in uhub_explore()
566 subdev = dev->ud_hub->uh_ports[port - 1].up_dev; in uhub_explore()
599 up = &dev->ud_hub->uh_ports[port - 1]; in uhub_explore()
625 if (up->up_dev != NULL && up->up_dev->ud_hub != NULL) in uhub_explore()
[all …]
H A Dusb_subr.c1090 struct usbd_hub *hub = hdev->ud_hub; in usbd_properties()
1461 for (p = 1; p <= hub->ud_hub->uh_hubdesc.bNbrPorts; p++) { in usbd_new_device()
1462 if (hub->ud_hub->uh_ports[p - 1].up_dev == adev) { in usbd_new_device()
1464 &hub->ud_hub->uh_ports[p - 1]; in usbd_new_device()
1799 if (!dev->ud_hub) { in usbd_fill_deviceinfo()
1804 const int nports = dev->ud_hub->uh_hubdesc.bNbrPorts; in usbd_fill_deviceinfo()
1806 p = &dev->ud_hub->uh_ports[i - 1]; in usbd_fill_deviceinfo()
H A Dusbdivar.h222 struct usbd_hub *ud_hub; /* only if this is a hub */ member
H A Dusb.c498 if (dev->ud_hub == NULL) { in usb_doattach()
1199 bus->ub_roothub->ud_hub->uh_explore(bus->ub_roothub); in usb_discover()
H A Dxhci.c3690 for (p = 1; p <= hub->ud_hub->uh_hubdesc.bNbrPorts; p++) { in xhci_setup_route()
3691 if (hub->ud_hub->uh_ports[p - 1].up_dev == adev) { in xhci_setup_route()
3692 dev->ud_myhsport = &hub->ud_hub->uh_ports[p - 1]; in xhci_setup_route()
3760 /* dev->ud_hub is valid after reading UDESC_HUB */ in xhci_setup_tthub()
3761 if (ishub && dev->ud_hub) { in xhci_setup_tthub()
3762 usb_hub_descriptor_t *hd = &dev->ud_hub->uh_hubdesc; in xhci_setup_tthub()
/netbsd-src/sys/compat/common/
H A Dusb_subr_30.c170 if (!dev->ud_hub) { in usbd_fill_deviceinfo30()
175 const u_int nports = dev->ud_hub->uh_hubdesc.bNbrPorts; in usbd_fill_deviceinfo30()
178 p = &dev->ud_hub->uh_ports[i - 1]; in usbd_fill_deviceinfo30()