Lines Matching refs:bLength

34 		buffer += h->bLength;  in find_next_descriptor()
35 size -= h->bLength; in find_next_descriptor()
90 buffer += h->bLength; in usb_parse_eusb2_isoc_endpoint_companion()
91 size -= h->bLength; in usb_parse_eusb2_isoc_endpoint_companion()
130 ep->ss_ep_comp.bLength = USB_DT_SS_EP_COMP_SIZE; in usb_parse_ss_endpoint_companion()
138 buffer += desc->bLength; in usb_parse_ss_endpoint_companion()
139 size -= desc->bLength; in usb_parse_ss_endpoint_companion()
302 buffer += d->bLength; in usb_parse_endpoint()
303 size -= d->bLength; in usb_parse_endpoint()
305 if (d->bLength >= USB_DT_ENDPOINT_AUDIO_SIZE) in usb_parse_endpoint()
307 else if (d->bLength >= USB_DT_ENDPOINT_SIZE) in usb_parse_endpoint()
312 cfgno, inum, asnum, d->bLength); in usb_parse_endpoint()
566 buffer += d->bLength; in usb_parse_interface()
567 size -= d->bLength; in usb_parse_interface()
569 if (d->bLength < USB_DT_INTERFACE_SIZE) in usb_parse_interface()
680 config->desc.bLength < USB_DT_CONFIG_SIZE || in usb_parse_configuration()
681 config->desc.bLength > size) { in usb_parse_configuration()
684 config->desc.bDescriptorType, config->desc.bLength); in usb_parse_configuration()
689 buffer += config->desc.bLength; in usb_parse_configuration()
690 size -= config->desc.bLength; in usb_parse_configuration()
704 (buffer2 += header->bLength, size2 -= header->bLength)) { in usb_parse_configuration()
714 if ((header->bLength > size2) || (header->bLength < 2)) { in usb_parse_configuration()
717 cfgno, header->bLength); in usb_parse_configuration()
726 if (d->bLength < USB_DT_INTERFACE_SIZE) { in usb_parse_configuration()
729 "skipping\n", cfgno, d->bLength); in usb_parse_configuration()
769 if (d->bLength < USB_DT_INTERFACE_ASSOCIATION_SIZE) { in usb_parse_configuration()
772 cfgno, d->bLength); in usb_parse_configuration()
1049 if (ret < USB_DT_BOS_SIZE || bos->bLength < USB_DT_BOS_SIZE) { in usb_get_bos_descriptor()
1057 length = bos->bLength; in usb_get_bos_descriptor()
1091 if (total_len < sizeof(*cap) || total_len < cap->bLength) { in usb_get_bos_descriptor()
1096 length = cap->bLength; in usb_get_bos_descriptor()