Home
last modified time | relevance | path

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

/external/libusb/libusb/
Ddescriptor.c808 struct libusb_bos_descriptor bos_header, *_bos; in parse_bos() local
818 usbi_parse_descriptor(buffer, "bbwb", &bos_header, host_endian); in parse_bos()
819 if (bos_header.bDescriptorType != LIBUSB_DT_BOS) { in parse_bos()
821 bos_header.bDescriptorType, LIBUSB_DT_BOS); in parse_bos()
824 if (bos_header.bLength < LIBUSB_DT_BOS_SIZE) { in parse_bos()
825 usbi_err(ctx, "invalid bos bLength (%d)", bos_header.bLength); in parse_bos()
828 if (bos_header.bLength > size) { in parse_bos()
830 size, bos_header.bLength); in parse_bos()
835 sizeof(*_bos) + bos_header.bNumDeviceCaps * sizeof(void *)); in parse_bos()
840 buffer += bos_header.bLength; in parse_bos()
[all …]