Lines Matching refs:descriptor
410 puts("USB IF descriptor overflowed buffer!\n");
447 puts("USB EP descriptor overflowed buffer!\n");
451 puts("Endpoint descriptor out of order!\n");
484 puts("USB EPC descriptor overflowed buffer!\n");
488 puts("EPC descriptor out of order!\n");
576 printf("unable to get descriptor, error %lX\n",
579 printf("config descriptor too short " \
707 * get class descriptor
761 /* Try to read the string descriptor by asking for the maximum
765 /* If that failed try to read the descriptor length, then
777 /* There might be extra junk at the end of the descriptor */
812 debug("error getting string descriptor 0 " \
816 debug("string descriptor 0 too short\n");
930 printf("unable to get device descriptor (error=%d)\n",
934 printf("USB device descriptor short read (expected %i, got %i)\n",
939 memcpy(&dev->descriptor, tmpbuf, sizeof(dev->descriptor));
956 * send 64-byte GET-DEVICE-DESCRIPTOR request. Since the descriptor is
963 dev->descriptor.bMaxPacketSize0 = 8;
966 dev->descriptor.bMaxPacketSize0 = 64;
969 dev->epmaxpacketin[0] = dev->descriptor.bMaxPacketSize0;
970 dev->epmaxpacketout[0] = dev->descriptor.bMaxPacketSize0;
977 * we've received the entire descriptor. The reasoning is:
996 dev->epmaxpacketin[0] = dev->descriptor.bMaxPacketSize0;
997 dev->epmaxpacketout[0] = dev->descriptor.bMaxPacketSize0;
998 switch (dev->descriptor.bMaxPacketSize0) {
1055 * If we haven't read device descriptor before, read it here
1078 le16_to_cpus(&dev->descriptor.bcdUSB);
1079 le16_to_cpus(&dev->descriptor.idVendor);
1080 le16_to_cpus(&dev->descriptor.idProduct);
1081 le16_to_cpus(&dev->descriptor.bcdDevice);
1085 * about this first Get Descriptor request. If there are any other
1103 dev->descriptor.idVendor, dev->descriptor.idProduct);
1130 dev->descriptor.iManufacturer, dev->descriptor.iProduct,
1131 dev->descriptor.iSerialNumber);
1135 if (dev->descriptor.iManufacturer)
1136 usb_string(dev, dev->descriptor.iManufacturer,
1138 if (dev->descriptor.iProduct)
1139 usb_string(dev, dev->descriptor.iProduct,
1141 if (dev->descriptor.iSerialNumber)
1142 usb_string(dev, dev->descriptor.iSerialNumber,