Lines Matching refs:descriptor

235 		hub->descriptor->u.ss.bHubHdrDecLat * 100;  in usb_set_lpm_mel()
243 total_mel += (__le16_to_cpu(hub->descriptor->u.ss.wHubDelay) + in usb_set_lpm_mel()
1481 hub->descriptor = kzalloc(sizeof(*hub->descriptor), GFP_KERNEL); in hub_configure()
1482 if (!hub->descriptor) { in hub_configure()
1491 ret = get_hub_descriptor(hdev, hub->descriptor); in hub_configure()
1501 if (hub->descriptor->bNbrPorts > maxchild) { in hub_configure()
1505 } else if (hub->descriptor->bNbrPorts == 0) { in hub_configure()
1516 u32 delay = __le16_to_cpu(hub->descriptor->u.ss.wHubDelay); in hub_configure()
1525 maxchild = hub->descriptor->bNbrPorts; in hub_configure()
1535 wHubCharacteristics = le16_to_cpu(hub->descriptor->wHubCharacteristics); in hub_configure()
1550 portstr[i] = hub->descriptor->u.hs.DeviceRemovable in hub_configure()
1587 switch (hdev->descriptor.bDeviceProtocol) { in hub_configure()
1609 hdev->descriptor.bDeviceProtocol); in hub_configure()
1616 if (hdev->descriptor.bDeviceProtocol != 0) { in hub_configure()
1650 hub->descriptor->bPwrOn2PwrGood * 2); in hub_configure()
1674 hub->descriptor->bHubContrCurrent; in hub_configure()
1677 hub->descriptor->bHubContrCurrent); in hub_configure()
1768 usb_hub_adjust_deviceremovable(hdev, hub->descriptor); in hub_configure()
1836 kfree(hub->descriptor); in hub_disconnect()
1883 if (hdev->descriptor.bNumConfigurations > 1 || in hub_probe()
2405 u16 bcdDevice = le16_to_cpu(udev->descriptor.bcdDevice); in announce_device()
2409 le16_to_cpu(udev->descriptor.idVendor), in announce_device()
2410 le16_to_cpu(udev->descriptor.idProduct), in announce_device()
2414 udev->descriptor.iManufacturer, in announce_device()
2415 udev->descriptor.iProduct, in announce_device()
2416 udev->descriptor.iSerialNumber); in announce_device()
2536 udev->product = usb_cache_string(udev, udev->descriptor.iProduct); in usb_enumerate_device()
2538 udev->descriptor.iManufacturer); in usb_enumerate_device()
2539 udev->serial = usb_cache_string(udev, udev->descriptor.iSerialNumber); in usb_enumerate_device()
2599 wHubCharacteristics = le16_to_cpu(hub->descriptor->wHubCharacteristics); in set_usb_port_removable()
2605 if (le16_to_cpu(hub->descriptor->u.ss.DeviceRemovable) in set_usb_port_removable()
2609 if (hub->descriptor->u.hs.DeviceRemovable[port / 8] & (1 << (port % 8))) in set_usb_port_removable()
5049 maxp0 != udev->descriptor.bMaxPacketSize0) { in hub_port_init()
5121 if (!initial && maxp0 != udev->descriptor.bMaxPacketSize0) { in hub_port_init()
5184 udev->descriptor = *descr; in hub_port_init()
5196 (le16_to_cpu(udev->descriptor.bcdUSB) < 0x0300)) { in hub_port_init()
5205 if (le16_to_cpu(udev->descriptor.bcdUSB) >= 0x0201) { in hub_port_init()
5267 remaining = hdev->bus_mA - hub->descriptor->bHubContrCurrent; in hub_power_remaining()
5317 if (memcmp(&udev->descriptor, new_device_descriptor, in descriptors_changed()
5341 for (index = 0; index < udev->descriptor.bNumConfigurations; index++) { in descriptors_changed()
5351 for (index = 0; index < udev->descriptor.bNumConfigurations; index++) { in descriptors_changed()
5373 length = usb_string(udev, udev->descriptor.iSerialNumber, in descriptors_changed()
5512 if (udev->descriptor.bDeviceClass == USB_CLASS_HUB in hub_port_connect()
5539 if (le16_to_cpu(udev->descriptor.bcdUSB) >= 0x0200 in hub_port_connect()
6174 struct usb_device_descriptor descriptor; in usb_reset_and_verify_device() local
6214 ret = hub_port_init(parent_hub, udev, port1, i, &descriptor); in usb_reset_and_verify_device()
6224 if (descriptors_changed(udev, &descriptor, bos)) { in usb_reset_and_verify_device()