Lines Matching defs:descriptor

89  * 10 seconds to send reply for the initial 64-byte descriptor request.
91 /* define initial 64-byte descriptor request timeout in milliseconds */
95 "initial 64-byte descriptor request timeout in milliseconds "
166 /* Skip if the device BOS descriptor couldn't be read */
171 * their USB 2.0 Extended Capabilities BOS descriptor.
228 hub->descriptor->u.ss.bHubHdrDecLat * 100;
236 total_mel += (__le16_to_cpu(hub->descriptor->u.ss.wHubDelay) +
346 /* Skip if the device BOS descriptor couldn't be read */
1453 hub->descriptor = kzalloc(sizeof(*hub->descriptor), GFP_KERNEL);
1454 if (!hub->descriptor) {
1459 /* Request the entire hub descriptor.
1460 * hub->descriptor can handle USB_MAXCHILDREN ports,
1463 ret = get_hub_descriptor(hdev, hub->descriptor);
1465 message = "can't read hub descriptor";
1473 if (hub->descriptor->bNbrPorts > maxchild) {
1477 } else if (hub->descriptor->bNbrPorts == 0) {
1488 u32 delay = __le16_to_cpu(hub->descriptor->u.ss.wHubDelay);
1497 maxchild = hub->descriptor->bNbrPorts;
1507 wHubCharacteristics = le16_to_cpu(hub->descriptor->wHubCharacteristics);
1522 portstr[i] = hub->descriptor->u.hs.DeviceRemovable
1559 switch (hdev->descriptor.bDeviceProtocol) {
1581 hdev->descriptor.bDeviceProtocol);
1588 if (hdev->descriptor.bDeviceProtocol != 0) {
1622 hub->descriptor->bPwrOn2PwrGood * 2);
1646 hub->descriptor->bHubContrCurrent;
1649 hub->descriptor->bHubContrCurrent);
1740 usb_hub_adjust_deviceremovable(hdev, hub->descriptor);
1748 /* hub_disconnect() frees urb and descriptor */
1808 kfree(hub->descriptor);
1919 dev_err(&intf->dev, "bad descriptor, ignoring hub\n");
2362 u16 bcdDevice = le16_to_cpu(udev->descriptor.bcdDevice);
2366 le16_to_cpu(udev->descriptor.idVendor),
2367 le16_to_cpu(udev->descriptor.idProduct),
2371 udev->descriptor.iManufacturer,
2372 udev->descriptor.iProduct,
2373 udev->descriptor.iSerialNumber);
2399 * "host" to "peripheral". The OTG descriptor helps figure this out.
2408 /* descriptor may appear anywhere in config */
2493 udev->product = usb_cache_string(udev, udev->descriptor.iProduct);
2495 udev->descriptor.iManufacturer);
2496 udev->serial = usb_cache_string(udev, udev->descriptor.iSerialNumber);
2556 wHubCharacteristics = le16_to_cpu(hub->descriptor->wHubCharacteristics);
2562 if (le16_to_cpu(hub->descriptor->u.ss.DeviceRemovable)
2566 if (hub->descriptor->u.hs.DeviceRemovable[port / 8] & (1 << (port % 8)))
2582 * enumerated. The device descriptor is available, but not descriptors
3355 * association descriptor shows there's more than one function.
3381 * association descriptor shows there's more than one function.
4289 /* Skip if the device BOS descriptor couldn't be read */
4743 * support bit in the BOS descriptor.
4779 * device's device descriptor. Since we don't already know this value,
4784 * start of the device descriptor, which should work okay regardless of
4838 /* Reset device, (re)assign address, get device descriptor.
4849 * descriptor retrieved from the device will then be stored in
4850 * @udev->descriptor. For an already existing device, @dev_descr
4851 * must be non-NULL. The device descriptor will be stored there,
4852 * not in @udev->descriptor, because descriptors for registered
4922 * the device descriptor to get bMaxPacketSize0 and
4981 * first 8 bytes of the device descriptor to get the ep0 maxpacket
5004 maxp0 != udev->descriptor.bMaxPacketSize0) {
5021 dev_err(&udev->dev, "device descriptor read/64, error %d\n",
5071 "device descriptor read/8, error %d\n",
5076 if (!initial && maxp0 != udev->descriptor.bMaxPacketSize0) {
5100 * maxp0 is the value stored in the device descriptor;
5116 /* Initial guess is wrong; use the descriptor's value */
5124 /* Initial guess is wrong and descriptor's value is invalid */
5134 dev_err(&udev->dev, "device descriptor read/all, error %d\n",
5139 udev->descriptor = *descr;
5146 * and attached to a superspeed hub port, but the device descriptor
5151 (le16_to_cpu(udev->descriptor.bcdUSB) < 0x0300)) {
5152 dev_err(&udev->dev, "got a wrong device descriptor, warm reset device\n");
5160 if (le16_to_cpu(udev->descriptor.bcdUSB) >= 0x0201) {
5222 remaining = hdev->bus_mA - hub->descriptor->bHubContrCurrent;
5272 if (memcmp(&udev->descriptor, new_device_descriptor,
5287 * device descriptor haven't changed, we will assume the
5296 for (index = 0; index < udev->descriptor.bNumConfigurations; index++) {
5306 for (index = 0; index < udev->descriptor.bNumConfigurations; index++) {
5328 length = usb_string(udev, udev->descriptor.iSerialNumber,
5449 /* reset (non-USB 3.0 devices) and get descriptor */
5467 if (udev->descriptor.bDeviceClass == USB_CLASS_HUB
5494 if (le16_to_cpu(udev->descriptor.bcdUSB) >= 0x0200
5628 "can't read device descriptor %ld\n",
5634 "device descriptor has changed\n");
6095 struct usb_device_descriptor descriptor;
6131 ret = hub_port_init(parent_hub, udev, port1, i, &descriptor);
6141 if (descriptors_changed(udev, &descriptor, bos)) {