Lines Matching refs:hub

65 SDT_PROBE_DEFINE1(usb, hub, explore, start,
66 "struct usbd_device *"/*hub*/);
67 SDT_PROBE_DEFINE1(usb, hub, explore, done,
68 "struct usbd_device *"/*hub*/);
70 SDT_PROBE_DEFINE3(usb, hub, explore, rescan,
71 "struct usbd_device *"/*hub*/,
74 SDT_PROBE_DEFINE5(usb, hub, explore, portstat,
75 "struct usbd_device *"/*hub*/,
80 SDT_PROBE_DEFINE3(usb, hub, explore, disconnect,
81 "struct usbd_device *"/*hub*/,
84 SDT_PROBE_DEFINE5(usb, hub, explore, reset,
85 "struct usbd_device *"/*hub*/,
90 SDT_PROBE_DEFINE4(usb, hub, explore, connect,
91 "struct usbd_device *"/*hub*/,
95 SDT_PROBE_DEFINE4(usb, hub, explore, connected,
96 "struct usbd_device *"/*hub*/,
101 SDT_PROBE_DEFINE2(usb, hub, interrupt, ,
102 "struct usbd_device *"/*hub*/,
182 * hub to usb and hub to hub
215 /* don't issue UDESC_HUB to SS hub, or it would stall */
250 DPRINTFN(1, "getting hub descriptor", 0, 0, 0, 0);
307 struct usbd_hub *hub = NULL;
344 "hub depth (%d) exceeded, hub ignored\n",
349 /* Get hub descriptor. */
354 DPRINTF("getting hub descriptor failed, uhub%jd error %jd",
367 aprint_debug_dev(self, "no ports, hub ignored\n");
371 hub = kmem_alloc(sizeof(*hub) + (nports-1) * sizeof(struct usbd_port),
373 dev->ud_hub = hub;
375 hub->uh_explore = uhub_explore;
376 hub->uh_hubdesc = hubdesc;
379 aprint_debug_dev(self, "setting hub depth %u\n",
431 /* Wait with power off for a while if we are not a root hub */
442 * These are the events on the bus when a hub is attached:
444 * Get hub descriptor (see above)
468 struct usbd_port *up = &hub->uh_ports[p - 1];
473 /* Self powered hub, give ports maximum current. */
481 up->up_tt->utt_hub = hub;
501 /* Wait for stable power if we are not a root hub */
521 if (hub)
522 kmem_free(hub,
523 sizeof(*hub) + (nports-1) * sizeof(struct usbd_port));
555 SDT_PROBE1(usb, hub, explore, start, dev);
564 SDT_PROBE3(usb, hub, explore, rescan,
573 if (PORTSTAT_ISSET(sc, 0)) { /* hub status change */
578 DPRINTF("uhub%jd get hub status failed, err %jd",
584 SDT_PROBE5(usb, hub, explore, portstat,
621 SDT_PROBE5(usb, hub, explore, portstat,
712 SDT_PROBE3(usb, hub, explore, disconnect,
722 SDT_PROBE3(usb, hub, explore, disconnect,
758 SDT_PROBE5(usb, hub, explore, reset,
801 * parent hub.
825 /* SS hub port */
831 /* HS/FS/LS hub port */
843 SDT_PROBE4(usb, hub, explore, connect,
871 SDT_PROBE4(usb, hub, explore, connected,
897 SDT_PROBE1(usb, hub, explore, done, dev);
903 * Called from process context when the hub is gone.
910 struct usbd_hub *hub = sc->sc_hub->ud_hub;
918 if (hub == NULL) /* Must be partially working */
924 nports = hub->uh_hubdesc.bNbrPorts;
926 rup = &hub->uh_ports[port - 1];
943 if (hub->uh_ports[0].up_tt)
944 kmem_free(hub->uh_ports[0].up_tt,
947 kmem_free(hub,
948 sizeof(*hub) + (nports-1) * sizeof(struct usbd_port));
1001 panic("hub not fully initialised, but child deleted?");
1038 SDT_PROBE2(usb, hub, interrupt, , sc->sc_hub, status);