Lines Matching full:hub
13 #include "hub.h"
196 struct usb_hub *hub = usb_hub_to_struct_hub(hdev); in usb_port_runtime_resume() local
202 if (!hub) in usb_port_runtime_resume()
204 if (hub->in_reset) { in usb_port_runtime_resume()
205 set_bit(port1, hub->power_bits); in usb_port_runtime_resume()
220 retval = usb_hub_set_port_power(hdev, hub, port1, true); in usb_port_runtime_resume()
221 msleep(hub_power_on_good_delay(hub)); in usb_port_runtime_resume()
232 if (hub_port_debounce_be_connected(hub, port1) < 0) { in usb_port_runtime_resume()
235 set_bit(port1, hub->warm_reset_bits); in usb_port_runtime_resume()
239 if (!test_and_set_bit(port1, hub->child_usage_bits)) { in usb_port_runtime_resume()
255 struct usb_hub *hub = usb_hub_to_struct_hub(hdev); in usb_port_runtime_suspend() local
260 if (!hub) in usb_port_runtime_suspend()
262 if (hub->in_reset) in usb_port_runtime_suspend()
276 retval = usb_hub_set_port_power(hdev, hub, port1, false); in usb_port_runtime_suspend()
441 * For each usb hub device in the system check to see if it is in the
478 static void find_and_link_peer(struct usb_hub *hub, int port1) in find_and_link_peer() argument
480 struct usb_port *port_dev = hub->ports[port1 - 1], *peer; in find_and_link_peer()
481 struct usb_device *hdev = hub->hdev; in find_and_link_peer()
531 int usb_hub_create_port_device(struct usb_hub *hub, int port1) in usb_hub_create_port_device() argument
534 struct usb_device *hdev = hub->hdev; in usb_hub_create_port_device()
547 hub->ports[port1 - 1] = port_dev; in usb_hub_create_port_device()
549 set_bit(port1, hub->power_bits); in usb_hub_create_port_device()
550 port_dev->dev.parent = hub->intfdev; in usb_hub_create_port_device()
559 if (hub_is_superspeed(hub->hdev)) in usb_hub_create_port_device()
561 dev_set_name(&port_dev->dev, "%s-port%d", dev_name(&hub->hdev->dev), in usb_hub_create_port_device()
578 find_and_link_peer(hub, port1); in usb_hub_create_port_device()
583 * and the hub has been fully registered (hdev->maxchild set). in usb_hub_create_port_device()
591 * Keep hidden the ability to enable port-poweroff if the hub in usb_hub_create_port_device()
594 if (!hub_is_port_power_switchable(hub)) in usb_hub_create_port_device()
614 void usb_hub_remove_port_device(struct usb_hub *hub, int port1) in usb_hub_remove_port_device() argument
616 struct usb_port *port_dev = hub->ports[port1 - 1]; in usb_hub_remove_port_device()