Home
last modified time | relevance | path

Searched refs:unionDes (Results 1 – 2 of 2) sorted by relevance

/hal_nxp-3.5.0/mcux/middleware/mcux-sdk-middleware-usb/host/
Dusb_host_devices.c785 usb_descriptor_union_t *unionDes; in USB_HostParseDeviceConfigurationDescriptor() local
810 unionDes = (usb_descriptor_union_t *)temp; in USB_HostParseDeviceConfigurationDescriptor()
813 …if (((((uint32_t)unionDes) + 1U) < endPos) && (unionDes->common.bLength == USB_DESCRIPTOR_LENGTH_C… in USB_HostParseDeviceConfigurationDescriptor()
814 (unionDes->common.bDescriptorType == USB_DESCRIPTOR_TYPE_CONFIGURE)) in USB_HostParseDeviceConfigurationDescriptor()
817 temp = (void *)unionDes; in USB_HostParseDeviceConfigurationDescriptor()
822 unionDes = (usb_descriptor_union_t *)((uint32_t)unionDes + unionDes->common.bLength); in USB_HostParseDeviceConfigurationDescriptor()
823 while ((uint32_t)unionDes < endPos) in USB_HostParseDeviceConfigurationDescriptor()
825 if (((((uint32_t)unionDes) + 1U) < endPos) && in USB_HostParseDeviceConfigurationDescriptor()
826 (unionDes->common.bDescriptorType != USB_DESCRIPTOR_TYPE_INTERFACE)) in USB_HostParseDeviceConfigurationDescriptor()
830 deviceInstance->configuration.configurationExtension = (uint8_t *)unionDes; in USB_HostParseDeviceConfigurationDescriptor()
[all …]
Dusb_host_hci.c687 usb_descriptor_union_t *unionDes; in USB_HostHelperParseAlternateSetting() local
702 unionDes = (usb_descriptor_union_t *)temp; /* interface extend descriptor start */ in USB_HostHelperParseAlternateSetting()
704 (uint32_t)unionDes + in USB_HostHelperParseAlternateSetting()
708 while ((uint32_t)unionDes < endPosition) in USB_HostHelperParseAlternateSetting()
710 if (unionDes->interface.bDescriptorType == USB_DESCRIPTOR_TYPE_INTERFACE) in USB_HostHelperParseAlternateSetting()
712 if (unionDes->interface.bAlternateSetting == alternateSetting) in USB_HostHelperParseAlternateSetting()
718unionDes = (usb_descriptor_union_t *)((uint32_t)unionDes + unionDes->common.bLength); in USB_HostHelperParseAlternateSetting()
723 unionDes = (usb_descriptor_union_t *)((uint32_t)unionDes + unionDes->common.bLength); in USB_HostHelperParseAlternateSetting()
726 if ((uint32_t)unionDes >= endPosition) in USB_HostHelperParseAlternateSetting()
732 interface->interfaceDesc = &unionDes->interface; in USB_HostHelperParseAlternateSetting()
[all …]