Home
last modified time | relevance | path

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

123456

/openbmc/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 …]
/openbmc/qemu/hw/usb/
H A Ddesc.c12 uint8_t bLength = 0x12; in usb_desc_device() local
15 if (len < bLength) { in usb_desc_device()
19 d->bLength = bLength; in usb_desc_device()
51 return bLength; in usb_desc_device()
57 uint8_t bLength = 0x0a; in usb_desc_device_qualifier() local
60 if (len < bLength) { in usb_desc_device_qualifier()
64 d->bLength = bLength; in usb_desc_device_qualifier()
76 return bLength; in usb_desc_device_qualifier()
82 uint8_t bLength = 0x09; in usb_desc_config() local
87 if (len < bLength) { in usb_desc_config()
[all …]
/openbmc/u-boot/include/linux/usb/
H A Dch9.h247 __u8 bLength; member
256 __u8 bLength; member
312 __u8 bLength; member
335 __u8 bLength; member
349 __u8 bLength; member
367 __u8 bLength; member
386 __u8 bLength; member
391 u8 bLength; member
402 u8 bLength; /* dummy */ member
658 __u8 bLength; member
[all …]
H A Dcdc.h50 __u8 bLength; member
59 __u8 bLength; member
72 __u8 bLength; member
88 __u8 bLength; member
99 __u8 bLength; member
110 __u8 bLength; member
122 __u8 bLength; member
135 __u8 bLength; member
145 __u8 bLength; member
/openbmc/linux/include/uapi/linux/usb/
H A Dch9.h278 __u8 bLength; member
287 __u8 bLength; member
347 __u8 bLength; member
373 __u8 bLength; member
390 __u8 bLength; member
408 __u8 bLength; member
678 __u8 bLength; member
690 __u8 bLength; member
728 __u8 bLength; member
745 __u8 bLength; member
[all …]
H A Dvideo.h218 __u8 bLength; member
225 __u8 bLength; member
242 __u8 bLength; \
254 __u8 bLength; member
267 __u8 bLength; member
281 __u8 bLength; member
299 __u8 bLength; member
315 __u8 bLength; \
326 __u8 bLength; member
342 __u8 bLength; member
[all …]
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
113 __u8 bLength; member
124 __u8 bLength; member
136 __u8 bLength; member
158 __u8 bLength; member
168 __u8 bLength; member
179 __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; \
/openbmc/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
/openbmc/linux/drivers/usb/core/
H A Dconfig.c39 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()
268 buffer += d->bLength; in usb_parse_endpoint()
269 size -= d->bLength; in usb_parse_endpoint()
271 if (d->bLength >= USB_DT_ENDPOINT_AUDIO_SIZE) in usb_parse_endpoint()
273 else if (d->bLength >= USB_DT_ENDPOINT_SIZE) in usb_parse_endpoint()
278 cfgno, inum, asnum, d->bLength); in usb_parse_endpoint()
[all …]
/openbmc/u-boot/drivers/usb/emul/
H A Dsandbox_keyb.c49 .bLength = sizeof(keyb_device_desc),
67 .bLength = sizeof(keyb_config0),
79 .bLength = sizeof(keyb_interface0),
92 .bLength = sizeof(keyb_report0),
102 .bLength = USB_DT_ENDPOINT_SIZE,
113 .bLength = sizeof(keyb_interface1),
126 .bLength = sizeof(struct usb_class_hid_descriptor),
136 .bLength = USB_DT_ENDPOINT_SIZE,
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/android-tools/android-tools/core/
H A D0014-add-u3-ss-descriptor-support-for-adb.patch117 + .bLength = sizeof(fs_descriptors.intf),
127 + .bLength = sizeof(fs_descriptors.source),
134 + .bLength = sizeof(fs_descriptors.sink),
144 + .bLength = sizeof(hs_descriptors.intf),
154 + .bLength = sizeof(hs_descriptors.source),
161 + .bLength = sizeof(hs_descriptors.sink),
171 + .bLength = sizeof(ss_descriptors.intf),
181 + .bLength = sizeof(ss_descriptors.source),
188 + .bLength = sizeof(ss_descriptors.source_comp),
194 - .bLength = sizeof(descriptors.fs_descs.intf),
[all …]
/openbmc/linux/drivers/usb/gadget/function/
H A Df_uvc.c64 .bLength = sizeof(uvc_iad),
75 .bLength = USB_DT_INTERFACE_SIZE,
87 .bLength = USB_DT_ENDPOINT_SIZE,
96 .bLength = sizeof(uvc_ss_interrupt_comp),
105 .bLength = UVC_DT_CONTROL_ENDPOINT_SIZE,
112 .bLength = USB_DT_INTERFACE_SIZE,
124 .bLength = USB_DT_INTERFACE_SIZE,
136 .bLength = USB_DT_ENDPOINT_SIZE,
148 .bLength = USB_DT_ENDPOINT_SIZE,
160 .bLength = USB_DT_ENDPOINT_SIZE,
[all …]
H A Df_subset.c76 .bLength = sizeof subset_data_intf,
89 .bLength = sizeof mdlm_header_desc,
97 .bLength = sizeof mdlm_desc,
123 .bLength = sizeof ether_desc,
138 .bLength = USB_DT_ENDPOINT_SIZE,
146 .bLength = USB_DT_ENDPOINT_SIZE,
167 .bLength = USB_DT_ENDPOINT_SIZE,
175 .bLength = USB_DT_ENDPOINT_SIZE,
196 .bLength = USB_DT_ENDPOINT_SIZE,
204 .bLength = USB_DT_ENDPOINT_SIZE,
[all …]
H A Df_ecm.c91 .bLength = sizeof ecm_iad_descriptor,
104 .bLength = sizeof ecm_control_intf,
117 .bLength = sizeof ecm_header_desc,
125 .bLength = sizeof(ecm_union_desc),
133 .bLength = sizeof ecm_desc,
148 .bLength = sizeof ecm_data_nop_intf,
163 .bLength = sizeof ecm_data_intf,
178 .bLength = USB_DT_ENDPOINT_SIZE,
188 .bLength = USB_DT_ENDPOINT_SIZE,
196 .bLength = USB_DT_ENDPOINT_SIZE,
[all …]
H A Df_acm.c85 .bLength = sizeof acm_iad_descriptor,
98 .bLength = USB_DT_INTERFACE_SIZE,
109 .bLength = USB_DT_INTERFACE_SIZE,
120 .bLength = sizeof(acm_header_desc),
128 .bLength = sizeof(acm_call_mgmt_descriptor),
136 .bLength = sizeof(acm_descriptor),
143 .bLength = sizeof(acm_union_desc),
153 .bLength = USB_DT_ENDPOINT_SIZE,
162 .bLength = USB_DT_ENDPOINT_SIZE,
169 .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,
/openbmc/linux/drivers/usb/gadget/
H A Dconfig.c44 unsigned len = (*src)->bLength; in usb_descriptor_fillbuf()
101 cp->bLength = USB_DT_CONFIG_SIZE; in usb_gadget_config_buf()
132 bytes += (*tmp)->bLength; in usb_copy_descriptors()
147 memcpy(mem, *src, (*src)->bLength); in usb_copy_descriptors()
150 mem += (*src)->bLength; in usb_copy_descriptors()
253 otg20_desc->bLength = sizeof(struct usb_otg20_descriptor); in usb_otg_descriptor_init()
259 otg1x_desc->bLength = sizeof(struct usb_otg_descriptor); in usb_otg_descriptor_init()
/openbmc/u-boot/drivers/serial/
H A Dusbtty.c107 .bLength = sizeof(struct usb_device_descriptor),
124 .bLength = sizeof(struct usb_qualifier_descriptor),
159 .bLength =
173 .bLength = sizeof(struct usb_interface_descriptor),
215 .bLength =
227 .bLength =
241 .bLength =
252 .bLength =
291 .bLength = sizeof(struct usb_configuration_descriptor),
304 .bLength =
[all …]
/openbmc/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 …]
/openbmc/u-boot/include/
H A Dusbdescriptors.h182 u8 bLength; member
191 u8 bLength; member
203 u8 bLength; member
214 u8 bLength; member
232 u8 bLength; member
246 u8 bLength; member
252 u8 bLength; member
448 u8 bLength; member
459 u8 bLength; /* dummy */ member
512 serial_printf("\tbLength %2.2x\n", d->bLength); in print_device_descriptor()
/openbmc/u-boot/drivers/usb/gadget/
H A Dstorage_common.c389 .bLength = sizeof fsg_otg_desc,
400 .bLength = sizeof fsg_intf_desc,
417 .bLength = USB_DT_ENDPOINT_SIZE,
427 .bLength = USB_DT_ENDPOINT_SIZE,
439 .bLength = USB_DT_ENDPOINT_SIZE,
479 .bLength = USB_DT_ENDPOINT_SIZE,
489 .bLength = USB_DT_ENDPOINT_SIZE,
502 .bLength = USB_DT_ENDPOINT_SIZE,

123456