Lines Matching refs:desc

53     struct libusb_device_descriptor *desc)
58 if ((dev == NULL) || (desc == NULL))
64 desc->bLength = pdesc->bLength;
65 desc->bDescriptorType = pdesc->bDescriptorType;
66 desc->bcdUSB = pdesc->bcdUSB;
67 desc->bDeviceClass = pdesc->bDeviceClass;
68 desc->bDeviceSubClass = pdesc->bDeviceSubClass;
69 desc->bDeviceProtocol = pdesc->bDeviceProtocol;
70 desc->bMaxPacketSize0 = pdesc->bMaxPacketSize0;
71 desc->idVendor = pdesc->idVendor;
72 desc->idProduct = pdesc->idProduct;
73 desc->bcdDevice = pdesc->bcdDevice;
74 desc->iManufacturer = pdesc->iManufacturer;
75 desc->iProduct = pdesc->iProduct;
76 desc->iSerialNumber = pdesc->iSerialNumber;
77 desc->bNumConfigurations = pdesc->bNumConfigurations;
183 pconfd->bLength = pconf->desc.bLength;
184 pconfd->bDescriptorType = pconf->desc.bDescriptorType;
185 pconfd->wTotalLength = pconf->desc.wTotalLength;
186 pconfd->bNumInterfaces = pconf->desc.bNumInterfaces;
187 pconfd->bConfigurationValue = pconf->desc.bConfigurationValue;
188 pconfd->iConfiguration = pconf->desc.iConfiguration;
189 pconfd->bmAttributes = pconf->desc.bmAttributes;
190 pconfd->MaxPower = pconf->desc.bMaxPower;
223 ifd->bLength = pinf->desc.bLength;
224 ifd->bDescriptorType = pinf->desc.bDescriptorType;
225 ifd->bInterfaceNumber = pinf->desc.bInterfaceNumber;
226 ifd->bAlternateSetting = pinf->desc.bAlternateSetting;
227 ifd->bNumEndpoints = pinf->desc.bNumEndpoints;
228 ifd->bInterfaceClass = pinf->desc.bInterfaceClass;
229 ifd->bInterfaceSubClass = pinf->desc.bInterfaceSubClass;
230 ifd->bInterfaceProtocol = pinf->desc.bInterfaceProtocol;
231 ifd->iInterface = pinf->desc.iInterface;
241 endd->bLength = pend->desc.bLength;
242 endd->bDescriptorType = pend->desc.bDescriptorType;
243 endd->bEndpointAddress = pend->desc.bEndpointAddress;
244 endd->bmAttributes = pend->desc.bmAttributes;
245 endd->wMaxPacketSize = pend->desc.wMaxPacketSize;
246 endd->bInterval = pend->desc.bInterval;
247 endd->bRefresh = pend->desc.bRefresh;
248 endd->bSynchAddress = pend->desc.bSynchAddress;
609 struct libusb_usb_2_0_extension_descriptor *desc;
617 desc = malloc(sizeof(*desc));
618 if (desc == NULL)
621 desc->bLength = LIBUSB_BT_USB_2_0_EXTENSION_SIZE;
622 desc->bDescriptorType = dev_cap->bDescriptorType;
623 desc->bDevCapabilityType = dev_cap->bDevCapabilityType;
624 desc->bmAttributes =
630 *usb_2_0_extension = desc;
647 struct libusb_ss_usb_device_capability_descriptor *desc;
655 desc = malloc(sizeof(*desc));
656 if (desc == NULL)
659 desc->bLength = LIBUSB_BT_SS_USB_DEVICE_CAPABILITY_SIZE;
660 desc->bDescriptorType = dev_cap->bDescriptorType;
661 desc->bDevCapabilityType = dev_cap->bDevCapabilityType;
662 desc->bmAttributes = dev_cap->dev_capability_data[0];
663 desc->wSpeedSupported = dev_cap->dev_capability_data[1] |
665 desc->bFunctionalitySupport = dev_cap->dev_capability_data[3];
666 desc->bU1DevExitLat = dev_cap->dev_capability_data[4];
667 desc->wU2DevExitLat = dev_cap->dev_capability_data[5] |
670 *ss_usb_device_capability = desc;
687 struct libusb_container_id_descriptor *desc;
695 desc = malloc(sizeof(*desc));
696 if (desc == NULL)
699 desc->bLength = LIBUSB_BT_CONTAINER_ID_SIZE;
700 desc->bDescriptorType = dev_cap->bDescriptorType;
701 desc->bDevCapabilityType = dev_cap->bDevCapabilityType;
702 desc->bReserved = dev_cap->dev_capability_data[0];
703 memcpy(desc->ContainerID, dev_cap->dev_capability_data + 1,
704 sizeof(desc->ContainerID));
706 *container_id = desc;