• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/usb/core/

Lines Matching refs:descriptor

61 	struct usb_hub_descriptor *descriptor;	/* class descriptor */
222 for (i = 0; i < hub->descriptor->bNbrPorts; i++) {
271 cursor %= hub->descriptor->bNbrPorts;
477 unsigned pgood_delay = hub->descriptor->bPwrOn2PwrGood * 2;
479 le16_to_cpu(hub->descriptor->wHubCharacteristics);
492 for (port1 = 1; port1 <= hub->descriptor->bNbrPorts; port1++)
621 hub->descriptor = kmalloc(sizeof(*hub->descriptor), GFP_KERNEL);
622 if (!hub->descriptor) {
623 message = "can't kmalloc hub descriptor";
628 /* Request the entire hub descriptor.
629 * hub->descriptor can handle USB_MAXCHILDREN ports,
632 ret = get_hub_descriptor(hdev, hub->descriptor,
633 sizeof(*hub->descriptor));
635 message = "can't read hub descriptor";
637 } else if (hub->descriptor->bNbrPorts > USB_MAXCHILDREN) {
643 hdev->maxchild = hub->descriptor->bNbrPorts;
647 wHubCharacteristics = le16_to_cpu(hub->descriptor->wHubCharacteristics);
654 portstr[i] = hub->descriptor->DeviceRemovable
691 switch (hdev->descriptor.bDeviceProtocol) {
710 hdev->descriptor.bDeviceProtocol);
717 if (hdev->descriptor.bDeviceProtocol != 0) {
751 hub->descriptor->bPwrOn2PwrGood * 2);
771 hub->descriptor->bHubContrCurrent);
775 hub->descriptor->bHubContrCurrent;
841 /* hub_disconnect() frees urb and descriptor */
869 kfree(hub->descriptor);
870 hub->descriptor = NULL;
906 dev_err (&intf->dev, "bad descriptor, ignoring hub\n");
1277 * configured. The device descriptor is available, but not descriptors
1307 udev->product = usb_cache_string(udev, udev->descriptor.iProduct);
1309 udev->descriptor.iManufacturer);
1310 udev->serial = usb_cache_string(udev, udev->descriptor.iSerialNumber);
1315 udev->descriptor.iManufacturer,
1316 udev->descriptor.iProduct,
1317 udev->descriptor.iSerialNumber);
1326 * "host" to "peripheral". The OTG descriptor helps figure this out.
1334 /* descriptor may appear anywhere in config */
2084 /* Reset device, (re)assign address, get device descriptor.
2137 * reported as 0xff in the device descriptor). WUSB1.0[4.8.1].
2148 * the device descriptor to get bMaxPacketSize0 and
2195 * first 8 bytes of the device descriptor to get the ep0 maxpacket
2237 udev->descriptor.bMaxPacketSize0 =
2251 dev_err(&udev->dev, "device descriptor "
2283 dev_err(&udev->dev, "device descriptor "
2296 i = udev->descriptor.bMaxPacketSize0 == 0xff?
2297 512 : udev->descriptor.bMaxPacketSize0;
2311 if (retval < (signed)sizeof(udev->descriptor)) {
2312 dev_err(&udev->dev, "device descriptor read/%s, error %d\n",
2362 remaining = hdev->bus_mA - hub->descriptor->bHubContrCurrent;
2405 u16 wHubCharacteristics = le16_to_cpu(hub->descriptor->wHubCharacteristics);
2491 /* reset and get descriptor */
2502 if (udev->descriptor.bDeviceClass == USB_CLASS_HUB
2528 if (le16_to_cpu(udev->descriptor.bcdUSB) >= 0x0200
2621 hdev->state, hub->descriptor
2622 ? hub->descriptor->bNbrPorts
2674 for (i = 1; i <= hub->descriptor->bNbrPorts; i++) {
2880 for (index = 0; index < udev->descriptor.bNumConfigurations; index++) {
2890 for (index = 0; index < udev->descriptor.bNumConfigurations; index++) {
2909 return index != udev->descriptor.bNumConfigurations;
2941 struct usb_device_descriptor descriptor = udev->descriptor;
2977 if (memcmp(&udev->descriptor, &descriptor, sizeof descriptor)
2980 udev->descriptor = descriptor; /* for disconnect() calls */