Lines Matching refs:unionDes

785     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()
832 if ((unionDes->common.bDescriptorType == 0x00U) || in USB_HostParseDeviceConfigurationDescriptor()
833 (unionDes->common.bLength == 0x00U)) /* the descriptor data is wrong */ in USB_HostParseDeviceConfigurationDescriptor()
837 … deviceInstance->configuration.configurationExtensionLength += unionDes->common.bLength; in USB_HostParseDeviceConfigurationDescriptor()
838unionDes = (usb_descriptor_union_t *)((uint32_t)unionDes + unionDes->common.bLength); in USB_HostParseDeviceConfigurationDescriptor()
848 while ((uint32_t)unionDes < endPos) in USB_HostParseDeviceConfigurationDescriptor()
850 if (((((uint32_t)unionDes) + 1U) < endPos) && in USB_HostParseDeviceConfigurationDescriptor()
851 (unionDes->common.bDescriptorType == USB_DESCRIPTOR_TYPE_INTERFACE)) in USB_HostParseDeviceConfigurationDescriptor()
854 if ((((uint32_t)unionDes) + 9U) > endPos) in USB_HostParseDeviceConfigurationDescriptor()
858 if (unionDes->interface.bAlternateSetting == 0x00U) in USB_HostParseDeviceConfigurationDescriptor()
874 interfaceParse->interfaceDesc = &unionDes->interface; in USB_HostParseDeviceConfigurationDescriptor()
877 interfaceParse->interfaceIndex = unionDes->interface.bInterfaceNumber; in USB_HostParseDeviceConfigurationDescriptor()
878 if (unionDes->common.bLength == 0x00U) /* the descriptor data is wrong */ in USB_HostParseDeviceConfigurationDescriptor()
882unionDes = (usb_descriptor_union_t *)((uint32_t)unionDes + unionDes->common.bLength); in USB_HostParseDeviceConfigurationDescriptor()
883 while ((uint32_t)unionDes < endPos) in USB_HostParseDeviceConfigurationDescriptor()
885 if (((((uint32_t)unionDes) + 1U) < endPos) && in USB_HostParseDeviceConfigurationDescriptor()
886 (unionDes->common.bDescriptorType != USB_DESCRIPTOR_TYPE_INTERFACE) && in USB_HostParseDeviceConfigurationDescriptor()
887 (unionDes->common.bDescriptorType != USB_DESCRIPTOR_TYPE_ENDPOINT)) in USB_HostParseDeviceConfigurationDescriptor()
891 interfaceParse->interfaceExtension = (uint8_t *)unionDes; in USB_HostParseDeviceConfigurationDescriptor()
893 if ((unionDes->common.bDescriptorType == 0x00U) || in USB_HostParseDeviceConfigurationDescriptor()
894 … (unionDes->common.bLength == 0x00U)) /* the descriptor data is wrong */ in USB_HostParseDeviceConfigurationDescriptor()
898 interfaceParse->interfaceExtensionLength += unionDes->common.bLength; in USB_HostParseDeviceConfigurationDescriptor()
899unionDes = (usb_descriptor_union_t *)((uint32_t)unionDes + unionDes->common.bLength); in USB_HostParseDeviceConfigurationDescriptor()
910 if (((((uint32_t)unionDes) + 1U) >= endPos) || in USB_HostParseDeviceConfigurationDescriptor()
911 (unionDes->common.bDescriptorType != USB_DESCRIPTOR_TYPE_ENDPOINT) || in USB_HostParseDeviceConfigurationDescriptor()
922 if (((((uint32_t)unionDes) + 1U) >= endPos) || in USB_HostParseDeviceConfigurationDescriptor()
923 (unionDes->common.bDescriptorType != USB_DESCRIPTOR_TYPE_ENDPOINT)) in USB_HostParseDeviceConfigurationDescriptor()
932 temp = (void *)unionDes; in USB_HostParseDeviceConfigurationDescriptor()
936 … if (unionDes->common.bLength == 0x00U) /* the descriptor data is wrong */ in USB_HostParseDeviceConfigurationDescriptor()
940unionDes = (usb_descriptor_union_t *)((uint32_t)unionDes + unionDes->common.bLength); in USB_HostParseDeviceConfigurationDescriptor()
941 while ((uint32_t)unionDes < endPos) in USB_HostParseDeviceConfigurationDescriptor()
943 if (((((uint32_t)unionDes) + 1U) < endPos) && in USB_HostParseDeviceConfigurationDescriptor()
944 … (unionDes->common.bDescriptorType != USB_DESCRIPTOR_TYPE_ENDPOINT) && in USB_HostParseDeviceConfigurationDescriptor()
945 … (unionDes->common.bDescriptorType != USB_DESCRIPTOR_TYPE_INTERFACE)) in USB_HostParseDeviceConfigurationDescriptor()
949 epParse->epExtension = (uint8_t *)unionDes; in USB_HostParseDeviceConfigurationDescriptor()
951 if ((unionDes->common.bDescriptorType == 0x00U) || in USB_HostParseDeviceConfigurationDescriptor()
952 … (unionDes->common.bLength == 0x00U)) /* the descriptor data is wrong */ in USB_HostParseDeviceConfigurationDescriptor()
956 epParse->epExtensionLength += unionDes->common.bLength; in USB_HostParseDeviceConfigurationDescriptor()
957 unionDes = in USB_HostParseDeviceConfigurationDescriptor()
958 … (usb_descriptor_union_t *)((uint32_t)unionDes + unionDes->common.bLength); in USB_HostParseDeviceConfigurationDescriptor()
977 interfaceParse->interfaceExtension = (uint8_t *)unionDes; in USB_HostParseDeviceConfigurationDescriptor()
979 if (unionDes->common.bLength == 0x00U) /* the descriptor data is wrong */ in USB_HostParseDeviceConfigurationDescriptor()
983 interfaceParse->interfaceExtensionLength += unionDes->common.bLength; in USB_HostParseDeviceConfigurationDescriptor()
984unionDes = (usb_descriptor_union_t *)((uint32_t)unionDes + unionDes->common.bLength); in USB_HostParseDeviceConfigurationDescriptor()
985 while ((uint32_t)unionDes < endPos) in USB_HostParseDeviceConfigurationDescriptor()
987 if (((((uint32_t)unionDes) + 1U) < endPos) && in USB_HostParseDeviceConfigurationDescriptor()
988 (unionDes->common.bDescriptorType != USB_DESCRIPTOR_TYPE_INTERFACE)) in USB_HostParseDeviceConfigurationDescriptor()
990 if ((unionDes->common.bDescriptorType == 0x00U) || in USB_HostParseDeviceConfigurationDescriptor()
991 … (unionDes->common.bLength == 0x00U)) /* the descriptor data is wrong */ in USB_HostParseDeviceConfigurationDescriptor()
995 interfaceParse->interfaceExtensionLength += unionDes->common.bLength; in USB_HostParseDeviceConfigurationDescriptor()
996unionDes = (usb_descriptor_union_t *)((uint32_t)unionDes + unionDes->common.bLength); in USB_HostParseDeviceConfigurationDescriptor()