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()
512 buffer += d->bLength; in usb_parse_interface()
513 size -= d->bLength; in usb_parse_interface()
515 if (d->bLength < USB_DT_INTERFACE_SIZE) in usb_parse_interface()
626 config->desc.bLength < USB_DT_CONFIG_SIZE || in usb_parse_configuration()
627 config->desc.bLength > size) { in usb_parse_configuration()
630 config->desc.bDescriptorType, config->desc.bLength); in usb_parse_configuration()
635 buffer += config->desc.bLength; in usb_parse_configuration()
636 size -= config->desc.bLength; in usb_parse_configuration()
650 (buffer2 += header->bLength, size2 -= header->bLength)) { in usb_parse_configuration()
660 if ((header->bLength > size2) || (header->bLength < 2)) { in usb_parse_configuration()
663 cfgno, header->bLength); in usb_parse_configuration()
672 if (d->bLength < USB_DT_INTERFACE_SIZE) { in usb_parse_configuration()
675 "skipping\n", cfgno, d->bLength); in usb_parse_configuration()
715 if (d->bLength < USB_DT_INTERFACE_ASSOCIATION_SIZE) { in usb_parse_configuration()
718 cfgno, d->bLength); in usb_parse_configuration()
995 if (ret < USB_DT_BOS_SIZE || bos->bLength < USB_DT_BOS_SIZE) { in usb_get_bos_descriptor()
1003 length = bos->bLength; in usb_get_bos_descriptor()
1037 if (total_len < sizeof(*cap) || total_len < cap->bLength) { in usb_get_bos_descriptor()
1042 length = cap->bLength; in usb_get_bos_descriptor()