Lines Matching +full:usb +full:- +full:hub
1 // SPDX-License-Identifier: GPL-2.0
11 #include <linux/usb/of.h>
14 * usb_of_get_device_node() - get a USB device node
15 * @hub: hub to which device is connected
16 * @port1: one-based index of port
18 * Look up the node of a USB device given its parent hub device and one-based
24 struct device_node *usb_of_get_device_node(struct usb_device *hub, int port1) in usb_of_get_device_node() argument
29 for_each_child_of_node(hub->dev.of_node, node) { in usb_of_get_device_node()
42 * usb_of_has_combined_node() - determine whether a device has a combined node
43 * @udev: USB device
45 * Determine whether a USB device has a so called combined node which is
58 struct usb_device_descriptor *ddesc = &udev->descriptor; in usb_of_has_combined_node()
61 if (!udev->dev.of_node) in usb_of_has_combined_node()
64 switch (ddesc->bDeviceClass) { in usb_of_has_combined_node()
67 if (ddesc->bNumConfigurations == 1) { in usb_of_has_combined_node()
68 cdesc = &udev->config->desc; in usb_of_has_combined_node()
69 if (cdesc->bNumInterfaces == 1) in usb_of_has_combined_node()
79 * usb_of_get_interface_node() - get a USB interface node
80 * @udev: USB device of interface
84 * Look up the node of a USB interface given its USB device, configuration
96 for_each_child_of_node(udev->dev.of_node, node) { in usb_of_get_interface_node()