Home | History | Annotate | Download | only in libusb

Lines Matching refs:bLength

121 	if (header.bLength > size) {
123 size, header.bLength);
126 if (header.bLength >= ENDPOINT_AUDIO_DESC_LENGTH)
128 else if (header.bLength >= ENDPOINT_DESC_LENGTH)
131 usbi_err(ctx, "invalid endpoint bLength (%d)", header.bLength);
135 buffer += header.bLength;
136 size -= header.bLength;
137 parsed += header.bLength;
144 if (header.bLength < DESC_HEADER_LENGTH) {
146 header.bLength);
148 } else if (header.bLength > size) {
150 size, header.bLength);
162 buffer += header.bLength;
163 size -= header.bLength;
164 parsed += header.bLength;
249 if (ifp->bLength < INTERFACE_DESC_LENGTH) {
250 usbi_err(ctx, "invalid interface bLength (%d)",
251 ifp->bLength);
255 if (ifp->bLength > size) {
257 size, ifp->bLength);
275 buffer += ifp->bLength;
276 parsed += ifp->bLength;
277 size -= ifp->bLength;
284 if (header.bLength < DESC_HEADER_LENGTH) {
287 header.bLength);
290 } else if (header.bLength > size) {
293 size, header.bLength);
304 buffer += header.bLength;
305 parsed += header.bLength;
306 size -= header.bLength;
398 if (config->bLength < LIBUSB_DT_CONFIG_SIZE) {
399 usbi_err(ctx, "invalid config bLength (%d)", config->bLength);
402 if (config->bLength > size) {
404 size, config->bLength);
419 buffer += config->bLength;
420 size -= config->bLength;
435 if (header.bLength < DESC_HEADER_LENGTH) {
438 header.bLength);
441 } else if (header.bLength > size) {
444 size, header.bLength);
457 buffer += header.bLength;
458 size -= header.bLength;
774 if (header.bLength < 2 || header.bLength > size) {
776 header.bLength);
780 buffer += header.bLength;
781 size -= header.bLength;
784 if (header.bLength < LIBUSB_DT_SS_ENDPOINT_COMPANION_SIZE) {
786 header.bLength);
832 if (bos_header.bLength < LIBUSB_DT_BOS_SIZE) {
833 usbi_err(ctx, "invalid bos bLength (%d)", bos_header.bLength);
836 if (bos_header.bLength > size) {
838 size, bos_header.bLength);
848 buffer += bos_header.bLength;
849 size -= bos_header.bLength;
864 if (dev_cap.bLength < LIBUSB_DT_DEVICE_CAPABILITY_SIZE) {
865 usbi_err(ctx, "invalid dev-cap bLength (%d)",
866 dev_cap.bLength);
870 if (dev_cap.bLength > size) {
872 size, dev_cap.bLength);
876 _bos->dev_capability[i] = malloc(dev_cap.bLength);
881 memcpy(_bos->dev_capability[i], buffer, dev_cap.bLength);
882 buffer += dev_cap.bLength;
883 size -= dev_cap.bLength;
990 if (dev_cap->bLength < LIBUSB_BT_USB_2_0_EXTENSION_SIZE) {
992 dev_cap->bLength, LIBUSB_BT_USB_2_0_EXTENSION_SIZE);
1048 if (dev_cap->bLength < LIBUSB_BT_SS_USB_DEVICE_CAPABILITY_SIZE) {
1050 dev_cap->bLength, LIBUSB_BT_SS_USB_DEVICE_CAPABILITY_SIZE);
1105 if (dev_cap->bLength < LIBUSB_BT_CONTAINER_ID_SIZE) {
1107 dev_cap->bLength, LIBUSB_BT_CONTAINER_ID_SIZE);