Home
last modified time | relevance | path

Searched refs:descriptor (Results 1 – 25 of 53) sorted by relevance

123

/USBX-v6.2.1/common/core/src/
Dux_utility_descriptor_pack.c79 VOID _ux_utility_descriptor_pack(UCHAR * descriptor, UCHAR * descriptor_structure, in _ux_utility_descriptor_pack() argument
96 while((ALIGN_TYPE)descriptor & 3u) in _ux_utility_descriptor_pack()
97 descriptor++; in _ux_utility_descriptor_pack()
100 _ux_utility_long_put(raw_descriptor, *((ULONG *) descriptor)); in _ux_utility_descriptor_pack()
102 descriptor += 4; in _ux_utility_descriptor_pack()
108 while((ALIGN_TYPE)descriptor & 1u) in _ux_utility_descriptor_pack()
109 descriptor++; in _ux_utility_descriptor_pack()
112 _ux_utility_short_put(raw_descriptor, (USHORT)*((USHORT *) descriptor)); in _ux_utility_descriptor_pack()
114 descriptor += 2; in _ux_utility_descriptor_pack()
120 *raw_descriptor = (UCHAR) *((UCHAR *) descriptor); in _ux_utility_descriptor_pack()
[all …]
Dux_utility_descriptor_parse.c80 UINT descriptor_entries, UCHAR * descriptor) in _ux_utility_descriptor_parse()
96 while((ALIGN_TYPE) descriptor & 3u) in _ux_utility_descriptor_parse()
97 *descriptor++ = 0; in _ux_utility_descriptor_parse()
100 *((ULONG *) descriptor) = _ux_utility_long_get(raw_descriptor); in _ux_utility_descriptor_parse()
102 descriptor += 4; in _ux_utility_descriptor_parse()
108 while((ALIGN_TYPE) descriptor & 1u) in _ux_utility_descriptor_parse()
109 *descriptor++ = 0; in _ux_utility_descriptor_parse()
112 *((USHORT *) descriptor) = (USHORT) _ux_utility_short_get(raw_descriptor); in _ux_utility_descriptor_parse()
114 descriptor += 2; in _ux_utility_descriptor_parse()
120 *((UCHAR *) descriptor) = (UCHAR) *raw_descriptor; in _ux_utility_descriptor_parse()
[all …]
Dux_host_stack_device_descriptor_read.c85 UCHAR * descriptor; in _ux_host_stack_device_descriptor_read() local
96descriptor = _ux_utility_memory_allocate(UX_SAFE_ALIGN, UX_CACHE_SAFE_MEMORY, UX_DEVICE_DESCRIPTO… in _ux_host_stack_device_descriptor_read()
97 if (descriptor == UX_NULL) in _ux_host_stack_device_descriptor_read()
103 transfer_request -> ux_transfer_request_data_pointer = descriptor; in _ux_host_stack_device_descriptor_read()
124 …_ux_utility_descriptor_parse(descriptor, _ux_system_device_descriptor_structure, UX_DEVICE_DESCRIP… in _ux_host_stack_device_descriptor_read()
131 _ux_utility_memory_free(descriptor); in _ux_host_stack_device_descriptor_read()
143 _ux_utility_memory_free(descriptor); in _ux_host_stack_device_descriptor_read()
163 _ux_utility_memory_free(descriptor); in _ux_host_stack_device_descriptor_read()
172 transfer_request -> ux_transfer_request_data_pointer = descriptor; in _ux_host_stack_device_descriptor_read()
188 …_ux_utility_descriptor_parse(descriptor, _ux_system_device_descriptor_structure, UX_DEVICE_DESCRIP… in _ux_host_stack_device_descriptor_read()
[all …]
Dux_host_stack_new_interface_create.c89 UCHAR * descriptor, ULONG length) in _ux_host_stack_new_interface_create() argument
112 _ux_utility_descriptor_parse(descriptor, in _ux_host_stack_new_interface_create()
155 this_interface_descriptor = descriptor; in _ux_host_stack_new_interface_create()
161 descriptor_length = *descriptor; in _ux_host_stack_new_interface_create()
162 descriptor_type = *(descriptor+1); in _ux_host_stack_new_interface_create()
172 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_DESCRIPTOR_CORRUPTED, descriptor, 0, 0, UX_TRACE_ERRORS… in _ux_host_stack_new_interface_create()
182 status = _ux_host_stack_new_endpoint_create(interface_ptr, descriptor); in _ux_host_stack_new_interface_create()
192 …ength > length) || (descriptor_type == UX_INTERFACE_DESCRIPTOR_ITEM && descriptor != this_interfac… in _ux_host_stack_new_interface_create()
199 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_DESCRIPTOR_CORRUPTED, descriptor, 0, 0, UX_TRACE_ERRORS… in _ux_host_stack_new_interface_create()
205 descriptor += descriptor_length; in _ux_host_stack_new_interface_create()
Dux_host_stack_interfaces_scan.c75 UINT _ux_host_stack_interfaces_scan(UX_CONFIGURATION *configuration, UCHAR * descriptor) in _ux_host_stack_interfaces_scan() argument
101 descriptor_length = *descriptor; in _ux_host_stack_interfaces_scan()
102 descriptor_type = *(descriptor + 1); in _ux_host_stack_interfaces_scan()
112 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_DESCRIPTOR_CORRUPTED, descriptor, 0, 0, UX_TRACE_ERRORS… in _ux_host_stack_interfaces_scan()
122 _ux_utility_descriptor_parse(descriptor, in _ux_host_stack_interfaces_scan()
145 …status = _ux_host_stack_new_interface_create(configuration, descriptor, total_configuration_lengt… in _ux_host_stack_interfaces_scan()
178 … configuration -> ux_configuration_otg_capabilities = (ULONG) *(descriptor + UX_OTG_BM_ATTRIBUTES); in _ux_host_stack_interfaces_scan()
188 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_DESCRIPTOR_CORRUPTED, descriptor, 0, 0, UX_TRACE_ERRORS… in _ux_host_stack_interfaces_scan()
193 descriptor += descriptor_length; in _ux_host_stack_interfaces_scan()
/USBX-v6.2.1/common/usbx_host_classes/src/
Dux_host_class_audio_streaming_sampling_get.c92 UCHAR * descriptor; in _ux_host_class_audio_streaming_sampling_get() local
128 descriptor = audio -> ux_host_class_audio_configuration_descriptor; in _ux_host_class_audio_streaming_sampling_get()
139 descriptor_length = *descriptor; in _ux_host_class_audio_streaming_sampling_get()
140 descriptor_type = *(descriptor + 1); in _ux_host_class_audio_streaming_sampling_get()
141 descriptor_subtype = *(descriptor + 2); in _ux_host_class_audio_streaming_sampling_get()
151 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_DESCRIPTOR_CORRUPTED, descriptor, 0, 0, UX_TRACE_ERRORS… in _ux_host_class_audio_streaming_sampling_get()
167 _ux_utility_descriptor_parse(descriptor, _ux_system_interface_descriptor_structure, in _ux_host_class_audio_streaming_sampling_get()
192 … _ux_utility_descriptor_parse(descriptor, _ux_system_class_audio_interface_descriptor_structure, in _ux_host_class_audio_streaming_sampling_get()
213 … (ULONG) *(descriptor + UX_HOST_CLASS_AUDIO_INTERFACE_DESCRIPTOR_LENGTH) | in _ux_host_class_audio_streaming_sampling_get()
214 … ((ULONG) *(descriptor + UX_HOST_CLASS_AUDIO_INTERFACE_DESCRIPTOR_LENGTH + 1)) << 8 | in _ux_host_class_audio_streaming_sampling_get()
[all …]
Dux_host_class_audio_device_type_get.c82 UCHAR *descriptor; in _ux_host_class_audio_device_type_get() local
93 descriptor = audio -> ux_host_class_audio_configuration_descriptor; in _ux_host_class_audio_device_type_get()
108 descriptor_length = *descriptor; in _ux_host_class_audio_device_type_get()
109 descriptor_type = *(descriptor + 1); in _ux_host_class_audio_device_type_get()
110 descriptor_subtype = *(descriptor + 2); in _ux_host_class_audio_device_type_get()
120 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_DESCRIPTOR_CORRUPTED, descriptor, 0, 0, UX_TRACE_ERRORS… in _ux_host_class_audio_device_type_get()
133 if ((descriptor[4] == UX_HOST_CLASS_AUDIO_CLASS) && in _ux_host_class_audio_device_type_get()
134 (descriptor[2] <= interface_number) && in _ux_host_class_audio_device_type_get()
135 (descriptor[2] + descriptor[3] > interface_number)) in _ux_host_class_audio_device_type_get()
137 iad = descriptor; in _ux_host_class_audio_device_type_get()
[all …]
Dux_host_class_cdc_acm_capabilities_get.c83 UCHAR *descriptor; in _ux_host_class_cdc_acm_capabilities_get() local
101descriptor = _ux_utility_memory_allocate(UX_SAFE_ALIGN, UX_CACHE_SAFE_MEMORY, UX_CONFIGURATION_DE… in _ux_host_class_cdc_acm_capabilities_get()
102 if (descriptor == UX_NULL) in _ux_host_class_cdc_acm_capabilities_get()
106 saved_descriptor = descriptor; in _ux_host_class_cdc_acm_capabilities_get()
109 transfer_request -> ux_transfer_request_data_pointer = descriptor; in _ux_host_class_cdc_acm_capabilities_get()
124 _ux_utility_descriptor_parse(descriptor, _ux_system_configuration_descriptor_structure, in _ux_host_class_cdc_acm_capabilities_get()
132 _ux_utility_memory_free(descriptor); in _ux_host_class_cdc_acm_capabilities_get()
136descriptor = _ux_utility_memory_allocate(UX_SAFE_ALIGN, UX_CACHE_SAFE_MEMORY, total_descriptor_le… in _ux_host_class_cdc_acm_capabilities_get()
137 if (descriptor == UX_NULL) in _ux_host_class_cdc_acm_capabilities_get()
141 saved_descriptor = descriptor; in _ux_host_class_cdc_acm_capabilities_get()
[all …]
Dux_host_class_video_format_data_get.c78 UCHAR *descriptor; in _ux_host_class_video_format_data_get() local
87 descriptor = video -> ux_host_class_video_format_address; in _ux_host_class_video_format_data_get()
95 descriptor_length = *descriptor; in _ux_host_class_video_format_data_get()
96 descriptor_type = *(descriptor + 1); in _ux_host_class_video_format_data_get()
97 descriptor_subtype = *(descriptor + 2); in _ux_host_class_video_format_data_get()
107 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_DESCRIPTOR_CORRUPTED, descriptor, 0, 0, UX_TRACE_ERRORS… in _ux_host_class_video_format_data_get()
129 guid = (descriptor + 4); in _ux_host_class_video_format_data_get()
131 guid = (descriptor + 7); in _ux_host_class_video_format_data_get()
133 guid = (descriptor + 5); in _ux_host_class_video_format_data_get()
149 … if (format_parameter -> ux_host_class_video_parameter_format_requested == *(descriptor + 3)) in _ux_host_class_video_format_data_get()
[all …]
Dux_host_class_video_frame_data_get.c98 UCHAR *descriptor; in _ux_host_class_video_frame_data_get() local
107 descriptor = video -> ux_host_class_video_current_format_address; in _ux_host_class_video_frame_data_get()
115 descriptor_length = *descriptor; in _ux_host_class_video_frame_data_get()
116 descriptor_type = *(descriptor + 1); in _ux_host_class_video_frame_data_get()
117 descriptor_subtype = *(descriptor + 2); in _ux_host_class_video_frame_data_get()
127 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_DESCRIPTOR_CORRUPTED, descriptor, 0, 0, UX_TRACE_ERRORS… in _ux_host_class_video_frame_data_get()
147 … if (frame_parameter -> ux_host_class_video_parameter_frame_requested == *(descriptor + 3)) in _ux_host_class_video_frame_data_get()
164 …r -> ux_host_class_video_parameter_frame_width = _ux_utility_short_get(descriptor + field_offsets[… in _ux_host_class_video_frame_data_get()
165 … -> ux_host_class_video_parameter_frame_height = _ux_utility_short_get(descriptor + field_offsets[… in _ux_host_class_video_frame_data_get()
166 …st_class_video_parameter_default_frame_interval = _ux_utility_long_get(descriptor + field_offsets[… in _ux_host_class_video_frame_data_get()
[all …]
Dux_host_class_audio_device_controls_list_get.c82 UCHAR * descriptor; in _ux_host_class_audio_device_controls_list_get() local
96 descriptor = audio -> ux_host_class_audio_configuration_descriptor; in _ux_host_class_audio_device_controls_list_get()
110 descriptor_length = *descriptor; in _ux_host_class_audio_device_controls_list_get()
111 descriptor_type = *(descriptor + 1); in _ux_host_class_audio_device_controls_list_get()
112 descriptor_subtype = *(descriptor + 2); in _ux_host_class_audio_device_controls_list_get()
122 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_DESCRIPTOR_CORRUPTED, descriptor, 0, 0, UX_TRACE_ERRORS… in _ux_host_class_audio_device_controls_list_get()
134 if (ac_interface == descriptor[2]) in _ux_host_class_audio_device_controls_list_get()
160 itt_nb_channels = descriptor[8]; in _ux_host_class_audio_device_controls_list_get()
167 itt_nb_channels = descriptor[7]; in _ux_host_class_audio_device_controls_list_get()
180 audio -> ux_host_class_audio_feature_unit_id = descriptor[3]; in _ux_host_class_audio_device_controls_list_get()
[all …]
Dux_host_class_video_entities_parse.c97 UCHAR *descriptor; in _ux_host_class_video_entities_parse() local
111 descriptor = video -> ux_host_class_video_configuration_descriptor; in _ux_host_class_video_entities_parse()
122 descriptor_length = *descriptor; in _ux_host_class_video_entities_parse()
123 descriptor_type = *(descriptor + 1); in _ux_host_class_video_entities_parse()
139 if (descriptor[5] == UX_HOST_CLASS_VIDEO_CLASS) in _ux_host_class_video_entities_parse()
143 if (descriptor[6] == UX_HOST_CLASS_VIDEO_SUBCLASS_CONTROL) in _ux_host_class_video_entities_parse()
146 interface_descriptor = descriptor; in _ux_host_class_video_entities_parse()
152 … if (descriptor[2] == interface_ptr -> ux_interface_descriptor.bInterfaceNumber) in _ux_host_class_video_entities_parse()
155 interface_descriptor = descriptor; in _ux_host_class_video_entities_parse()
167 status = parse_function(arg, interface_descriptor, descriptor); in _ux_host_class_video_entities_parse()
[all …]
Dux_host_class_hid_report_descriptor_get.c83 UCHAR *descriptor; in _ux_host_class_hid_report_descriptor_get() local
94 descriptor = _ux_utility_memory_allocate(UX_SAFE_ALIGN, UX_CACHE_SAFE_MEMORY, length); in _ux_host_class_hid_report_descriptor_get()
95 if (descriptor == UX_NULL) in _ux_host_class_hid_report_descriptor_get()
99 start_descriptor = descriptor; in _ux_host_class_hid_report_descriptor_get()
102 transfer_request -> ux_transfer_request_data_pointer = descriptor; in _ux_host_class_hid_report_descriptor_get()
121 _ux_host_class_hid_report_item_analyse(descriptor, &item); in _ux_host_class_hid_report_descriptor_get()
124 descriptor += item.ux_host_class_hid_item_report_format; in _ux_host_class_hid_report_descriptor_get()
133 status = _ux_host_class_hid_global_item_parse(hid, &item, descriptor); in _ux_host_class_hid_report_descriptor_get()
140 status = _ux_host_class_hid_main_item_parse(hid, &item, descriptor); in _ux_host_class_hid_report_descriptor_get()
147 status = _ux_host_class_hid_local_item_parse(hid, &item, descriptor); in _ux_host_class_hid_report_descriptor_get()
[all …]
Dux_host_class_audio_alternate_setting_locate.c93 UCHAR * descriptor; in _ux_host_class_audio_alternate_setting_locate()
107 descriptor = audio -> ux_host_class_audio_configuration_descriptor; in _ux_host_class_audio_alternate_setting_locate()
118 descriptor_length = *descriptor; in _ux_host_class_audio_alternate_setting_locate()
119 descriptor_type = *(descriptor + 1); in _ux_host_class_audio_alternate_setting_locate()
120 descriptor_subtype = *(descriptor + 2); in _ux_host_class_audio_alternate_setting_locate()
130 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_DESCRIPTOR_CORRUPTED, descriptor, 0, 0, UX_TRACE_ERRORS… in _ux_host_class_audio_alternate_setting_locate()
142 _ux_utility_descriptor_parse(descriptor, _ux_system_interface_descriptor_structure, in _ux_host_class_audio_alternate_setting_locate()
172 … _ux_utility_descriptor_parse(descriptor, _ux_system_class_audio_interface_descriptor_structure, in _ux_host_class_audio_alternate_setting_locate()
193 … lower_frequency = (ULONG) *(descriptor + UX_HOST_CLASS_AUDIO_INTERFACE_DESCRIPTOR_LENGTH) | in _ux_host_class_audio_alternate_setting_locate()
194 … ((ULONG) *(descriptor + UX_HOST_CLASS_AUDIO_INTERFACE_DESCRIPTOR_LENGTH + 1)) << 8 | in _ux_host_class_audio_alternate_setting_locate()
[all …]
Dux_host_class_audio_streaming_terminal_get.c76 UCHAR * descriptor; in _ux_host_class_audio_streaming_terminal_get() local
87 descriptor = audio -> ux_host_class_audio_configuration_descriptor; in _ux_host_class_audio_streaming_terminal_get()
99 descriptor_length = *descriptor; in _ux_host_class_audio_streaming_terminal_get()
100 descriptor_type = *(descriptor + 1); in _ux_host_class_audio_streaming_terminal_get()
101 descriptor_subtype = *(descriptor + 2); in _ux_host_class_audio_streaming_terminal_get()
111 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_DESCRIPTOR_CORRUPTED, descriptor, 0, 0, UX_TRACE_ERRORS… in _ux_host_class_audio_streaming_terminal_get()
124 _ux_utility_descriptor_parse(descriptor, _ux_system_interface_descriptor_structure, in _ux_host_class_audio_streaming_terminal_get()
154 …_ux_utility_descriptor_parse(descriptor, _ux_system_class_audio_streaming_interface_descriptor_str… in _ux_host_class_audio_streaming_terminal_get()
173 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_DESCRIPTOR_CORRUPTED, descriptor, 0, 0, UX_TRACE_ERRORS… in _ux_host_class_audio_streaming_terminal_get()
179 descriptor += descriptor_length; in _ux_host_class_audio_streaming_terminal_get()
Dux_host_class_hid_descriptor_parse.c85 UCHAR *descriptor; in _ux_host_class_hid_descriptor_parse() local
106 descriptor = start_descriptor; in _ux_host_class_hid_descriptor_parse()
118descriptor = _ux_utility_memory_allocate(UX_SAFE_ALIGN, UX_CACHE_SAFE_MEMORY, total_configuration… in _ux_host_class_hid_descriptor_parse()
119 if (descriptor == UX_NULL) in _ux_host_class_hid_descriptor_parse()
123 start_descriptor = descriptor; in _ux_host_class_hid_descriptor_parse()
126 transfer_request -> ux_transfer_request_data_pointer = descriptor; in _ux_host_class_hid_descriptor_parse()
154 descriptor_length = *descriptor; in _ux_host_class_hid_descriptor_parse()
155 descriptor_type = *(descriptor + 1); in _ux_host_class_hid_descriptor_parse()
165 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_DESCRIPTOR_CORRUPTED, descriptor, 0, 0, UX_TRACE_ERRORS… in _ux_host_class_hid_descriptor_parse()
178 _ux_utility_descriptor_parse(descriptor, in _ux_host_class_hid_descriptor_parse()
[all …]
Dux_host_class_video_input_format_get.c75 UCHAR *descriptor; in _ux_host_class_video_input_format_get() local
86 descriptor = video -> ux_host_class_video_configuration_descriptor; in _ux_host_class_video_input_format_get()
97 descriptor_length = *descriptor; in _ux_host_class_video_input_format_get()
98 descriptor_type = *(descriptor + 1); in _ux_host_class_video_input_format_get()
99 descriptor_subtype = *(descriptor + 2); in _ux_host_class_video_input_format_get()
122 _ux_utility_descriptor_parse(descriptor, _ux_system_interface_descriptor_structure, in _ux_host_class_video_input_format_get()
155 … _ux_utility_descriptor_parse(descriptor, _ux_system_class_video_input_header_descriptor_structure, in _ux_host_class_video_input_format_get()
165 video -> ux_host_class_video_format_address = descriptor; in _ux_host_class_video_input_format_get()
189 descriptor += descriptor_length; in _ux_host_class_video_input_format_get()
Dux_host_class_video_frame_interval_get.c80 UCHAR *descriptor; in _ux_host_class_video_frame_interval_get() local
90 descriptor = video -> ux_host_class_video_current_format_address; in _ux_host_class_video_frame_interval_get()
98 descriptor_length = *descriptor; in _ux_host_class_video_frame_interval_get()
99 descriptor_type = *(descriptor + 1); in _ux_host_class_video_frame_interval_get()
100 descriptor_subtype = *(descriptor + 2); in _ux_host_class_video_frame_interval_get()
128 … if (interval_parameter -> ux_host_class_video_parameter_frame_requested == *(descriptor + 3)) in _ux_host_class_video_frame_interval_get()
132 … _ux_utility_descriptor_parse(descriptor, _ux_system_class_video_frame_descriptor_structure, in _ux_host_class_video_frame_interval_get()
164 _ux_utility_long_get(descriptor + 26 + i * sizeof(ULONG)); in _ux_host_class_video_frame_interval_get()
190 descriptor += descriptor_length; in _ux_host_class_video_frame_interval_get()
Dux_host_class_cdc_ecm_mac_address_get.c88 UCHAR *descriptor; in _ux_host_class_cdc_ecm_mac_address_get() local
113descriptor = _ux_utility_memory_allocate(UX_SAFE_ALIGN, UX_CACHE_SAFE_MEMORY, UX_CONFIGURATION_DE… in _ux_host_class_cdc_ecm_mac_address_get()
114 if (descriptor == UX_NULL) in _ux_host_class_cdc_ecm_mac_address_get()
118 start_descriptor = descriptor; in _ux_host_class_cdc_ecm_mac_address_get()
121 transfer_request -> ux_transfer_request_data_pointer = descriptor; in _ux_host_class_cdc_ecm_mac_address_get()
136 _ux_utility_descriptor_parse(descriptor, _ux_system_configuration_descriptor_structure, in _ux_host_class_cdc_ecm_mac_address_get()
140 _ux_utility_memory_free(descriptor); in _ux_host_class_cdc_ecm_mac_address_get()
144descriptor = _ux_utility_memory_allocate(UX_SAFE_ALIGN, UX_CACHE_SAFE_MEMORY, total_configuration… in _ux_host_class_cdc_ecm_mac_address_get()
145 if (descriptor == UX_NULL) in _ux_host_class_cdc_ecm_mac_address_get()
149 start_descriptor = descriptor; in _ux_host_class_cdc_ecm_mac_address_get()
[all …]
Dux_host_class_audio_descriptors_parse.c93 UCHAR *descriptor; in _ux_host_class_audio_descriptors_parse() local
120 descriptor = audio -> ux_host_class_audio_configuration_descriptor; in _ux_host_class_audio_descriptors_parse()
136 descriptor_length = *descriptor; in _ux_host_class_audio_descriptors_parse()
137 descriptor_type = *(descriptor + 1); in _ux_host_class_audio_descriptors_parse()
150 if (descriptor[2] == ac_interface || descriptor[2] == as_interface) in _ux_host_class_audio_descriptors_parse()
154 interface_descriptor = descriptor; in _ux_host_class_audio_descriptors_parse()
167 endpoint_descriptor = descriptor; in _ux_host_class_audio_descriptors_parse()
178 status = parse_function(arg, interface_descriptor, endpoint_descriptor, descriptor); in _ux_host_class_audio_descriptors_parse()
199 descriptor += descriptor_length; in _ux_host_class_audio_descriptors_parse()
Dux_host_class_hub_descriptor_get.c35 UINT _ux_host_class_hub_descriptor_parse(UX_HOST_CLASS_HUB *hub, UCHAR *descriptor);
40 _ux_host_class_hub_descriptor_parse(UX_HOST_CLASS_HUB *hub, UCHAR *descriptor) in _ux_host_class_hub_descriptor_parse() argument
47 …_ux_utility_descriptor_parse(descriptor, _ux_system_hub_descriptor_structure, UX_HUB_DESCRIPTOR_EN… in _ux_host_class_hub_descriptor_parse()
184 UCHAR *descriptor; in _ux_host_class_hub_descriptor_get() local
195descriptor = _ux_utility_memory_allocate(UX_SAFE_ALIGN, UX_CACHE_SAFE_MEMORY, UX_HUB_DESCRIPTOR_L… in _ux_host_class_hub_descriptor_get()
196 if (descriptor == UX_NULL) in _ux_host_class_hub_descriptor_get()
200 transfer_request -> ux_transfer_request_data_pointer = descriptor; in _ux_host_class_hub_descriptor_get()
210 hub -> ux_host_class_hub_allocated = descriptor; in _ux_host_class_hub_descriptor_get()
230 status = _ux_host_class_hub_descriptor_parse(hub, descriptor); in _ux_host_class_hub_descriptor_get()
238 … UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, status, descriptor, 0, 0, UX_TRACE_ERRORS, 0, 0) in _ux_host_class_hub_descriptor_get()
[all …]
Dux_host_class_video_control_list_get.c75 UCHAR *descriptor; in _ux_host_class_video_control_list_get() local
86 descriptor = video -> ux_host_class_video_configuration_descriptor; in _ux_host_class_video_control_list_get()
97 descriptor_length = *descriptor; in _ux_host_class_video_control_list_get()
98 descriptor_type = *(descriptor + 1); in _ux_host_class_video_control_list_get()
99 descriptor_subtype = *(descriptor + 2); in _ux_host_class_video_control_list_get()
121 _ux_utility_descriptor_parse(descriptor, _ux_system_interface_descriptor_structure, in _ux_host_class_video_control_list_get()
152 …_ux_utility_descriptor_parse(descriptor, _ux_system_class_video_input_terminal_descriptor_structur… in _ux_host_class_video_control_list_get()
178 descriptor += descriptor_length; in _ux_host_class_video_control_list_get()
Dux_host_class_video_input_terminal_get.c75 UCHAR *descriptor; in _ux_host_class_video_input_terminal_get() local
86 descriptor = video -> ux_host_class_video_configuration_descriptor; in _ux_host_class_video_input_terminal_get()
97 descriptor_length = *descriptor; in _ux_host_class_video_input_terminal_get()
98 descriptor_type = *(descriptor + 1); in _ux_host_class_video_input_terminal_get()
99 descriptor_subtype = *(descriptor + 2); in _ux_host_class_video_input_terminal_get()
121 _ux_utility_descriptor_parse(descriptor, _ux_system_interface_descriptor_structure, in _ux_host_class_video_input_terminal_get()
152 …_ux_utility_descriptor_parse(descriptor, _ux_system_class_video_input_terminal_descriptor_structur… in _ux_host_class_video_input_terminal_get()
183 descriptor += descriptor_length; in _ux_host_class_video_input_terminal_get()
Dux_host_class_hid_global_item_parse.c76 …lass_hid_global_item_parse(UX_HOST_CLASS_HID *hid, UX_HOST_CLASS_HID_ITEM *item, UCHAR *descriptor) in _ux_host_class_hid_global_item_parse() argument
93 _ux_host_class_hid_item_data_get(descriptor, item); in _ux_host_class_hid_global_item_parse()
101 … (SLONG) _ux_host_class_hid_item_data_get(descriptor, item); in _ux_host_class_hid_global_item_parse()
109 … (SLONG) _ux_host_class_hid_item_data_get(descriptor, item); in _ux_host_class_hid_global_item_parse()
117 … (SLONG) _ux_host_class_hid_item_data_get(descriptor, item); in _ux_host_class_hid_global_item_parse()
125 … (SLONG) _ux_host_class_hid_item_data_get(descriptor, item); in _ux_host_class_hid_global_item_parse()
133 _ux_host_class_hid_item_data_get(descriptor, item); in _ux_host_class_hid_global_item_parse()
141 _ux_host_class_hid_item_data_get(descriptor, item); in _ux_host_class_hid_global_item_parse()
149 _ux_host_class_hid_item_data_get(descriptor, item); in _ux_host_class_hid_global_item_parse()
170 _ux_host_class_hid_item_data_get(descriptor, item); in _ux_host_class_hid_global_item_parse()
[all …]
Dux_host_class_audio_descriptor_get.c85 UCHAR * descriptor; in _ux_host_class_audio_descriptor_get() local
117descriptor = _ux_utility_memory_allocate(UX_SAFE_ALIGN, UX_CACHE_SAFE_MEMORY, total_configuration… in _ux_host_class_audio_descriptor_get()
118 if (descriptor == UX_NULL) in _ux_host_class_audio_descriptor_get()
122 transfer_request -> ux_transfer_request_data_pointer = descriptor; in _ux_host_class_audio_descriptor_get()
137 audio -> ux_host_class_audio_configuration_descriptor = descriptor; in _ux_host_class_audio_descriptor_get()
143 device -> ux_device_packed_configuration = descriptor; in _ux_host_class_audio_descriptor_get()
152 _ux_utility_memory_free(descriptor); in _ux_host_class_audio_descriptor_get()

123