Lines Matching +full:super +full:- +full:speed
1 // SPDX-License-Identifier: GPL-2.0-or-later
9 * 2005-2007 Takahiro Hirofuchi
25 ((dev)->attr = le16toh((descr)->attr)) \
28 ((dev)->attr = (descr)->attr) \
33 enum usb_device_speed speed; member
37 .speed = USB_SPEED_UNKNOWN,
41 .speed = USB_SPEED_LOW,
42 .name = "low-speed",
45 .speed = USB_SPEED_FULL,
46 .name = "full-speed",
49 .speed = USB_SPEED_HIGH,
50 .name = "high-speed",
53 .speed = USB_SPEED_WIRELESS,
57 .speed = USB_SPEED_SUPER,
58 .name = "super-speed",
71 const char *speed; in read_usb_vudc_device() local
80 return -1; in read_usb_vudc_device()
96 strncpy(dev->path, path, SYSFS_PATH_MAX - 1); in read_usb_vudc_device()
97 dev->path[SYSFS_PATH_MAX - 1] = '\0'; in read_usb_vudc_device()
99 dev->speed = USB_SPEED_UNKNOWN; in read_usb_vudc_device()
100 speed = udev_device_get_sysattr_value(sdev, "current_speed"); in read_usb_vudc_device()
101 if (speed) { in read_usb_vudc_device()
103 if (!strcmp(speed_names[i].name, speed)) { in read_usb_vudc_device()
104 dev->speed = speed_names[i].speed; in read_usb_vudc_device()
111 dev->bNumInterfaces = 0; in read_usb_vudc_device()
112 dev->bConfigurationValue = 0; in read_usb_vudc_device()
113 dev->busnum = 0; in read_usb_vudc_device()
116 strncpy(dev->busid, name, SYSFS_BUS_ID_SIZE - 1); in read_usb_vudc_device()
117 dev->busid[SYSFS_BUS_ID_SIZE - 1] = '\0'; in read_usb_vudc_device()
121 return -1; in read_usb_vudc_device()
136 hdriver->ndevs = 0; in usbip_device_driver_open()
137 INIT_LIST_HEAD(&hdriver->edev_list); in usbip_device_driver_open()