Lines Matching refs:bLength
34 buffer += h->bLength; in find_next_descriptor()
35 size -= h->bLength; in find_next_descriptor()
71 ep->ss_ep_comp.bLength = USB_DT_SS_EP_COMP_SIZE; in usb_parse_ss_endpoint_companion()
155 buffer += d->bLength; in usb_parse_endpoint()
156 size -= d->bLength; in usb_parse_endpoint()
158 if (d->bLength >= USB_DT_ENDPOINT_AUDIO_SIZE) in usb_parse_endpoint()
160 else if (d->bLength >= USB_DT_ENDPOINT_SIZE) in usb_parse_endpoint()
165 cfgno, inum, asnum, d->bLength); in usb_parse_endpoint()
327 buffer += d->bLength; in usb_parse_interface()
328 size -= d->bLength; in usb_parse_interface()
330 if (d->bLength < USB_DT_INTERFACE_SIZE) in usb_parse_interface()
438 config->desc.bLength < USB_DT_CONFIG_SIZE || in usb_parse_configuration()
439 config->desc.bLength > size) { in usb_parse_configuration()
442 config->desc.bDescriptorType, config->desc.bLength); in usb_parse_configuration()
447 buffer += config->desc.bLength; in usb_parse_configuration()
448 size -= config->desc.bLength; in usb_parse_configuration()
463 (buffer2 += header->bLength, size2 -= header->bLength)) { in usb_parse_configuration()
473 if ((header->bLength > size2) || (header->bLength < 2)) { in usb_parse_configuration()
476 cfgno, header->bLength); in usb_parse_configuration()
485 if (d->bLength < USB_DT_INTERFACE_SIZE) { in usb_parse_configuration()
488 "skipping\n", cfgno, d->bLength); in usb_parse_configuration()
803 length = bos->bLength; in usb_get_bos_descriptor()
834 length = cap->bLength; in usb_get_bos_descriptor()