Home
last modified time | relevance | path

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

/ohos5.0/base/usb/usb_manager/services/native/src/
H A Dusb_descriptor_parser.cpp152 if (descriptorHeader.bLength > (length - cursor)) { in ParseConfigDescriptors()
156 switch (descriptorHeader.bDescriptorType) { in ParseConfigDescriptors()
158 if (descriptorHeader.bLength != sizeof(UsbdConfigDescriptor)) { in ParseConfigDescriptors()
172 if (descriptorHeader.bLength != NORMAL_ENDPOINT_DESCRIPTOR in ParseConfigDescriptors()
186 cursor += descriptorHeader.bLength; in ParseConfigDescriptors()
262 if (descriptorHeader.bLength > length) { in ParseInterfaceDescriptor()
269 cursor += descriptorHeader.bLength; in ParseInterfaceDescriptor()
271 descriptorHeader.bLength); in ParseInterfaceDescriptor()
317 if (descriptorHeader.bLength > length) { in ParseEndpointDescriptor()
324 cursor += descriptorHeader.bLength; in ParseEndpointDescriptor()
[all …]