| /linux/sound/usb/ |
| H A D | validate.c | 30 return d->bLength >= sizeof(*d) && in validate_uac1_header() 31 d->bLength >= sizeof(*d) + d->bInCollection; in validate_uac1_header() 41 if (d->bLength < sizeof(*d) || !d->bNrInPins) in validate_mixer_unit() 65 return d->bLength >= len; in validate_mixer_unit() 76 if (d->bLength < sizeof(*d)) in validate_processing_unit() 79 if (d->bLength < len) in validate_processing_unit() 86 if (d->bLength < len + 1) /* bControlSize */ in validate_processing_unit() 105 if (d->bLength < len) in validate_processing_unit() 116 if (d->bLength < len + 1) /* bNrModes */ in validate_processing_unit() 131 if (d->bLength < len + 1) /* bNrModes */ in validate_processing_unit() [all …]
|
| /linux/include/uapi/linux/usb/ |
| H A D | audio.h | 157 __u8 bLength; /* 8 + n */ member 171 __u8 bLength; \ 182 __u8 bLength; /* in bytes: 12 */ member 211 __u8 bLength; /* in bytes: 9 */ member 247 __u8 bLength; \ 259 __u8 bLength; member 317 return raw[desc->bLength - 1]; in uac_mixer_unit_iMixer() 322 __u8 bLength; member 333 return raw[desc->bLength - 1]; in uac_selector_unit_iSelector() 338 __u8 bLength; member [all …]
|
| H A D | cdc.h | 64 __u8 bLength; member 73 __u8 bLength; member 86 __u8 bLength; member 102 __u8 bLength; member 115 __u8 bLength; member 128 __u8 bLength; member 140 __u8 bLength; member 162 __u8 bLength; member 172 __u8 bLength; member 183 __u8 bLength; member [all …]
|
| H A D | midi.h | 39 __u8 bLength; member 50 __u8 bLength; member 67 __u8 bLength; member 82 __u8 bLength; \ 94 __u8 bLength; /* 4+n */ member 106 __u8 bLength; \
|
| /linux/include/linux/usb/ |
| H A D | audio-v2.h | 46 __u8 bLength; /* 9 */ member 57 __u8 bLength; /* in bytes: 6 */ member 68 __u8 bLength; member 88 __u8 bLength; member 100 __u8 bLength; member 112 __u8 bLength; member 129 __u8 bLength; member 146 __u8 bLength; member 161 __u8 bLength; \ 173 __u8 bLength; member [all …]
|
| H A D | audio-v3.h | 60 __u8 bLength; /* 10 */ member 73 __u8 bLength; member 89 __u8 bLength; member 105 __u8 bLength; member 121 __u8 bLength; \ 132 __u8 bLength; member 150 __u8 bLength; member 161 __u8 bLength; member 172 __u8 bLength; member 186 __u8 bLength; \ [all …]
|
| H A D | midi-v2.h | 52 __u8 bLength; /* 4+n */ member 64 __u8 bLength; \ 73 __u8 bLength; /* 5 */ member 81 __u8 bLength; /* 13 */ member
|
| /linux/drivers/usb/gadget/legacy/ |
| H A D | webcam.c | 72 .bLength = USB_DT_DEVICE_SIZE, 89 .bLength = UVC_DT_HEADER_SIZE(1), 100 .bLength = UVC_DT_CAMERA_TERMINAL_SIZE(3), 117 .bLength = UVC_DT_PROCESSING_UNIT_SIZE(2), 131 .bLength = UVC_DT_OUTPUT_TERMINAL_SIZE, 144 .bLength = UVC_DT_INPUT_HEADER_SIZE(1, 2), 162 .bLength = UVC_DT_COLOR_MATCHING_SIZE, 178 .bLength = UVC_DT_FORMAT_UNCOMPRESSED_SIZE, 214 .bLength = UVC_DT_FRAME_UNCOMPRESSED_SIZE(3), 268 .bLength = UVC_DT_FRAME_UNCOMPRESSED_SIZE(1), [all …]
|
| /linux/drivers/usb/gadget/ |
| H A D | config.c | 44 unsigned len = (*src)->bLength; in usb_descriptor_fillbuf() 79 bytes += (*tmp)->bLength; in usb_copy_descriptors() 94 memcpy(mem, *src, (*src)->bLength); in usb_copy_descriptors() 97 mem += (*src)->bLength; in usb_copy_descriptors() 200 otg20_desc->bLength = sizeof(struct usb_otg20_descriptor); in usb_otg_descriptor_init() 206 otg1x_desc->bLength = sizeof(struct usb_otg_descriptor); in usb_otg_descriptor_init()
|
| /linux/drivers/usb/gadget/function/ |
| H A D | f_subset.c | 77 .bLength = sizeof subset_data_intf, 90 .bLength = sizeof mdlm_header_desc, 98 .bLength = sizeof mdlm_desc, 124 .bLength = sizeof ether_desc, 139 .bLength = USB_DT_ENDPOINT_SIZE, 147 .bLength = USB_DT_ENDPOINT_SIZE, 168 .bLength = USB_DT_ENDPOINT_SIZE, 176 .bLength = USB_DT_ENDPOINT_SIZE, 197 .bLength = USB_DT_ENDPOINT_SIZE, 205 .bLength = USB_DT_ENDPOINT_SIZE, [all …]
|
| H A D | f_ecm.c | 95 .bLength = sizeof ecm_iad_descriptor, 108 .bLength = sizeof ecm_control_intf, 121 .bLength = sizeof ecm_header_desc, 129 .bLength = sizeof(ecm_union_desc), 137 .bLength = sizeof ecm_desc, 152 .bLength = sizeof ecm_data_nop_intf, 167 .bLength = sizeof ecm_data_intf, 182 .bLength = USB_DT_ENDPOINT_SIZE, 192 .bLength = USB_DT_ENDPOINT_SIZE, 200 .bLength = USB_DT_ENDPOINT_SIZE, [all …]
|
| H A D | f_obex.c | 71 .bLength = sizeof(obex_control_intf), 82 .bLength = sizeof(obex_data_nop_intf), 92 .bLength = sizeof(obex_data_intf), 102 .bLength = sizeof(obex_cdc_header_desc), 109 .bLength = sizeof(obex_cdc_union_desc), 117 .bLength = sizeof(obex_desc), 126 .bLength = USB_DT_ENDPOINT_SIZE, 135 .bLength = USB_DT_ENDPOINT_SIZE, 159 .bLength = USB_DT_ENDPOINT_SIZE, 167 .bLength = USB_DT_ENDPOINT_SIZE,
|
| H A D | f_rndis.c | 102 .bLength = sizeof rndis_control_intf, 115 .bLength = sizeof header_desc, 123 .bLength = sizeof call_mgmt_descriptor, 132 .bLength = sizeof rndis_acm_descriptor, 140 .bLength = sizeof(rndis_union_desc), 150 .bLength = sizeof rndis_data_intf, 164 .bLength = sizeof rndis_iad_descriptor, 178 .bLength = USB_DT_ENDPOINT_SIZE, 188 .bLength = USB_DT_ENDPOINT_SIZE, 196 .bLength = USB_DT_ENDPOINT_SIZE, [all …]
|
| H A D | f_acm.c | 89 .bLength = sizeof acm_iad_descriptor, 102 .bLength = USB_DT_INTERFACE_SIZE, 113 .bLength = USB_DT_INTERFACE_SIZE, 124 .bLength = sizeof(acm_header_desc), 132 .bLength = sizeof(acm_call_mgmt_descriptor), 140 .bLength = sizeof(acm_descriptor), 147 .bLength = sizeof(acm_union_desc), 157 .bLength = USB_DT_ENDPOINT_SIZE, 166 .bLength = USB_DT_ENDPOINT_SIZE, 173 .bLength = USB_DT_ENDPOINT_SIZE, [all …]
|
| H A D | f_serial.c | 43 .bLength = USB_DT_INTERFACE_SIZE, 56 .bLength = USB_DT_ENDPOINT_SIZE, 63 .bLength = USB_DT_ENDPOINT_SIZE, 79 .bLength = USB_DT_ENDPOINT_SIZE, 86 .bLength = USB_DT_ENDPOINT_SIZE, 100 .bLength = USB_DT_ENDPOINT_SIZE, 107 .bLength = USB_DT_ENDPOINT_SIZE, 114 .bLength = sizeof gser_ss_bulk_comp_desc,
|
| H A D | storage_common.c | 34 .bLength = sizeof fsg_intf_desc, 51 .bLength = USB_DT_ENDPOINT_SIZE, 61 .bLength = USB_DT_ENDPOINT_SIZE, 86 .bLength = USB_DT_ENDPOINT_SIZE, 96 .bLength = USB_DT_ENDPOINT_SIZE, 116 .bLength = USB_DT_ENDPOINT_SIZE, 126 .bLength = sizeof(fsg_ss_bulk_in_comp_desc), 134 .bLength = USB_DT_ENDPOINT_SIZE, 144 .bLength = sizeof(fsg_ss_bulk_in_comp_desc),
|
| H A D | f_loopback.c | 46 .bLength = sizeof(loopback_intf), 57 .bLength = USB_DT_ENDPOINT_SIZE, 65 .bLength = USB_DT_ENDPOINT_SIZE, 82 .bLength = USB_DT_ENDPOINT_SIZE, 90 .bLength = USB_DT_ENDPOINT_SIZE, 107 .bLength = USB_DT_ENDPOINT_SIZE, 115 .bLength = USB_DT_SS_EP_COMP_SIZE, 123 .bLength = USB_DT_ENDPOINT_SIZE, 131 .bLength = USB_DT_SS_EP_COMP_SIZE,
|
| H A D | f_sourcesink.c | 62 .bLength = USB_DT_INTERFACE_SIZE, 72 .bLength = USB_DT_INTERFACE_SIZE, 84 .bLength = USB_DT_ENDPOINT_SIZE, 92 .bLength = USB_DT_ENDPOINT_SIZE, 100 .bLength = USB_DT_ENDPOINT_SIZE, 110 .bLength = USB_DT_ENDPOINT_SIZE, 135 .bLength = USB_DT_ENDPOINT_SIZE, 143 .bLength = USB_DT_ENDPOINT_SIZE, 151 .bLength = USB_DT_ENDPOINT_SIZE, 160 .bLength = USB_DT_ENDPOINT_SIZE, [all …]
|
| H A D | f_ncm.c | 146 .bLength = sizeof ncm_iad_desc, 160 .bLength = sizeof ncm_control_intf, 172 .bLength = sizeof ncm_header_desc, 180 .bLength = sizeof(ncm_union_desc), 188 .bLength = sizeof ecm_desc, 202 .bLength = sizeof ncm_desc, 214 .bLength = sizeof ncm_data_nop_intf, 229 .bLength = sizeof ncm_data_intf, 244 .bLength = USB_DT_ENDPOINT_SIZE, 254 .bLength = USB_DT_ENDPOINT_SIZE, [all …]
|
| H A D | f_eem.c | 49 .bLength = sizeof eem_intf, 63 .bLength = USB_DT_ENDPOINT_SIZE, 71 .bLength = USB_DT_ENDPOINT_SIZE, 89 .bLength = USB_DT_ENDPOINT_SIZE, 98 .bLength = USB_DT_ENDPOINT_SIZE, 117 .bLength = USB_DT_ENDPOINT_SIZE, 126 .bLength = USB_DT_ENDPOINT_SIZE, 135 .bLength = sizeof eem_ss_bulk_comp_desc,
|
| /linux/tools/usb/ |
| H A D | ffs-test.c | 137 .bLength = sizeof descriptors.fs_descs.intf, 144 .bLength = sizeof descriptors.fs_descs.sink, 151 .bLength = sizeof descriptors.fs_descs.source, 161 .bLength = sizeof descriptors.fs_descs.intf, 168 .bLength = sizeof descriptors.hs_descs.sink, 175 .bLength = sizeof descriptors.hs_descs.source, 186 .bLength = sizeof descriptors.fs_descs.intf, 193 .bLength = sizeof descriptors.hs_descs.sink, 200 .bLength = USB_DT_SS_EP_COMP_SIZE, 207 .bLength = sizeof descriptors.hs_descs.source, [all …]
|
| /linux/tools/usb/ffs-aio-example/simple/device_app/ |
| H A D | aio_simple.c | 91 .bLength = sizeof(descriptors.fs_descs.intf), 98 .bLength = sizeof(descriptors.fs_descs.bulk_sink), 104 .bLength = sizeof(descriptors.fs_descs.bulk_source), 113 .bLength = sizeof(descriptors.hs_descs.intf), 120 .bLength = sizeof(descriptors.hs_descs.bulk_sink), 127 .bLength = sizeof(descriptors.hs_descs.bulk_source),
|
| /linux/tools/usb/ffs-aio-example/multibuff/device_app/ |
| H A D | aio_multibuff.c | 75 .bLength = sizeof(descriptors.fs_descs.intf), 82 .bLength = sizeof(descriptors.fs_descs.bulk_sink), 88 .bLength = sizeof(descriptors.fs_descs.bulk_source), 97 .bLength = sizeof(descriptors.hs_descs.intf), 104 .bLength = sizeof(descriptors.hs_descs.bulk_sink), 111 .bLength = sizeof(descriptors.hs_descs.bulk_source),
|
| /linux/drivers/hid/ |
| H A D | hid-hyperv.c | 197 if (desc->bLength == 0) in mousevsc_on_receive_device_info() 199 if (desc->bLength < sizeof(*desc) || desc->bLength > desc_size) { in mousevsc_on_receive_device_info() 206 input_device->hid_desc = kmemdup(desc, desc->bLength, GFP_ATOMIC); in mousevsc_on_receive_device_info() 217 if (input_device->report_desc_size > desc_size - desc->bLength) { in mousevsc_on_receive_device_info() 233 ((unsigned char *)desc) + desc->bLength, in mousevsc_on_receive_device_info() 670 info->hid_descriptor.bLength = 0; in mousevsc_device_info_zero_blength() 688 info->hid_descriptor.bLength = sizeof(struct hid_descriptor); in mousevsc_device_info_valid_descriptor() 714 info->hid_descriptor.bLength = sizeof(struct hid_descriptor); in mousevsc_device_info_report_desc_oob()
|
| /linux/drivers/net/usb/ |
| H A D | zaurus.c | 157 if (desc->bLength != sizeof *desc) { in blan_mdlm_bind() 159 desc->bLength); in blan_mdlm_bind() 178 if (detail->bLength != (sizeof *detail + 2)) in blan_mdlm_bind() 182 if (detail->bLength != (sizeof *detail + 3)) in blan_mdlm_bind() 209 detail->bLength, in blan_mdlm_bind()
|