Lines Matching refs:bLength
39 buffer += h->bLength; in find_next_descriptor()
40 size -= h->bLength; in find_next_descriptor()
98 ep->ss_ep_comp.bLength = USB_DT_SS_EP_COMP_SIZE; in usb_parse_ss_endpoint_companion()
106 buffer += desc->bLength; in usb_parse_ss_endpoint_companion()
107 size -= desc->bLength; in usb_parse_ss_endpoint_companion()
268 buffer += d->bLength; in usb_parse_endpoint()
269 size -= d->bLength; in usb_parse_endpoint()
271 if (d->bLength >= USB_DT_ENDPOINT_AUDIO_SIZE) in usb_parse_endpoint()
273 else if (d->bLength >= USB_DT_ENDPOINT_SIZE) in usb_parse_endpoint()
278 cfgno, inum, asnum, d->bLength); in usb_parse_endpoint()
524 buffer += d->bLength; in usb_parse_interface()
525 size -= d->bLength; in usb_parse_interface()
527 if (d->bLength < USB_DT_INTERFACE_SIZE) in usb_parse_interface()
638 config->desc.bLength < USB_DT_CONFIG_SIZE || in usb_parse_configuration()
639 config->desc.bLength > size) { in usb_parse_configuration()
642 config->desc.bDescriptorType, config->desc.bLength); in usb_parse_configuration()
647 buffer += config->desc.bLength; in usb_parse_configuration()
648 size -= config->desc.bLength; in usb_parse_configuration()
662 (buffer2 += header->bLength, size2 -= header->bLength)) { in usb_parse_configuration()
672 if ((header->bLength > size2) || (header->bLength < 2)) { in usb_parse_configuration()
675 cfgno, header->bLength); in usb_parse_configuration()
684 if (d->bLength < USB_DT_INTERFACE_SIZE) { in usb_parse_configuration()
687 "skipping\n", cfgno, d->bLength); in usb_parse_configuration()
727 if (d->bLength < USB_DT_INTERFACE_ASSOCIATION_SIZE) { in usb_parse_configuration()
730 cfgno, d->bLength); in usb_parse_configuration()
1007 if (ret < USB_DT_BOS_SIZE || bos->bLength < USB_DT_BOS_SIZE) { in usb_get_bos_descriptor()
1015 length = bos->bLength; in usb_get_bos_descriptor()
1049 if (total_len < sizeof(*cap) || total_len < cap->bLength) { in usb_get_bos_descriptor()
1054 length = cap->bLength; in usb_get_bos_descriptor()