Lines Matching refs:hub
16 * @hub: hub to which device is connected
19 * Look up the node of a USB device given its parent hub device and one-based
25 struct device_node *usb_of_get_device_node(struct usb_device *hub, int port1)
30 for_each_child_of_node(hub->dev.of_node, node) {
79 static bool usb_of_has_devices_or_graph(const struct usb_device *hub)
81 const struct device_node *np = hub->dev.of_node;
95 * usb_of_get_connect_type() - get a USB hub's port connect_type
96 * @hub: hub to which port is for @port1
99 * Get the connect_type of @port1 based on the device node for @hub. If the
101 * @hub has a child device has with a 'reg' property equal to @port1 the
106 * Return: A connect_type for @port1 based on the device node for @hub.
108 enum usb_port_connect_type usb_of_get_connect_type(struct usb_device *hub, int port1)
114 if (!usb_of_has_devices_or_graph(hub))
120 np = hub->dev.of_node;
140 child = usb_of_get_device_node(hub, port1);