Lines Matching refs:desc
83 unsigned char desc[MAX_DESCRIPTORS_LENGTH]; member
379 length = read(fd, device->desc, sizeof(device->desc)); in usb_device_new()
452 struct usb_device_descriptor* desc = (struct usb_device_descriptor*)device->desc; in usb_device_get_vendor_id() local
453 return __le16_to_cpu(desc->idVendor); in usb_device_get_vendor_id()
458 struct usb_device_descriptor* desc = (struct usb_device_descriptor*)device->desc; in usb_device_get_product_id() local
459 return __le16_to_cpu(desc->idProduct); in usb_device_get_product_id()
463 return (struct usb_device_descriptor*)device->desc; in usb_device_get_device_descriptor()
471 return device->desc; in usb_device_get_raw_descriptors()
560 struct usb_device_descriptor *desc = (struct usb_device_descriptor *)device->desc; in usb_device_get_manufacturer_name() local
561 return usb_device_get_string(device, desc->iManufacturer, timeout); in usb_device_get_manufacturer_name()
566 struct usb_device_descriptor *desc = (struct usb_device_descriptor *)device->desc; in usb_device_get_product_name() local
567 return usb_device_get_string(device, desc->iProduct, timeout); in usb_device_get_product_name()
572 struct usb_device_descriptor *desc = (struct usb_device_descriptor *)device->desc; in usb_device_get_version() local
573 return desc->bcdUSB; in usb_device_get_version()
578 struct usb_device_descriptor *desc = (struct usb_device_descriptor *)device->desc; in usb_device_get_serial() local
579 return usb_device_get_string(device, desc->iSerialNumber, timeout); in usb_device_get_serial()
589 iter->config = device->desc; in usb_descriptor_iter_init()
590 iter->config_end = device->desc + device->desc_length; in usb_descriptor_iter_init()
591 iter->curr_desc = device->desc; in usb_descriptor_iter_init()