Home
last modified time | relevance | path

Searched refs:descriptor_length (Results 1 – 25 of 33) sorted by relevance

12

/USBX-v6.2.1/common/usbx_host_classes/src/
Dux_host_class_printer_name_get.c35 …nter_name_parse(UX_HOST_CLASS_PRINTER *printer, UCHAR *descriptor_buffer, ULONG descriptor_length);
37 …inter_name_parse(UX_HOST_CLASS_PRINTER *printer, UCHAR *descriptor_buffer, ULONG descriptor_length) in _ux_host_class_printer_name_parse() argument
49 if (length < descriptor_length) in _ux_host_class_printer_name_parse()
50 descriptor_length = length; in _ux_host_class_printer_name_parse()
56 while (descriptor_length != 0) in _ux_host_class_printer_name_parse()
59 if (descriptor_length > 12) in _ux_host_class_printer_name_parse()
67 descriptor_length = (USHORT)(descriptor_length - 12); in _ux_host_class_printer_name_parse()
72 if (descriptor_length > 4) in _ux_host_class_printer_name_parse()
80 descriptor_length = (USHORT)(descriptor_length - 4); in _ux_host_class_printer_name_parse()
86 descriptor_length--; in _ux_host_class_printer_name_parse()
[all …]
Dux_host_class_video_control_list_get.c79 ULONG descriptor_length; in _ux_host_class_video_control_list_get() local
97 descriptor_length = *descriptor; in _ux_host_class_video_control_list_get()
102 if (descriptor_length < 3) in _ux_host_class_video_control_list_get()
165 if (descriptor_length > total_descriptor_length) in _ux_host_class_video_control_list_get()
178 descriptor += descriptor_length; in _ux_host_class_video_control_list_get()
181 total_descriptor_length -= descriptor_length; in _ux_host_class_video_control_list_get()
Dux_host_class_video_input_terminal_get.c79 ULONG descriptor_length; in _ux_host_class_video_input_terminal_get() local
97 descriptor_length = *descriptor; in _ux_host_class_video_input_terminal_get()
102 if (descriptor_length < 3) in _ux_host_class_video_input_terminal_get()
170 if (descriptor_length > total_descriptor_length) in _ux_host_class_video_input_terminal_get()
183 descriptor += descriptor_length; in _ux_host_class_video_input_terminal_get()
186 total_descriptor_length -= descriptor_length; in _ux_host_class_video_input_terminal_get()
Dux_host_class_video_input_format_get.c79 ULONG descriptor_length; in _ux_host_class_video_input_format_get() local
97 descriptor_length = *descriptor; in _ux_host_class_video_input_format_get()
102 if (descriptor_length < 3) in _ux_host_class_video_input_format_get()
176 if (descriptor_length > total_descriptor_length) in _ux_host_class_video_input_format_get()
189 descriptor += descriptor_length; in _ux_host_class_video_input_format_get()
192 total_descriptor_length -= descriptor_length; in _ux_host_class_video_input_format_get()
Dux_host_class_video_entities_parse.c101 ULONG descriptor_length; in _ux_host_class_video_entities_parse() local
122 descriptor_length = *descriptor; in _ux_host_class_video_entities_parse()
126 if (descriptor_length < 3) in _ux_host_class_video_entities_parse()
177 if (descriptor_length > total_descriptor_length) in _ux_host_class_video_entities_parse()
181 descriptor += descriptor_length; in _ux_host_class_video_entities_parse()
184 total_descriptor_length -= descriptor_length; in _ux_host_class_video_entities_parse()
Dux_host_class_video_frame_interval_get.c83 ULONG descriptor_length; in _ux_host_class_video_frame_interval_get() local
98 descriptor_length = *descriptor; in _ux_host_class_video_frame_interval_get()
103 if (descriptor_length < 3) in _ux_host_class_video_frame_interval_get()
177 if (descriptor_length > total_descriptor_length) in _ux_host_class_video_frame_interval_get()
190 descriptor += descriptor_length; in _ux_host_class_video_frame_interval_get()
193 total_descriptor_length -= descriptor_length; in _ux_host_class_video_frame_interval_get()
Dux_host_class_audio_streaming_terminal_get.c80 ULONG descriptor_length; in _ux_host_class_audio_streaming_terminal_get() local
99 descriptor_length = *descriptor; in _ux_host_class_audio_streaming_terminal_get()
104 if (descriptor_length < 3) in _ux_host_class_audio_streaming_terminal_get()
166 if (descriptor_length > total_descriptor_length) in _ux_host_class_audio_streaming_terminal_get()
179 descriptor += descriptor_length; in _ux_host_class_audio_streaming_terminal_get()
182 total_descriptor_length -= descriptor_length; in _ux_host_class_audio_streaming_terminal_get()
Dux_host_class_video_format_data_get.c80 ULONG descriptor_length; in _ux_host_class_video_format_data_get() local
95 descriptor_length = *descriptor; in _ux_host_class_video_format_data_get()
100 if (descriptor_length < 3) in _ux_host_class_video_format_data_get()
181 if (descriptor_length > total_descriptor_length) in _ux_host_class_video_format_data_get()
194 descriptor += descriptor_length; in _ux_host_class_video_format_data_get()
197 total_descriptor_length -= descriptor_length; in _ux_host_class_video_format_data_get()
Dux_host_class_video_frame_data_get.c100 ULONG descriptor_length; in _ux_host_class_video_frame_data_get() local
115 descriptor_length = *descriptor; in _ux_host_class_video_frame_data_get()
120 if (descriptor_length < 3) in _ux_host_class_video_frame_data_get()
181 if (descriptor_length > total_descriptor_length) in _ux_host_class_video_frame_data_get()
194 descriptor += descriptor_length; in _ux_host_class_video_frame_data_get()
197 total_descriptor_length -= descriptor_length; in _ux_host_class_video_frame_data_get()
Dux_host_class_audio_descriptors_parse.c98 ULONG descriptor_length; in _ux_host_class_audio_descriptors_parse() local
136 descriptor_length = *descriptor; in _ux_host_class_audio_descriptors_parse()
140 if (descriptor_length < 3) in _ux_host_class_audio_descriptors_parse()
195 if (descriptor_length > total_descriptor_length) in _ux_host_class_audio_descriptors_parse()
199 descriptor += descriptor_length; in _ux_host_class_audio_descriptors_parse()
202 total_descriptor_length -= descriptor_length; in _ux_host_class_audio_descriptors_parse()
Dux_host_class_audio_device_controls_list_get.c85 ULONG descriptor_length; in _ux_host_class_audio_device_controls_list_get() local
110 descriptor_length = *descriptor; in _ux_host_class_audio_device_controls_list_get()
115 if (descriptor_length < 3) in _ux_host_class_audio_device_controls_list_get()
248 if (descriptor_length > total_descriptor_length) in _ux_host_class_audio_device_controls_list_get()
261 descriptor += descriptor_length; in _ux_host_class_audio_device_controls_list_get()
264 total_descriptor_length -= descriptor_length; in _ux_host_class_audio_device_controls_list_get()
Dux_host_class_audio_device_type_get.c85 ULONG descriptor_length; in _ux_host_class_audio_device_type_get() local
108 descriptor_length = *descriptor; in _ux_host_class_audio_device_type_get()
113 if (descriptor_length < 3) in _ux_host_class_audio_device_type_get()
238 if (descriptor_length > total_descriptor_length) in _ux_host_class_audio_device_type_get()
251 descriptor += descriptor_length; in _ux_host_class_audio_device_type_get()
254 total_descriptor_length -= descriptor_length; in _ux_host_class_audio_device_type_get()
Dux_host_class_cdc_acm_capabilities_get.c91 UCHAR descriptor_length; in _ux_host_class_cdc_acm_capabilities_get() local
164 descriptor_length = *descriptor; in _ux_host_class_cdc_acm_capabilities_get()
169 if (descriptor_length < 3) in _ux_host_class_cdc_acm_capabilities_get()
230 if (descriptor_length > total_descriptor_length) in _ux_host_class_cdc_acm_capabilities_get()
246 descriptor += descriptor_length; in _ux_host_class_cdc_acm_capabilities_get()
249 total_descriptor_length -= descriptor_length; in _ux_host_class_cdc_acm_capabilities_get()
Dux_host_class_hid_descriptor_parse.c93 UINT descriptor_length; in _ux_host_class_hid_descriptor_parse() local
154 descriptor_length = *descriptor; in _ux_host_class_hid_descriptor_parse()
158 if (descriptor_length < 3) in _ux_host_class_hid_descriptor_parse()
213 if (descriptor_length > total_configuration_length) in _ux_host_class_hid_descriptor_parse()
230 descriptor += descriptor_length; in _ux_host_class_hid_descriptor_parse()
233 total_configuration_length -= descriptor_length; in _ux_host_class_hid_descriptor_parse()
Dux_host_class_cdc_ecm_mac_address_get.c92 UINT descriptor_length; in _ux_host_class_cdc_ecm_mac_address_get() local
170 descriptor_length = *descriptor; in _ux_host_class_cdc_ecm_mac_address_get()
175 if (descriptor_length < 3 || descriptor_length > total_configuration_length) in _ux_host_class_cdc_ecm_mac_address_get()
333 descriptor += descriptor_length; in _ux_host_class_cdc_ecm_mac_address_get()
336 total_configuration_length -= descriptor_length; in _ux_host_class_cdc_ecm_mac_address_get()
Dux_host_class_audio_alternate_setting_locate.c97 UINT descriptor_length; in _ux_host_class_audio_alternate_setting_locate()
118 descriptor_length = *descriptor; in _ux_host_class_audio_alternate_setting_locate()
123 if (descriptor_length < 3) in _ux_host_class_audio_alternate_setting_locate()
238 if (descriptor_length > total_descriptor_length) in _ux_host_class_audio_alternate_setting_locate()
248 descriptor += descriptor_length; in _ux_host_class_audio_alternate_setting_locate()
251 total_descriptor_length -= descriptor_length; in _ux_host_class_audio_alternate_setting_locate()
Dux_host_class_audio_streaming_sampling_get.c96 UINT descriptor_length; in _ux_host_class_audio_streaming_sampling_get() local
139 descriptor_length = *descriptor; in _ux_host_class_audio_streaming_sampling_get()
144 if (descriptor_length < 3) in _ux_host_class_audio_streaming_sampling_get()
370 if (descriptor_length > total_descriptor_length) in _ux_host_class_audio_streaming_sampling_get()
386 descriptor += descriptor_length; in _ux_host_class_audio_streaming_sampling_get()
389 total_descriptor_length -= descriptor_length; in _ux_host_class_audio_streaming_sampling_get()
/USBX-v6.2.1/common/usbx_device_classes/src/
Dux_device_class_hid_descriptor_send.c91 ULONG descriptor_length; in _ux_device_class_hid_descriptor_send() local
138 descriptor_length = (ULONG) *device_framework; in _ux_device_class_hid_descriptor_send()
151 if (descriptor_length < host_length) in _ux_device_class_hid_descriptor_send()
152 length = descriptor_length; in _ux_device_class_hid_descriptor_send()
182 device_framework += descriptor_length; in _ux_device_class_hid_descriptor_send()
194 descriptor_length = hid -> ux_device_class_hid_report_length; in _ux_device_class_hid_descriptor_send()
198 if (descriptor_length < host_length) in _ux_device_class_hid_descriptor_send()
199 length = descriptor_length; in _ux_device_class_hid_descriptor_send()
Dux_device_class_printer_control_request.c91 ULONG descriptor_length; in _ux_device_class_printer_control_request() local
145 descriptor_length = descriptor[0]; in _ux_device_class_printer_control_request()
169 descriptor_length = _ux_utility_short_get(descriptor + 2); in _ux_device_class_printer_control_request()
181 if (descriptor_length < 2 || in _ux_device_class_printer_control_request()
182 descriptor_length > length) in _ux_device_class_printer_control_request()
191 descriptor += descriptor_length; in _ux_device_class_printer_control_request()
192 length -= descriptor_length; in _ux_device_class_printer_control_request()
Dux_device_class_dfu_initialize.c102 ULONG descriptor_length; in _ux_device_class_dfu_initialize() local
145 descriptor_length = (ULONG) *dfu_framework; in _ux_device_class_dfu_initialize()
148 if (descriptor_length < 2 || in _ux_device_class_dfu_initialize()
149 descriptor_length > dfu_framework_length) in _ux_device_class_dfu_initialize()
187 dfu_framework_length -= descriptor_length; in _ux_device_class_dfu_initialize()
190 dfu_framework += descriptor_length; in _ux_device_class_dfu_initialize()
/USBX-v6.2.1/common/core/src/
Dux_host_stack_interfaces_scan.c79 UINT descriptor_length; in _ux_host_stack_interfaces_scan() local
101 descriptor_length = *descriptor; in _ux_host_stack_interfaces_scan()
105 if (descriptor_length < 3) in _ux_host_stack_interfaces_scan()
181 if (descriptor_length > total_configuration_length) in _ux_host_stack_interfaces_scan()
193 descriptor += descriptor_length; in _ux_host_stack_interfaces_scan()
196 total_configuration_length -= descriptor_length; in _ux_host_stack_interfaces_scan()
Dux_host_stack_new_interface_create.c95 UINT descriptor_length; in _ux_host_stack_new_interface_create() local
161 descriptor_length = *descriptor; in _ux_host_stack_new_interface_create()
165 if (descriptor_length < 3) in _ux_host_stack_new_interface_create()
192 …if ((descriptor_length > length) || (descriptor_type == UX_INTERFACE_DESCRIPTOR_ITEM && descriptor… in _ux_host_stack_new_interface_create()
205 descriptor += descriptor_length; in _ux_host_stack_new_interface_create()
206 length -= descriptor_length; in _ux_host_stack_new_interface_create()
Dux_device_stack_alternate_setting_set.c99 ULONG descriptor_length; in _ux_device_stack_alternate_setting_set() local
183 descriptor_length = (ULONG) *device_framework; in _ux_device_stack_alternate_setting_set()
213 descriptor_length = (ULONG) *device_framework; in _ux_device_stack_alternate_setting_set()
274 descriptor_length = (ULONG) *device_framework; in _ux_device_stack_alternate_setting_set()
390 device_framework_length = descriptor_length; in _ux_device_stack_alternate_setting_set()
402 device_framework_length -= descriptor_length; in _ux_device_stack_alternate_setting_set()
405 device_framework += descriptor_length; in _ux_device_stack_alternate_setting_set()
441 device_framework_length -= descriptor_length; in _ux_device_stack_alternate_setting_set()
444 device_framework += descriptor_length; in _ux_device_stack_alternate_setting_set()
453 device_framework_length -= descriptor_length; in _ux_device_stack_alternate_setting_set()
[all …]
Dux_device_stack_configuration_set.c90 ULONG descriptor_length; in _ux_device_stack_configuration_set() local
135 descriptor_length = (ULONG) *device_framework; in _ux_device_stack_configuration_set()
157 device_framework_length -= descriptor_length; in _ux_device_stack_configuration_set()
159 device_framework += descriptor_length; in _ux_device_stack_configuration_set()
249 descriptor_length = (ULONG) *device_framework; in _ux_device_stack_configuration_set()
388 device_framework_length -= descriptor_length; in _ux_device_stack_configuration_set()
391 device_framework += descriptor_length; in _ux_device_stack_configuration_set()
Dux_device_stack_descriptor_send.c114 ULONG descriptor_length; in _ux_device_stack_descriptor_send() local
195 descriptor_length = (ULONG) *device_framework; in _ux_device_stack_descriptor_send()
211 device_framework_length -= descriptor_length; in _ux_device_stack_descriptor_send()
214 device_framework += descriptor_length; in _ux_device_stack_descriptor_send()
251 descriptor_length = (ULONG) *device_framework; in _ux_device_stack_descriptor_send()
314 device_framework_length -= descriptor_length; in _ux_device_stack_descriptor_send()
317 device_framework += descriptor_length; in _ux_device_stack_descriptor_send()

12