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()
218 buffer += d->bLength; in usb_parse_endpoint()
219 size -= d->bLength; in usb_parse_endpoint()
221 if (d->bLength >= USB_DT_ENDPOINT_AUDIO_SIZE) in usb_parse_endpoint()
223 else if (d->bLength >= USB_DT_ENDPOINT_SIZE) in usb_parse_endpoint()
228 cfgno, inum, asnum, d->bLength); in usb_parse_endpoint()
455 buffer += d->bLength; in usb_parse_interface()
456 size -= d->bLength; in usb_parse_interface()
458 if (d->bLength < USB_DT_INTERFACE_SIZE) in usb_parse_interface()
569 config->desc.bLength < USB_DT_CONFIG_SIZE || in usb_parse_configuration()
570 config->desc.bLength > size) { in usb_parse_configuration()
573 config->desc.bDescriptorType, config->desc.bLength); in usb_parse_configuration()
578 buffer += config->desc.bLength; in usb_parse_configuration()
579 size -= config->desc.bLength; in usb_parse_configuration()
593 (buffer2 += header->bLength, size2 -= header->bLength)) { in usb_parse_configuration()
603 if ((header->bLength > size2) || (header->bLength < 2)) { in usb_parse_configuration()
606 cfgno, header->bLength); in usb_parse_configuration()
615 if (d->bLength < USB_DT_INTERFACE_SIZE) { in usb_parse_configuration()
618 "skipping\n", cfgno, d->bLength); in usb_parse_configuration()
658 if (d->bLength < USB_DT_INTERFACE_ASSOCIATION_SIZE) { in usb_parse_configuration()
661 cfgno, d->bLength); in usb_parse_configuration()
940 if (ret < USB_DT_BOS_SIZE || bos->bLength < USB_DT_BOS_SIZE) { in usb_get_bos_descriptor()
948 length = bos->bLength; in usb_get_bos_descriptor()
982 if (total_len < sizeof(*cap) || total_len < cap->bLength) { in usb_get_bos_descriptor()
987 length = cap->bLength; in usb_get_bos_descriptor()