Lines Matching refs:desc
77 unsigned char desc[4096];
362 length = read(fd, device->desc, sizeof(device->desc));
433 struct usb_device_descriptor* desc = (struct usb_device_descriptor*)device->desc;
434 return __le16_to_cpu(desc->idVendor);
439 struct usb_device_descriptor* desc = (struct usb_device_descriptor*)device->desc;
440 return __le16_to_cpu(desc->idProduct);
445 return (struct usb_device_descriptor*)device->desc;
488 struct usb_device_descriptor *desc = (struct usb_device_descriptor *)device->desc;
490 if (desc->iManufacturer)
491 return usb_device_get_string(device, desc->iManufacturer);
498 struct usb_device_descriptor *desc = (struct usb_device_descriptor *)device->desc;
500 if (desc->iProduct)
501 return usb_device_get_string(device, desc->iProduct);
508 struct usb_device_descriptor *desc = (struct usb_device_descriptor *)device->desc;
510 if (desc->iSerialNumber)
511 return usb_device_get_string(device, desc->iSerialNumber);
523 iter->config = device->desc;
524 iter->config_end = device->desc + device->desc_length;
525 iter->curr_desc = device->desc;