Home
last modified time | relevance | path

Searched refs:bLength (Results 1 – 25 of 88) sorted by relevance

1234

/linux/sound/usb/
H A Dvalidate.c30 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 Daudio.h157 __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 Dcdc.h64 __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 Dmidi.h39 __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 Daudio-v2.h46 __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 Daudio-v3.h60 __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 Dmidi-v2.h52 __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 Dwebcam.c72 .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 Dconfig.c44 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 Df_subset.c77 .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 Df_ecm.c95 .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 Df_obex.c71 .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 Df_rndis.c102 .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 Df_acm.c89 .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 Df_serial.c43 .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 Dstorage_common.c34 .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 Df_loopback.c46 .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 Df_sourcesink.c62 .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 Df_ncm.c146 .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 Df_eem.c49 .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 Dffs-test.c137 .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 Daio_simple.c91 .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 Daio_multibuff.c75 .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 Dhid-hyperv.c197 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 Dzaurus.c157 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()

1234