• Home
  • Raw
  • Download

Lines Matching refs:hub

225 	struct usb_hub *hub;  in uhub_reset_tt_proc()  local
228 hub = udev->hub; in uhub_reset_tt_proc()
229 if (hub == NULL) in uhub_reset_tt_proc()
231 sc = hub->hubsoftc; in uhub_reset_tt_proc()
257 struct usb_hub *hub; in uhub_tt_buffer_reset_async_locked() local
271 hub = udev->hub; in uhub_tt_buffer_reset_async_locked()
272 if ((hub == NULL) || in uhub_tt_buffer_reset_async_locked()
284 up = hub->ports + port - 1; in uhub_tt_buffer_reset_async_locked()
314 &hub->tt_msg[0], &hub->tt_msg[1]); in uhub_tt_buffer_reset_async_locked()
338 for (x = 0; x != udev->hub->nports; x++) { in uhub_reset_tt_callback()
339 up = udev->hub->ports + x; in uhub_reset_tt_callback()
381 struct usb_hub *hub; in uhub_count_active_host_ports() local
388 hub = udev->hub; in uhub_count_active_host_ports()
389 if (hub == NULL) in uhub_count_active_host_ports()
391 sc = hub->hubsoftc; in uhub_count_active_host_ports()
395 for (x = 0; x != hub->nports; x++) { in uhub_count_active_host_ports()
396 up = hub->ports + x; in uhub_count_active_host_ports()
500 struct usb_hub *hub = dev->hub; in uhub_explore_sub() local
518 if (hub->nports == 1) in uhub_explore_sub()
544 if (child->hub) in uhub_explore_sub()
545 err = (child->hub->explore) (child); in uhub_explore_sub()
671 udev->hub->ports + portno - 1); in uhub_reattach_port()
947 udev->hub->ports + portno - 1); in uhub_suspend_resume_port()
1057 struct usb_hub *hub; in uhub_explore() local
1065 hub = udev->hub; in uhub_explore()
1066 sc = hub->hubsoftc; in uhub_explore()
1087 for (x = 0; x != hub->nports; x++) { in uhub_explore()
1088 up = hub->ports + x; in uhub_explore()
1262 struct usb_hub *hub; in uhub_attach() local
1426 hub = bsd_malloc(sizeof(hub[0]) + (sizeof(hub->ports[0]) * nports), in uhub_attach()
1429 if (hub == NULL) in uhub_attach()
1432 hub = &sc->sc_hub; in uhub_attach()
1434 udev->hub = hub; in uhub_attach()
1437 hub->hubsoftc = sc; in uhub_attach()
1438 hub->explore = &uhub_explore; in uhub_attach()
1439 hub->nports = nports; in uhub_attach()
1440 hub->hubudev = udev; in uhub_attach()
1442 hub->tt_msg[0].hdr.pm_callback = &uhub_reset_tt_proc; in uhub_attach()
1443 hub->tt_msg[0].udev = udev; in uhub_attach()
1444 hub->tt_msg[1].hdr.pm_callback = &uhub_reset_tt_proc; in uhub_attach()
1445 hub->tt_msg[1].udev = udev; in uhub_attach()
1449 hub->portpower = USB_MAX_POWER; in uhub_attach()
1451 hub->portpower = USB_MIN_POWER; in uhub_attach()
1503 struct usb_port *up = hub->ports + x; in uhub_attach()
1600 bsd_free(udev->hub, M_USBDEV); in uhub_attach()
1602 udev->hub = NULL; in uhub_attach()
1616 struct usb_hub *hub; in uhub_detach() local
1627 hub = sc->sc_udev->hub; in uhub_detach()
1629 if (hub == NULL) /* must be partially working */ in uhub_detach()
1645 for (x = 0; x != hub->nports; x++) { in uhub_detach()
1646 child = usb_bus_port_get_device(bus, hub->ports + x); in uhub_detach()
1662 &hub->tt_msg[0], &hub->tt_msg[1]); in uhub_detach()
1667 bsd_free(hub, M_USBDEV); in uhub_detach()
1669 sc->sc_udev->hub = NULL; in uhub_detach()
1705 uhub_find_iface_index(struct usb_hub *hub, device_t child, in uhub_find_iface_index() argument
1714 nports = hub->nports; in uhub_find_iface_index()
1716 udev = usb_bus_port_get_device(hub->hubudev->bus, in uhub_find_iface_index()
1717 hub->ports + x); in uhub_find_iface_index()
1742 struct usb_hub *hub; in uhub_child_location_string() local
1755 hub = sc->sc_udev->hub; in uhub_child_location_string()
1758 uhub_find_iface_index(hub, child, &res); in uhub_child_location_string()
1782 struct usb_hub *hub; in uhub_child_pnpinfo_string() local
1796 hub = sc->sc_udev->hub; in uhub_child_pnpinfo_string()
1799 uhub_find_iface_index(hub, child, &res); in uhub_child_pnpinfo_string()
1929 struct usb_hub *hub; in usb_hs_bandwidth_adjust() local
1950 hub = udev->parent_hs_hub->hub; in usb_hs_bandwidth_adjust()
1952 slot = usb_intr_find_best_slot(hub->uframe_usage, in usb_hs_bandwidth_adjust()
1957 hub->uframe_usage[x] += len; in usb_hs_bandwidth_adjust()
2856 if (udev->hub != NULL) { in usb_dev_suspend_peer()
2857 nports = udev->hub->nports; in usb_dev_suspend_peer()
2862 udev->hub->ports + x); in usb_dev_suspend_peer()