Lines Matching +full:is +full:- +full:wired
1 // SPDX-License-Identifier: GPL-2.0
15 * usb_of_get_device_node() - get a USB device node
16 * @hub: hub to which device is connected
17 * @port1: one-based index of port
19 * Look up the node of a USB device given its parent hub device and one-based
30 for_each_child_of_node(hub->dev.of_node, node) { in usb_of_get_device_node()
43 * usb_of_has_combined_node() - determine whether a device has a combined node
46 * Determine whether a USB device has a so called combined node which is
47 * shared with its sole interface. This is the case if and only if the device
50 * 1) bDeviceClass is 0 or 9, and
51 * 2) bNumConfigurations is 1, and
52 * 3) bNumInterfaces is 1.
59 struct usb_device_descriptor *ddesc = &udev->descriptor; in usb_of_has_combined_node()
62 if (!udev->dev.of_node) in usb_of_has_combined_node()
65 switch (ddesc->bDeviceClass) { in usb_of_has_combined_node()
68 if (ddesc->bNumConfigurations == 1) { in usb_of_has_combined_node()
69 cdesc = &udev->config->desc; in usb_of_has_combined_node()
70 if (cdesc->bNumInterfaces == 1) in usb_of_has_combined_node()
81 const struct device_node *np = hub->dev.of_node; in usb_of_has_devices_or_graph()
98 * usb_of_get_connect_type() - get a USB hub's port connect_type
99 * @hub: hub to which port is for @port1
100 * @port1: one-based index of port
103 * port is described in the OF graph, the connect_type is "hotplug". If the
105 * connect_type is "hard-wired". If there isn't an OF graph or child node at
106 * all then the connect_type is "unknown". Otherwise, the port is considered
120 /* Assume port is unused if there's a graph or a child node. */ in usb_of_get_connect_type()
123 np = hub->dev.of_node; in usb_of_get_connect_type()
126 * usb-a-connector compatible node, in the OF graph. in usb_of_get_connect_type()
129 ep = of_graph_get_endpoint_by_regs(np, port1, -1); in usb_of_get_connect_type()
140 * Hard-wired ports are child nodes with a reg property corresponding in usb_of_get_connect_type()
153 * usb_of_get_interface_node() - get a USB interface node
170 for_each_child_of_node(udev->dev.of_node, node) { in usb_of_get_interface_node()