Lines Matching refs:desc
85 unsigned char desc[4096]; member
371 length = read(fd, device->desc, sizeof(device->desc)); in usb_device_new()
442 struct usb_device_descriptor* desc = (struct usb_device_descriptor*)device->desc; in usb_device_get_vendor_id() local
443 return __le16_to_cpu(desc->idVendor); in usb_device_get_vendor_id()
448 struct usb_device_descriptor* desc = (struct usb_device_descriptor*)device->desc; in usb_device_get_product_id() local
449 return __le16_to_cpu(desc->idProduct); in usb_device_get_product_id()
454 return (struct usb_device_descriptor*)device->desc; in usb_device_get_device_descriptor()
501 struct usb_device_descriptor *desc = (struct usb_device_descriptor *)device->desc; in usb_device_get_manufacturer_name() local
502 return usb_device_get_string(device, desc->iManufacturer, timeout); in usb_device_get_manufacturer_name()
507 struct usb_device_descriptor *desc = (struct usb_device_descriptor *)device->desc; in usb_device_get_product_name() local
508 return usb_device_get_string(device, desc->iProduct, timeout); in usb_device_get_product_name()
513 struct usb_device_descriptor *desc = (struct usb_device_descriptor *)device->desc; in usb_device_get_version() local
514 return desc->bcdUSB; in usb_device_get_version()
519 struct usb_device_descriptor *desc = (struct usb_device_descriptor *)device->desc; in usb_device_get_serial() local
520 return usb_device_get_string(device, desc->iSerialNumber, timeout); in usb_device_get_serial()
530 iter->config = device->desc; in usb_descriptor_iter_init()
531 iter->config_end = device->desc + device->desc_length; in usb_descriptor_iter_init()
532 iter->curr_desc = device->desc; in usb_descriptor_iter_init()