Home
last modified time | relevance | path

Searched refs:device (Results 1 – 25 of 383) sorted by relevance

12345678910>>...16

/USBX-v6.2.1/common/core/src/
Dux_host_stack_tasks_run.c183 static inline UINT _ux_host_stack_rh_port_enable(UX_DEVICE *device) in _ux_host_stack_rh_port_enable() argument
185 UX_HCD *hcd = UX_DEVICE_HCD_GET(device); in _ux_host_stack_rh_port_enable()
186 ALIGN_TYPE port_index = (ALIGN_TYPE)UX_DEVICE_PORT_LOCATION_GET(device); in _ux_host_stack_rh_port_enable()
189 static inline UINT _ux_host_stack_rh_port_reset(UX_DEVICE *device) in _ux_host_stack_rh_port_reset() argument
191 UX_HCD *hcd = UX_DEVICE_HCD_GET(device); in _ux_host_stack_rh_port_reset()
192 ALIGN_TYPE port_index = (ALIGN_TYPE)UX_DEVICE_PORT_LOCATION_GET(device); in _ux_host_stack_rh_port_reset()
195 static inline UINT _ux_host_stack_rh_port_status_get(UX_DEVICE *device) in _ux_host_stack_rh_port_status_get() argument
197 UX_HCD *hcd = UX_DEVICE_HCD_GET(device); in _ux_host_stack_rh_port_status_get()
198 ALIGN_TYPE port_index = (ALIGN_TYPE)UX_DEVICE_PORT_LOCATION_GET(device); in _ux_host_stack_rh_port_status_get()
201 static inline VOID _ux_host_stack_enum_address_sent(UX_DEVICE *device) in _ux_host_stack_enum_address_sent() argument
[all …]
Dux_host_stack_device_resources_free.c92 UINT _ux_host_stack_device_resources_free(UX_DEVICE *device) in _ux_host_stack_device_resources_free() argument
111 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_STACK_DEVICE_RESOURCE_FREE, device, 0, 0, 0, UX_TRACE_HOST_S… in _ux_host_stack_device_resources_free()
116 if (device -> ux_device_flags & UX_DEVICE_FLAG_ENUM) in _ux_host_stack_device_resources_free()
120 if (device -> ux_device_enum_trans && in _ux_host_stack_device_resources_free()
121 device -> ux_device_enum_trans -> ux_transfer_request_data_pointer) in _ux_host_stack_device_resources_free()
123 _ux_utility_memory_free(device -> ux_device_enum_trans -> in _ux_host_stack_device_resources_free()
128 if ((device -> ux_device_enum_state == UX_HOST_STACK_ENUM_CONFIG_DESCR_PARSE) || in _ux_host_stack_device_resources_free()
129 ((device -> ux_device_enum_state == UX_HOST_STACK_ENUM_TRANS_WAIT) && in _ux_host_stack_device_resources_free()
130 (device -> ux_device_enum_next_state == UX_HOST_STACK_ENUM_CONFIG_DESCR_PARSE))) in _ux_host_stack_device_resources_free()
132 if (device -> ux_device_enum_inst.configuration && in _ux_host_stack_device_resources_free()
[all …]
Dux_host_stack_new_device_create.c120 UX_DEVICE *device; in _ux_host_stack_new_device_create() local
142 device = _ux_host_stack_new_device_get(); in _ux_host_stack_new_device_create()
143 if (device == UX_NULL) in _ux_host_stack_new_device_create()
156 *created_device = device; in _ux_host_stack_new_device_create()
162 …RT(UX_TRACE_HOST_STACK_NEW_DEVICE_CREATE, hcd, device_owner, port_index, device, UX_TRACE_HOST_STA… in _ux_host_stack_new_device_create()
167 device -> ux_device_handle = (ULONG) (ALIGN_TYPE) device; in _ux_host_stack_new_device_create()
168 device -> ux_device_state = UX_DEVICE_ATTACHED; in _ux_host_stack_new_device_create()
169 device -> ux_device_address = 0; in _ux_host_stack_new_device_create()
170 device -> ux_device_speed = device_speed; in _ux_host_stack_new_device_create()
171 UX_DEVICE_MAX_POWER_SET(device, port_max_power); in _ux_host_stack_new_device_create()
[all …]
Dux_host_stack_device_configuration_deactivate.c85 UINT _ux_host_stack_device_configuration_deactivate(UX_DEVICE *device) in _ux_host_stack_device_configuration_deactivate() argument
98 if (device -> ux_device_handle != (ULONG) (ALIGN_TYPE) device) in _ux_host_stack_device_configuration_deactivate()
105 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_DEVICE_HANDLE_UNKNOWN, device, 0, 0, UX_TRACE_ERRORS, 0… in _ux_host_stack_device_configuration_deactivate()
111 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_STACK_DEVICE_CONFIGURATION_DEACTIVATE, device, device -> ux_… in _ux_host_stack_device_configuration_deactivate()
117 if (device -> ux_device_flags & UX_DEVICE_FLAG_LOCK) in _ux_host_stack_device_configuration_deactivate()
122 device -> ux_device_flags |= UX_DEVICE_FLAG_LOCK; in _ux_host_stack_device_configuration_deactivate()
128 status = _ux_host_semaphore_get(&device -> ux_device_protection_semaphore, UX_WAIT_FOREVER); in _ux_host_stack_device_configuration_deactivate()
138 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_SEMAPHORE_ERROR, device -> ux_device_current_configurat… in _ux_host_stack_device_configuration_deactivate()
145 if (device -> ux_device_state != UX_DEVICE_CONFIGURED) in _ux_host_stack_device_configuration_deactivate()
148 device -> ux_device_flags &= ~UX_DEVICE_FLAG_LOCK; in _ux_host_stack_device_configuration_deactivate()
[all …]
Dux_host_stack_device_remove.c94 UX_DEVICE *device; in _ux_host_stack_device_remove() local
101 device = _ux_system_host -> ux_system_host_device_array; in _ux_host_stack_device_remove()
112 if (device -> ux_device_handle != UX_UNUSED) in _ux_host_stack_device_remove()
116 if( UX_DEVICE_PARENT_MATCH(device, parent) && in _ux_host_stack_device_remove()
117 UX_DEVICE_PORT_LOCATION_MATCH(device, port_index) && in _ux_host_stack_device_remove()
118 UX_DEVICE_HCD_MATCH(device, hcd)) in _ux_host_stack_device_remove()
123 device++; in _ux_host_stack_device_remove()
133 if (device -> ux_device_handle == UX_UNUSED || in _ux_host_stack_device_remove()
134 !UX_DEVICE_HCD_MATCH(device, hcd)) in _ux_host_stack_device_remove()
142 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_DEVICE_HANDLE_UNKNOWN, device, 0, 0, UX_TRACE_ERRORS, 0… in _ux_host_stack_device_remove()
[all …]
Dux_host_stack_device_configuration_activate.c86 UX_DEVICE *device; in _ux_host_stack_device_configuration_activate() local
104 device = configuration -> ux_configuration_device; in _ux_host_stack_device_configuration_activate()
107 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_STACK_DEVICE_CONFIGURATION_ACTIVATE, device, configuration, … in _ux_host_stack_device_configuration_activate()
113 if (device -> ux_device_flags & UX_DEVICE_FLAG_LOCK) in _ux_host_stack_device_configuration_activate()
118 device -> ux_device_flags |= UX_DEVICE_FLAG_LOCK; in _ux_host_stack_device_configuration_activate()
124 status = _ux_host_semaphore_get(&device -> ux_device_protection_semaphore, UX_WAIT_FOREVER); in _ux_host_stack_device_configuration_activate()
142 if (device -> ux_device_state == UX_DEVICE_CONFIGURED) in _ux_host_stack_device_configuration_activate()
147 status = (device -> ux_device_current_configuration == configuration) ? in _ux_host_stack_device_configuration_activate()
150 device -> ux_device_flags &= ~UX_DEVICE_FLAG_LOCK; in _ux_host_stack_device_configuration_activate()
152 _ux_host_semaphore_put(&device -> ux_device_protection_semaphore); in _ux_host_stack_device_configuration_activate()
[all …]
Dux_host_stack_device_configuration_reset.c83 UINT _ux_host_stack_device_configuration_reset(UX_DEVICE *device) in _ux_host_stack_device_configuration_reset() argument
92 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_STACK_DEVICE_CONFIGURATION_SELECT, device, 0, 0, 0, UX_TRACE… in _ux_host_stack_device_configuration_reset()
96 control_endpoint = &device -> ux_device_control_endpoint; in _ux_host_stack_device_configuration_reset()
101 if (device -> ux_device_state == UX_DEVICE_CONFIGURED) in _ux_host_stack_device_configuration_reset()
105 current_configuration = device -> ux_device_current_configuration; in _ux_host_stack_device_configuration_reset()
112 device -> ux_device_current_configuration = UX_NULL; in _ux_host_stack_device_configuration_reset()
115 if (device -> ux_device_packed_configuration) in _ux_host_stack_device_configuration_reset()
117 _ux_utility_memory_free(device -> ux_device_packed_configuration); in _ux_host_stack_device_configuration_reset()
118 device -> ux_device_packed_configuration = UX_NULL; in _ux_host_stack_device_configuration_reset()
119 device -> ux_device_packed_configuration_keep_count = 0; in _ux_host_stack_device_configuration_reset()
[all …]
Dux_host_stack_new_device_get.c82 UX_DEVICE *device; in _ux_host_stack_new_device_get() local
88 device = _ux_system_host -> ux_system_host_device_array; in _ux_host_stack_new_device_get()
100 if (device -> ux_device_handle == UX_UNUSED) in _ux_host_stack_new_device_get()
106 enum_next = device -> ux_device_enum_next; in _ux_host_stack_new_device_get()
107 … _ux_utility_memory_set(device, 0, sizeof(UX_DEVICE)); /* Use case of memset is verified. */ in _ux_host_stack_new_device_get()
108 device -> ux_device_enum_next = enum_next; in _ux_host_stack_new_device_get()
112 … _ux_utility_memory_set(device, 0, sizeof(UX_DEVICE)); /* Use case of memset is verified. */ in _ux_host_stack_new_device_get()
116 device -> ux_device_handle = UX_USED; in _ux_host_stack_new_device_get()
119 return(device); in _ux_host_stack_new_device_get()
124 device++; in _ux_host_stack_new_device_get()
Dux_device_stack_disconnect.c85 UX_SLAVE_DEVICE *device; in _ux_device_stack_disconnect() local
98 device = &_ux_system_slave -> ux_system_slave_device; in _ux_device_stack_disconnect()
101 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_DEVICE_STACK_DISCONNECT, device, 0, 0, 0, UX_TRACE_DEVICE_STACK_E… in _ux_device_stack_disconnect()
104 UX_TRACE_OBJECT_UNREGISTER(device); in _ux_device_stack_disconnect()
108 if (device -> ux_slave_device_state == UX_DEVICE_CONFIGURED) in _ux_device_stack_disconnect()
111 interface_ptr = device -> ux_slave_device_first_interface; in _ux_device_stack_disconnect()
150 device -> ux_slave_device_state = UX_DEVICE_ATTACHED; in _ux_device_stack_disconnect()
154 if (device -> ux_slave_device_state == UX_DEVICE_ATTACHED) in _ux_device_stack_disconnect()
158 (VOID *) &device -> ux_slave_device_control_endpoint); in _ux_device_stack_disconnect()
161 device -> ux_slave_device_configuration_selected = 0; in _ux_device_stack_disconnect()
[all …]
Dux_dcd_sim_slave_initialize_complete.c83 UX_SLAVE_DEVICE *device; in _ux_dcd_sim_slave_initialize_complete() local
92 device = &_ux_system_slave -> ux_system_slave_device; in _ux_dcd_sim_slave_initialize_complete()
118 (UCHAR *) &device -> ux_slave_device_descriptor); in _ux_dcd_sim_slave_initialize_complete()
123 …transfer_request = &device -> ux_slave_device_control_endpoint.ux_slave_endpoint_transfer_request; in _ux_dcd_sim_slave_initialize_complete()
133 …transfer_request -> ux_slave_transfer_request_endpoint = &device -> ux_slave_device_control_endpo… in _ux_dcd_sim_slave_initialize_complete()
137 device -> ux_slave_device_descriptor.bMaxPacketSize0; in _ux_dcd_sim_slave_initialize_complete()
141 device -> ux_slave_device_descriptor.bMaxPacketSize0; in _ux_dcd_sim_slave_initialize_complete()
143 device -> ux_slave_device_descriptor.bMaxPacketSize0; in _ux_dcd_sim_slave_initialize_complete()
146 …transfer_request -> ux_slave_transfer_request_endpoint = &device -> ux_slave_device_control_endpo… in _ux_dcd_sim_slave_initialize_complete()
153 (VOID *) &device -> ux_slave_device_control_endpoint); in _ux_dcd_sim_slave_initialize_complete()
[all …]
Dux_host_stack_device_string_get.c82 UINT _ux_host_stack_device_string_get(UX_DEVICE *device, UCHAR *descriptor_buffer, ULONG length, U… in _ux_host_stack_device_string_get() argument
93 if (device -> ux_device_handle != (ULONG) (ALIGN_TYPE) device) in _ux_host_stack_device_string_get()
100 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_DEVICE_HANDLE_UNKNOWN, device, 0, 0, UX_TRACE_ERRORS, 0… in _ux_host_stack_device_string_get()
106 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_STACK_DEVICE_STRING_GET, device, descriptor_buffer, length, … in _ux_host_stack_device_string_get()
109 control_endpoint = &device -> ux_device_control_endpoint; in _ux_host_stack_device_string_get()
114 if ((device -> ux_device_flags & UX_DEVICE_FLAG_LOCK) || in _ux_host_stack_device_string_get()
120 device -> ux_device_flags |= UX_DEVICE_FLAG_LOCK; in _ux_host_stack_device_string_get()
128 status = _ux_host_semaphore_get(&device -> ux_device_protection_semaphore, UX_WAIT_FOREVER); in _ux_host_stack_device_string_get()
195 UINT _uxe_host_stack_device_string_get(UX_DEVICE *device, UCHAR *descriptor_buffer, ULONG length, … in _uxe_host_stack_device_string_get() argument
199 if ((device == UX_NULL) || (descriptor_buffer == UX_NULL) || (length == 0)) in _uxe_host_stack_device_string_get()
[all …]
Dux_host_stack_device_configuration_get.c75 UINT _ux_host_stack_device_configuration_get(UX_DEVICE *device, UINT configuration_index, in _ux_host_stack_device_configuration_get() argument
83 if (device -> ux_device_handle != (ULONG) (ALIGN_TYPE) device) in _ux_host_stack_device_configuration_get()
90 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_DEVICE_HANDLE_UNKNOWN, device, 0, 0, UX_TRACE_ERRORS, 0… in _ux_host_stack_device_configuration_get()
96 current_configuration = device -> ux_device_first_configuration; in _ux_host_stack_device_configuration_get()
113 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_STACK_DEVICE_CONFIGURATION_GET, device, current_configuratio… in _ux_host_stack_device_configuration_get()
178 UINT _uxe_host_stack_device_configuration_get(UX_DEVICE *device, UINT configuration_index, in _uxe_host_stack_device_configuration_get() argument
183 if ((device == UX_NULL) || (configuration == UX_NULL)) in _uxe_host_stack_device_configuration_get()
187 return(_ux_host_stack_device_configuration_get(device, configuration_index, configuration)); in _uxe_host_stack_device_configuration_get()
Dux_device_stack_uninitialize.c82 UX_SLAVE_DEVICE *device; in _ux_device_stack_uninitialize() local
91 device = &_ux_system_slave -> ux_system_slave_device; in _ux_device_stack_uninitialize()
98 …transfer_request = &device -> ux_slave_device_control_endpoint.ux_slave_endpoint_transfer_request; in _ux_device_stack_uninitialize()
104 endpoints_found = device -> ux_slave_device_endpoints_pool_number; in _ux_device_stack_uninitialize()
107 endpoints_pool = device -> ux_slave_device_endpoints_pool; in _ux_device_stack_uninitialize()
127 if (device -> ux_slave_device_endpoints_pool) in _ux_device_stack_uninitialize()
128 _ux_utility_memory_free(device -> ux_slave_device_endpoints_pool); in _ux_device_stack_uninitialize()
131 _ux_utility_memory_free(device -> ux_slave_device_interfaces_pool); in _ux_device_stack_uninitialize()
Dux_host_stack_device_descriptor_read.c80 UINT _ux_host_stack_device_descriptor_read(UX_DEVICE *device) in _ux_host_stack_device_descriptor_read() argument
89 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_STACK_DEVICE_DESCRIPTOR_READ, device, 0, 0, 0, UX_TRACE_HOST… in _ux_host_stack_device_descriptor_read()
92 control_endpoint = &device -> ux_device_control_endpoint; in _ux_host_stack_device_descriptor_read()
111 device -> ux_device_enum_trans = transfer_request; in _ux_host_stack_device_descriptor_read()
125 … (UCHAR *) &device -> ux_device_descriptor); in _ux_host_stack_device_descriptor_read()
138 if (device -> ux_device_descriptor.bMaxPacketSize0 != 8 && in _ux_host_stack_device_descriptor_read()
139 device -> ux_device_descriptor.bMaxPacketSize0 != 16 && in _ux_host_stack_device_descriptor_read()
140 device -> ux_device_descriptor.bMaxPacketSize0 != 32 && in _ux_host_stack_device_descriptor_read()
141 device -> ux_device_descriptor.bMaxPacketSize0 != 64) in _ux_host_stack_device_descriptor_read()
150 switch(device -> ux_device_descriptor.bDeviceClass) in _ux_host_stack_device_descriptor_read()
[all …]
Dux_host_stack_transfer_request.c128 UX_DEVICE *device; in _ux_host_stack_transfer_request()
137 device = endpoint -> ux_endpoint_device; in _ux_host_stack_transfer_request()
144 …if ((device -> ux_device_state == UX_DEVICE_ATTACHED) || (device -> ux_device_state == UX_DEVICE_A… in _ux_host_stack_transfer_request()
145 || (device -> ux_device_state == UX_DEVICE_CONFIGURED)) in _ux_host_stack_transfer_request()
167 if (!_ux_host_semaphore_waiting(&device -> ux_device_protection_semaphore)) in _ux_host_stack_transfer_request()
171 _ux_host_semaphore_put(&device -> ux_device_protection_semaphore); in _ux_host_stack_transfer_request()
182 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_STACK_TRANSFER_REQUEST, device, endpoint, transfer_request, … in _ux_host_stack_transfer_request()
185 hcd = UX_DEVICE_HCD_GET(device); in _ux_host_stack_transfer_request()
192 if (_ux_host_semaphore_waiting(&device -> ux_device_protection_semaphore)) in _ux_host_stack_transfer_request()
196 … status = _ux_host_semaphore_get(&device -> ux_device_protection_semaphore, UX_WAIT_FOREVER); in _ux_host_stack_transfer_request()
[all …]
Dux_host_stack_class_device_scan.c34 #error When device driver scan is enabled at least one of scan method must be enabled in (VIDPID, D…
88 UINT _ux_host_stack_class_device_scan(UX_DEVICE *device) in _ux_host_stack_class_device_scan() argument
98 class_command.ux_host_class_command_container = (VOID *) device; in _ux_host_stack_class_device_scan()
99 class_command.ux_host_class_command_vid = device -> ux_device_descriptor.idVendor; in _ux_host_stack_class_device_scan()
100 class_command.ux_host_class_command_pid = device -> ux_device_descriptor.idProduct; in _ux_host_stack_class_device_scan()
101 … class_command.ux_host_class_command_class = device -> ux_device_descriptor.bDeviceClass; in _ux_host_stack_class_device_scan()
102 …class_command.ux_host_class_command_subclass = device -> ux_device_descriptor.bDeviceSubClas… in _ux_host_stack_class_device_scan()
103 …class_command.ux_host_class_command_protocol = device -> ux_device_descriptor.bDeviceProtoco… in _ux_host_stack_class_device_scan()
130 device -> ux_device_class = class_inst; in _ux_host_stack_class_device_scan()
140 status = device -> ux_device_class -> ux_host_class_entry_function(&class_command); in _ux_host_stack_class_device_scan()
Dux_host_stack_configuration_set.c92 UX_DEVICE *device; in _ux_host_stack_configuration_set() local
103 device = configuration -> ux_configuration_device; in _ux_host_stack_configuration_set()
104 control_endpoint = &device -> ux_device_control_endpoint; in _ux_host_stack_configuration_set()
114 if (UX_DEVICE_PARENT_IS_ROOTHUB(device)) in _ux_host_stack_configuration_set()
118 hcd = UX_DEVICE_HCD_GET(device); in _ux_host_stack_configuration_set()
157 if (device -> ux_device_flags &= UX_DEVICE_FLAG_ENUM) in _ux_host_stack_configuration_set()
161 device -> ux_device_enum_trans = transfer_request; in _ux_host_stack_configuration_set()
177 device -> ux_device_state = UX_DEVICE_CONFIGURED; in _ux_host_stack_configuration_set()
180 device -> ux_device_current_configuration = configuration; in _ux_host_stack_configuration_set()
183 device -> ux_device_power_source = (configuration -> in _ux_host_stack_configuration_set()
Dux_host_stack_device_get.c77 UINT _ux_host_stack_device_get(ULONG device_index, UX_DEVICE **device) in _ux_host_stack_device_get() argument
96 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_DEVICE_HANDLE_UNKNOWN, device, 0, 0, UX_TRACE_ERRORS, 0… in _ux_host_stack_device_get()
120 *device = current_device; in _ux_host_stack_device_get()
139 *device = current_device; in _ux_host_stack_device_get()
145 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_DEVICE_HANDLE_UNKNOWN, device, 0, 0, UX_TRACE_ERRORS, 0… in _ux_host_stack_device_get()
190 UINT _uxe_host_stack_device_get(ULONG device_index, UX_DEVICE **device) in _uxe_host_stack_device_get() argument
194 if (device == UX_NULL) in _uxe_host_stack_device_get()
198 return(_ux_host_stack_device_get(device_index, device)); in _uxe_host_stack_device_get()
Dux_host_stack_new_configuration_create.c74 VOID _ux_host_stack_new_configuration_create(UX_DEVICE *device, UX_CONFIGURATION *configuration) in _ux_host_stack_new_configuration_create() argument
80 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_STACK_NEW_CONFIGURATION_CREATE, device, configuration, 0, 0,… in _ux_host_stack_new_configuration_create()
84 configuration -> ux_configuration_device = device; in _ux_host_stack_new_configuration_create()
94 if (device -> ux_device_first_configuration == UX_NULL) in _ux_host_stack_new_configuration_create()
96 device -> ux_device_first_configuration = configuration; in _ux_host_stack_new_configuration_create()
102 list_configuration = device -> ux_device_first_configuration; in _ux_host_stack_new_configuration_create()
/USBX-v6.2.1/test/regression/
Dux_test_race_condition_overrides.c13 UX_DEVICE *device; in _ux_host_stack_transfer_request() local
31 device = endpoint -> ux_endpoint_device; in _ux_host_stack_transfer_request()
41 …if ((device -> ux_device_state == UX_DEVICE_ATTACHED) || (device -> ux_device_state == UX_DEVICE_A… in _ux_host_stack_transfer_request()
42 || (device -> ux_device_state == UX_DEVICE_CONFIGURED)) in _ux_host_stack_transfer_request()
60 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_STACK_TRANSFER_REQUEST, device, endpoint, transfer_request, … in _ux_host_stack_transfer_request()
63 hcd = UX_DEVICE_HCD_GET(device); in _ux_host_stack_transfer_request()
70 if (device -> ux_device_protection_semaphore.tx_semaphore_count != 0) in _ux_host_stack_transfer_request()
74 … status = _ux_utility_semaphore_get(&device -> ux_device_protection_semaphore, UX_WAIT_FOREVER); in _ux_host_stack_transfer_request()
95 _ux_utility_semaphore_put(&device -> ux_device_protection_semaphore); in _ux_host_stack_transfer_request()
99 …if ((device -> ux_device_state == UX_DEVICE_ATTACHED) || (device -> ux_device_state == UX_DEVICE_A… in _ux_host_stack_transfer_request()
[all …]
Dusbx_msrc_73716_cdc_ecm_mac_get_desc_check.c24 UX_DEVICE *device; in post_init_host() local
30 status = ux_host_stack_device_get(0, &device); in post_init_host()
34 status = ux_host_stack_device_get(0, &device); in post_init_host()
35 UX_TEST_ASSERT(status == UX_SUCCESS && device -> ux_device_state != UX_DEVICE_CONFIGURED); in post_init_host()
40 status = ux_host_stack_device_get(0, &device); in post_init_host()
44 status = ux_host_stack_device_get(0, &device); in post_init_host()
45 UX_TEST_ASSERT(status == UX_SUCCESS && device -> ux_device_state != UX_DEVICE_CONFIGURED); in post_init_host()
50 status = ux_host_stack_device_get(0, &device); in post_init_host()
54 status = ux_host_stack_device_get(0, &device); in post_init_host()
55 UX_TEST_ASSERT(status == UX_SUCCESS && device -> ux_device_state != UX_DEVICE_CONFIGURED); in post_init_host()
Dusbx_ux_host_class_storage_configure_coverage_test.c13 static UX_DEVICE device; variable
27 storage.ux_host_class_storage_device = &device; in test_application_define()
28 device.ux_device_state = UX_DEVICE_RESET; in test_application_define()
29 device.ux_device_handle = (ULONG)&device; in test_application_define()
30 device.ux_device_first_configuration = &storage_configuration; in test_application_define()
31 device.ux_device_power_source = UX_DEVICE_SELF_POWERED; in test_application_define()
/USBX-v6.2.1/common/usbx_host_classes/src/
Dux_host_class_hub_tasks_run.c219 UX_DEVICE *device; in _ux_host_class_hub_inst_tasks_run() local
262 device = _ux_system_host -> ux_system_host_enum_device; in _ux_host_class_hub_inst_tasks_run()
263 while(device != UX_NULL) in _ux_host_class_hub_inst_tasks_run()
267 if ((device -> ux_device_flags & UX_DEVICE_FLAG_RESET) && in _ux_host_class_hub_inst_tasks_run()
268 UX_DEVICE_PARENT_MATCH(device, hub_device) && in _ux_host_class_hub_inst_tasks_run()
269 (device -> ux_device_port_location == hub -> ux_host_class_hub_run_port)) in _ux_host_class_hub_inst_tasks_run()
271 device -> ux_device_flags &= ~UX_DEVICE_FLAG_RESET; in _ux_host_class_hub_inst_tasks_run()
276 device = device -> ux_device_enum_next; in _ux_host_class_hub_inst_tasks_run()
278 if (device) in _ux_host_class_hub_inst_tasks_run()
353 &device); in _ux_host_class_hub_inst_tasks_run()
[all …]
Dux_host_class_audio_descriptor_get.c83 UX_DEVICE *device; in _ux_host_class_audio_descriptor_get() local
93 device = audio -> ux_host_class_audio_device; in _ux_host_class_audio_descriptor_get()
94 configuration = device -> ux_device_current_configuration; in _ux_host_class_audio_descriptor_get()
97 if (device -> ux_device_packed_configuration != UX_NULL) in _ux_host_class_audio_descriptor_get()
100 device -> ux_device_packed_configuration; in _ux_host_class_audio_descriptor_get()
105 device -> ux_device_packed_configuration_keep_count ++; in _ux_host_class_audio_descriptor_get()
113 control_endpoint = &device -> ux_device_control_endpoint; in _ux_host_class_audio_descriptor_get()
143 device -> ux_device_packed_configuration = descriptor; in _ux_host_class_audio_descriptor_get()
144 device -> ux_device_packed_configuration_keep_count ++; in _ux_host_class_audio_descriptor_get()
Dux_host_class_video_descriptor_get.c83 UX_DEVICE *device; in _ux_host_class_video_descriptor_get() local
92 device = video -> ux_host_class_video_device; in _ux_host_class_video_descriptor_get()
93 configuration = device -> ux_device_current_configuration; in _ux_host_class_video_descriptor_get()
96 if (device -> ux_device_packed_configuration != UX_NULL) in _ux_host_class_video_descriptor_get()
99 device -> ux_device_packed_configuration; in _ux_host_class_video_descriptor_get()
104 device -> ux_device_packed_configuration_keep_count ++; in _ux_host_class_video_descriptor_get()
112 control_endpoint = &device -> ux_device_control_endpoint; in _ux_host_class_video_descriptor_get()
142 device -> ux_device_packed_configuration = descriptor; in _ux_host_class_video_descriptor_get()
143 device -> ux_device_packed_configuration_keep_count ++; in _ux_host_class_video_descriptor_get()

12345678910>>...16