Lines Matching refs:descriptor

191 		(hub->descriptor->u.ss.bHubHdrDecLat * 100);  in usb_set_lpm_mel()
1381 hub->descriptor = kmalloc(sizeof(*hub->descriptor), GFP_KERNEL); in hub_configure()
1382 if (!hub->descriptor) { in hub_configure()
1391 ret = get_hub_descriptor(hdev, hub->descriptor); in hub_configure()
1395 } else if (hub->descriptor->bNbrPorts > USB_MAXCHILDREN) { in hub_configure()
1399 } else if (hub->descriptor->bNbrPorts == 0) { in hub_configure()
1405 maxchild = hub->descriptor->bNbrPorts; in hub_configure()
1415 wHubCharacteristics = le16_to_cpu(hub->descriptor->wHubCharacteristics); in hub_configure()
1430 portstr[i] = hub->descriptor->u.hs.DeviceRemovable in hub_configure()
1467 switch (hdev->descriptor.bDeviceProtocol) { in hub_configure()
1489 hdev->descriptor.bDeviceProtocol); in hub_configure()
1496 if (hdev->descriptor.bDeviceProtocol != 0) { in hub_configure()
1530 hub->descriptor->bPwrOn2PwrGood * 2); in hub_configure()
1554 hub->descriptor->bHubContrCurrent; in hub_configure()
1557 hub->descriptor->bHubContrCurrent); in hub_configure()
1648 usb_hub_adjust_deviceremovable(hdev, hub->descriptor); in hub_configure()
1706 kfree(hub->descriptor); in hub_disconnect()
2223 le16_to_cpu(udev->descriptor.idVendor), in announce_device()
2224 le16_to_cpu(udev->descriptor.idProduct)); in announce_device()
2227 udev->descriptor.iManufacturer, in announce_device()
2228 udev->descriptor.iProduct, in announce_device()
2229 udev->descriptor.iSerialNumber); in announce_device()
2342 udev->product = usb_cache_string(udev, udev->descriptor.iProduct); in usb_enumerate_device()
2344 udev->descriptor.iManufacturer); in usb_enumerate_device()
2345 udev->serial = usb_cache_string(udev, udev->descriptor.iSerialNumber); in usb_enumerate_device()
2403 wHubCharacteristics = le16_to_cpu(hub->descriptor->wHubCharacteristics); in set_usb_port_removable()
2409 if (le16_to_cpu(hub->descriptor->u.ss.DeviceRemovable) in set_usb_port_removable()
2413 if (hub->descriptor->u.hs.DeviceRemovable[port / 8] & (1 << (port % 8))) in set_usb_port_removable()
2583 result = usb_get_device_descriptor(usb_dev, sizeof(usb_dev->descriptor)); in usb_authorize_device()
4438 udev->descriptor.bMaxPacketSize0 = in hub_port_init()
4523 (le16_to_cpu(udev->descriptor.bcdUSB) < 0x0300)) { in hub_port_init()
4532 if (udev->descriptor.bMaxPacketSize0 == 0xff || in hub_port_init()
4536 i = udev->descriptor.bMaxPacketSize0; in hub_port_init()
4553 if (retval < (signed)sizeof(udev->descriptor)) { in hub_port_init()
4564 if (udev->wusb == 0 && le16_to_cpu(udev->descriptor.bcdUSB) >= 0x0201) { in hub_port_init()
4624 remaining = hdev->bus_mA - hub->descriptor->bHubContrCurrent; in hub_power_remaining()
4771 if (udev->descriptor.bDeviceClass == USB_CLASS_HUB in hub_port_connect()
4798 if (le16_to_cpu(udev->descriptor.bcdUSB) >= 0x0200 in hub_port_connect()
5242 if (memcmp(&udev->descriptor, old_device_descriptor, in descriptors_changed()
5266 for (index = 0; index < udev->descriptor.bNumConfigurations; index++) { in descriptors_changed()
5277 for (index = 0; index < udev->descriptor.bNumConfigurations; index++) { in descriptors_changed()
5299 length = usb_string(udev, udev->descriptor.iSerialNumber, in descriptors_changed()
5354 struct usb_device_descriptor descriptor = udev->descriptor; in usb_reset_and_verify_device() local
5411 if (descriptors_changed(udev, &descriptor, bos)) { in usb_reset_and_verify_device()
5413 udev->descriptor = descriptor; /* for disconnect() calls */ in usb_reset_and_verify_device()