Lines Matching refs:desc

52     struct libusb_device_descriptor *desc)  in libusb_get_device_descriptor()  argument
57 if ((dev == NULL) || (desc == NULL)) in libusb_get_device_descriptor()
63 desc->bLength = pdesc->bLength; in libusb_get_device_descriptor()
64 desc->bDescriptorType = pdesc->bDescriptorType; in libusb_get_device_descriptor()
65 desc->bcdUSB = pdesc->bcdUSB; in libusb_get_device_descriptor()
66 desc->bDeviceClass = pdesc->bDeviceClass; in libusb_get_device_descriptor()
67 desc->bDeviceSubClass = pdesc->bDeviceSubClass; in libusb_get_device_descriptor()
68 desc->bDeviceProtocol = pdesc->bDeviceProtocol; in libusb_get_device_descriptor()
69 desc->bMaxPacketSize0 = pdesc->bMaxPacketSize0; in libusb_get_device_descriptor()
70 desc->idVendor = pdesc->idVendor; in libusb_get_device_descriptor()
71 desc->idProduct = pdesc->idProduct; in libusb_get_device_descriptor()
72 desc->bcdDevice = pdesc->bcdDevice; in libusb_get_device_descriptor()
73 desc->iManufacturer = pdesc->iManufacturer; in libusb_get_device_descriptor()
74 desc->iProduct = pdesc->iProduct; in libusb_get_device_descriptor()
75 desc->iSerialNumber = pdesc->iSerialNumber; in libusb_get_device_descriptor()
76 desc->bNumConfigurations = pdesc->bNumConfigurations; in libusb_get_device_descriptor()
182 pconfd->bLength = pconf->desc.bLength; in libusb_get_config_descriptor()
183 pconfd->bDescriptorType = pconf->desc.bDescriptorType; in libusb_get_config_descriptor()
184 pconfd->wTotalLength = pconf->desc.wTotalLength; in libusb_get_config_descriptor()
185 pconfd->bNumInterfaces = pconf->desc.bNumInterfaces; in libusb_get_config_descriptor()
186 pconfd->bConfigurationValue = pconf->desc.bConfigurationValue; in libusb_get_config_descriptor()
187 pconfd->iConfiguration = pconf->desc.iConfiguration; in libusb_get_config_descriptor()
188 pconfd->bmAttributes = pconf->desc.bmAttributes; in libusb_get_config_descriptor()
189 pconfd->MaxPower = pconf->desc.bMaxPower; in libusb_get_config_descriptor()
222 ifd->bLength = pinf->desc.bLength; in libusb_get_config_descriptor()
223 ifd->bDescriptorType = pinf->desc.bDescriptorType; in libusb_get_config_descriptor()
224 ifd->bInterfaceNumber = pinf->desc.bInterfaceNumber; in libusb_get_config_descriptor()
225 ifd->bAlternateSetting = pinf->desc.bAlternateSetting; in libusb_get_config_descriptor()
226 ifd->bNumEndpoints = pinf->desc.bNumEndpoints; in libusb_get_config_descriptor()
227 ifd->bInterfaceClass = pinf->desc.bInterfaceClass; in libusb_get_config_descriptor()
228 ifd->bInterfaceSubClass = pinf->desc.bInterfaceSubClass; in libusb_get_config_descriptor()
229 ifd->bInterfaceProtocol = pinf->desc.bInterfaceProtocol; in libusb_get_config_descriptor()
230 ifd->iInterface = pinf->desc.iInterface; in libusb_get_config_descriptor()
240 endd->bLength = pend->desc.bLength; in libusb_get_config_descriptor()
241 endd->bDescriptorType = pend->desc.bDescriptorType; in libusb_get_config_descriptor()
242 endd->bEndpointAddress = pend->desc.bEndpointAddress; in libusb_get_config_descriptor()
243 endd->bmAttributes = pend->desc.bmAttributes; in libusb_get_config_descriptor()
244 endd->wMaxPacketSize = pend->desc.wMaxPacketSize; in libusb_get_config_descriptor()
245 endd->bInterval = pend->desc.bInterval; in libusb_get_config_descriptor()
246 endd->bRefresh = pend->desc.bRefresh; in libusb_get_config_descriptor()
247 endd->bSynchAddress = pend->desc.bSynchAddress; in libusb_get_config_descriptor()
608 struct libusb_usb_2_0_extension_descriptor *desc; in libusb_get_usb_2_0_extension_descriptor() local
616 desc = malloc(sizeof(*desc)); in libusb_get_usb_2_0_extension_descriptor()
617 if (desc == NULL) in libusb_get_usb_2_0_extension_descriptor()
620 desc->bLength = LIBUSB_BT_USB_2_0_EXTENSION_SIZE; in libusb_get_usb_2_0_extension_descriptor()
621 desc->bDescriptorType = dev_cap->bDescriptorType; in libusb_get_usb_2_0_extension_descriptor()
622 desc->bDevCapabilityType = dev_cap->bDevCapabilityType; in libusb_get_usb_2_0_extension_descriptor()
623 desc->bmAttributes = in libusb_get_usb_2_0_extension_descriptor()
629 *usb_2_0_extension = desc; in libusb_get_usb_2_0_extension_descriptor()
646 struct libusb_ss_usb_device_capability_descriptor *desc; in libusb_get_ss_usb_device_capability_descriptor() local
654 desc = malloc(sizeof(*desc)); in libusb_get_ss_usb_device_capability_descriptor()
655 if (desc == NULL) in libusb_get_ss_usb_device_capability_descriptor()
658 desc->bLength = LIBUSB_BT_SS_USB_DEVICE_CAPABILITY_SIZE; in libusb_get_ss_usb_device_capability_descriptor()
659 desc->bDescriptorType = dev_cap->bDescriptorType; in libusb_get_ss_usb_device_capability_descriptor()
660 desc->bDevCapabilityType = dev_cap->bDevCapabilityType; in libusb_get_ss_usb_device_capability_descriptor()
661 desc->bmAttributes = dev_cap->dev_capability_data[0]; in libusb_get_ss_usb_device_capability_descriptor()
662 desc->wSpeedSupported = dev_cap->dev_capability_data[1] | in libusb_get_ss_usb_device_capability_descriptor()
664 desc->bFunctionalitySupport = dev_cap->dev_capability_data[3]; in libusb_get_ss_usb_device_capability_descriptor()
665 desc->bU1DevExitLat = dev_cap->dev_capability_data[4]; in libusb_get_ss_usb_device_capability_descriptor()
666 desc->wU2DevExitLat = dev_cap->dev_capability_data[5] | in libusb_get_ss_usb_device_capability_descriptor()
669 *ss_usb_device_capability = desc; in libusb_get_ss_usb_device_capability_descriptor()
686 struct libusb_container_id_descriptor *desc; in libusb_get_container_id_descriptor() local
694 desc = malloc(sizeof(*desc)); in libusb_get_container_id_descriptor()
695 if (desc == NULL) in libusb_get_container_id_descriptor()
698 desc->bLength = LIBUSB_BT_CONTAINER_ID_SIZE; in libusb_get_container_id_descriptor()
699 desc->bDescriptorType = dev_cap->bDescriptorType; in libusb_get_container_id_descriptor()
700 desc->bDevCapabilityType = dev_cap->bDevCapabilityType; in libusb_get_container_id_descriptor()
701 desc->bReserved = dev_cap->dev_capability_data[0]; in libusb_get_container_id_descriptor()
702 memcpy(desc->ContainerID, dev_cap->dev_capability_data + 1, in libusb_get_container_id_descriptor()
703 sizeof(desc->ContainerID)); in libusb_get_container_id_descriptor()
705 *container_id = desc; in libusb_get_container_id_descriptor()