Home
last modified time | relevance | path

Searched refs:transfer (Results 1 – 25 of 43) sorted by relevance

12

/USBX-v6.2.1/common/usbx_device_classes/src/
Dux_device_class_audio20_control_process.c97 UX_SLAVE_TRANSFER *transfer, in _ux_device_class_audio20_control_process() argument
116 transfer = &endpoint -> ux_slave_endpoint_transfer_request; in _ux_device_class_audio20_control_process()
119 …request = *(transfer -> ux_slave_transfer_request_setup + UX_DEVICE_CLASS_AUDIO_REQUEST_R… in _ux_device_class_audio20_control_process()
120 …request_type = *(transfer -> ux_slave_transfer_request_setup + UX_DEVICE_CLASS_AUDIO_REQUEST_R… in _ux_device_class_audio20_control_process()
121 …unit_id = *(transfer -> ux_slave_transfer_request_setup + UX_DEVICE_CLASS_AUDIO_REQUEST_E… in _ux_device_class_audio20_control_process()
122 …control_selector = *(transfer -> ux_slave_transfer_request_setup + UX_DEVICE_CLASS_AUDIO_REQUEST_C… in _ux_device_class_audio20_control_process()
123 …channel_number = *(transfer -> ux_slave_transfer_request_setup + UX_DEVICE_CLASS_AUDIO_REQUEST_C… in _ux_device_class_audio20_control_process()
124 …request_length = _ux_utility_short_get(transfer -> ux_slave_transfer_request_setup + UX_SETUP_LE… in _ux_device_class_audio20_control_process()
172 freq = _ux_utility_long_get(transfer -> ux_slave_transfer_request_data_pointer); in _ux_device_class_audio20_control_process()
213 …_ux_utility_long_put(transfer -> ux_slave_transfer_request_data_pointer, control -> ux_device_clas… in _ux_device_class_audio20_control_process()
[all …]
Dux_device_class_audio10_control_process.c93 UX_SLAVE_TRANSFER *transfer, UX_DEVICE_CLASS_AUDIO10_CONTROL_GROUP *group) in _ux_device_class_audio10_control_process() argument
111 transfer = &endpoint -> ux_slave_endpoint_transfer_request; in _ux_device_class_audio10_control_process()
114 …request = *(transfer -> ux_slave_transfer_request_setup + UX_DEVICE_CLASS_AUDIO_REQUEST_R… in _ux_device_class_audio10_control_process()
115 …request_type = *(transfer -> ux_slave_transfer_request_setup + UX_DEVICE_CLASS_AUDIO_REQUEST_R… in _ux_device_class_audio10_control_process()
116 …unit_id = *(transfer -> ux_slave_transfer_request_setup + UX_DEVICE_CLASS_AUDIO_REQUEST_E… in _ux_device_class_audio10_control_process()
117 …ep_addr = *(transfer -> ux_slave_transfer_request_setup + UX_DEVICE_CLASS_AUDIO_REQUEST_E… in _ux_device_class_audio10_control_process()
118 …control_selector = *(transfer -> ux_slave_transfer_request_setup + UX_DEVICE_CLASS_AUDIO_REQUEST_C… in _ux_device_class_audio10_control_process()
119 …channel_number = *(transfer -> ux_slave_transfer_request_setup + UX_DEVICE_CLASS_AUDIO_REQUEST_C… in _ux_device_class_audio10_control_process()
120 …request_length = _ux_utility_short_get(transfer -> ux_slave_transfer_request_setup + UX_SETUP_LE… in _ux_device_class_audio10_control_process()
178 sam = ((ULONG)transfer -> ux_slave_transfer_request_data_pointer[0] ) | in _ux_device_class_audio10_control_process()
[all …]
Dux_device_class_ccid_response.c76 UX_SLAVE_TRANSFER *transfer; in _ux_device_class_ccid_response() local
83 transfer = &endpoint -> ux_slave_endpoint_transfer_request; in _ux_device_class_ccid_response()
90 transfer -> ux_slave_transfer_request_data_pointer != buffer) in _ux_device_class_ccid_response()
92 _ux_utility_memory_copy(transfer -> ux_slave_transfer_request_data_pointer, in _ux_device_class_ccid_response()
99 UX_SLAVE_TRANSFER_STATE_RESET(transfer); in _ux_device_class_ccid_response()
100 transfer -> ux_slave_transfer_request_requested_length = length; in _ux_device_class_ccid_response()
107 status = _ux_device_stack_transfer_request(transfer, length, length); in _ux_device_class_ccid_response()
Dux_device_class_video_read_task_function.c80 UX_SLAVE_TRANSFER *transfer; in _ux_device_class_video_read_task_function() local
110 transfer = &endpoint -> ux_slave_endpoint_transfer_request; in _ux_device_class_video_read_task_function()
120 UX_SLAVE_TRANSFER_STATE_RESET(transfer); in _ux_device_class_video_read_task_function()
126 status = _ux_device_stack_transfer_run(transfer, max_packet_size, max_packet_size); in _ux_device_class_video_read_task_function()
135 transfer -> ux_slave_transfer_request_completion_code; in _ux_device_class_video_read_task_function()
149 transfer -> ux_slave_transfer_request_completion_code; in _ux_device_class_video_read_task_function()
152 actual_length = transfer -> ux_slave_transfer_request_actual_length; in _ux_device_class_video_read_task_function()
157 transfer -> ux_slave_transfer_request_data_pointer, in _ux_device_class_video_read_task_function()
Dux_device_class_audio_read_task_function.c80 UX_SLAVE_TRANSFER *transfer; in _ux_device_class_audio_read_task_function() local
110 transfer = &endpoint -> ux_slave_endpoint_transfer_request; in _ux_device_class_audio_read_task_function()
120 UX_SLAVE_TRANSFER_STATE_RESET(transfer); in _ux_device_class_audio_read_task_function()
125 status = _ux_device_stack_transfer_run(transfer, max_packet_size, max_packet_size); in _ux_device_class_audio_read_task_function()
134 transfer -> ux_slave_transfer_request_completion_code; in _ux_device_class_audio_read_task_function()
148 transfer -> ux_slave_transfer_request_completion_code; in _ux_device_class_audio_read_task_function()
151 actual_length = transfer -> ux_slave_transfer_request_actual_length; in _ux_device_class_audio_read_task_function()
157 transfer -> ux_slave_transfer_request_data_pointer, in _ux_device_class_audio_read_task_function()
Dux_device_class_audio_feedback_task_function.c83 UX_SLAVE_TRANSFER *transfer; in _ux_device_class_audio_feedback_task_function() local
116 transfer = &endpoint -> ux_slave_endpoint_transfer_request; in _ux_device_class_audio_feedback_task_function()
119 transfer_length = transfer -> ux_slave_transfer_request_requested_length; in _ux_device_class_audio_feedback_task_function()
131 status = _ux_device_stack_transfer_run(transfer, transfer_length, transfer_length); in _ux_device_class_audio_feedback_task_function()
141 …stream -> ux_device_class_audio_stream_feedback_task_status = transfer -> ux_slave_transfer_reques… in _ux_device_class_audio_feedback_task_function()
149 …stream -> ux_device_class_audio_stream_feedback_task_status = transfer -> ux_slave_transfer_reques… in _ux_device_class_audio_feedback_task_function()
Dux_device_class_printer_ioctl.c80 UX_SLAVE_TRANSFER *transfer; in _ux_device_class_printer_ioctl() local
99 transfer = &endpoint -> ux_slave_endpoint_transfer_request; in _ux_device_class_printer_ioctl()
100 transfer -> ux_slave_transfer_request_timeout = (ULONG)(ALIGN_TYPE)parameter; in _ux_device_class_printer_ioctl()
109 transfer = &endpoint -> ux_slave_endpoint_transfer_request; in _ux_device_class_printer_ioctl()
110 transfer -> ux_slave_transfer_request_timeout = (ULONG)(ALIGN_TYPE)parameter; in _ux_device_class_printer_ioctl()
Dux_device_class_audio_write_task_function.c81 UX_SLAVE_TRANSFER *transfer; in _ux_device_class_audio_write_task_function() local
111 transfer = &endpoint -> ux_slave_endpoint_transfer_request; in _ux_device_class_audio_write_task_function()
123 _ux_utility_memory_copy(transfer -> ux_slave_transfer_request_data_pointer, in _ux_device_class_audio_write_task_function()
127 UX_SLAVE_TRANSFER_STATE_RESET(transfer); in _ux_device_class_audio_write_task_function()
134 status = _ux_device_stack_transfer_run(transfer, transfer_length, transfer_length); in _ux_device_class_audio_write_task_function()
143 transfer -> ux_slave_transfer_request_completion_code; in _ux_device_class_audio_write_task_function()
157 transfer -> ux_slave_transfer_request_completion_code; in _ux_device_class_audio_write_task_function()
163 actual_length = transfer -> ux_slave_transfer_request_actual_length; in _ux_device_class_audio_write_task_function()
Dux_device_class_video_write_task_function.c81 UX_SLAVE_TRANSFER *transfer; in _ux_device_class_video_write_task_function() local
111 transfer = &endpoint -> ux_slave_endpoint_transfer_request; in _ux_device_class_video_write_task_function()
123 _ux_utility_memory_copy(transfer -> ux_slave_transfer_request_data_pointer, in _ux_device_class_video_write_task_function()
127 UX_SLAVE_TRANSFER_STATE_RESET(transfer); in _ux_device_class_video_write_task_function()
134 status = _ux_device_stack_transfer_run(transfer, transfer_length, transfer_length); in _ux_device_class_video_write_task_function()
143 transfer -> ux_slave_transfer_request_completion_code; in _ux_device_class_video_write_task_function()
157 transfer -> ux_slave_transfer_request_completion_code; in _ux_device_class_video_write_task_function()
163 actual_length = transfer -> ux_slave_transfer_request_actual_length; in _ux_device_class_video_write_task_function()
Dux_device_class_audio_feedback_thread_entry.c88 UX_SLAVE_TRANSFER *transfer; in _ux_device_class_audio_feedback_thread_entry()
112 transfer = &endpoint -> ux_slave_endpoint_transfer_request; in _ux_device_class_audio_feedback_thread_entry()
115 transfer_length = transfer -> ux_slave_transfer_request_requested_length; in _ux_device_class_audio_feedback_thread_entry()
118 status = _ux_device_stack_transfer_request(transfer, transfer_length, transfer_length); in _ux_device_class_audio_feedback_thread_entry()
Dux_device_class_hid_receiver_tasks_run.c80 UX_SLAVE_TRANSFER *transfer; in _ux_device_class_hid_receiver_tasks_run() local
104 transfer = &endpoint -> ux_slave_endpoint_transfer_request; in _ux_device_class_hid_receiver_tasks_run()
131 status = _ux_device_stack_transfer_run(transfer, in _ux_device_class_hid_receiver_tasks_run()
141 transfer -> ux_slave_transfer_request_completion_code; in _ux_device_class_hid_receiver_tasks_run()
150 if (transfer -> ux_slave_transfer_request_actual_length == 0) in _ux_device_class_hid_receiver_tasks_run()
161 temp = transfer -> ux_slave_transfer_request_actual_length; in _ux_device_class_hid_receiver_tasks_run()
163 transfer -> ux_slave_transfer_request_data_pointer, in _ux_device_class_hid_receiver_tasks_run()
Dux_device_class_hid_receiver_thread.c86 UX_SLAVE_TRANSFER *transfer; in _ux_device_class_hid_receiver_thread() local
133 transfer = &hid -> ux_device_class_hid_read_endpoint -> ux_slave_endpoint_transfer_request; in _ux_device_class_hid_receiver_thread()
139 status = _ux_device_stack_transfer_request(transfer, in _ux_device_class_hid_receiver_thread()
145 (transfer -> ux_slave_transfer_request_actual_length == 0)) in _ux_device_class_hid_receiver_thread()
153 temp = transfer -> ux_slave_transfer_request_actual_length; in _ux_device_class_hid_receiver_thread()
155 transfer -> ux_slave_transfer_request_data_pointer, in _ux_device_class_hid_receiver_thread()
Dux_device_class_ccid_notify_task_run.c82 UX_SLAVE_TRANSFER *transfer; in _ux_device_class_ccid_notify_task_run() local
101 transfer = &endpoint -> ux_slave_endpoint_transfer_request; in _ux_device_class_ccid_notify_task_run()
137 buffer = transfer -> ux_slave_transfer_request_data_pointer; in _ux_device_class_ccid_notify_task_run()
197 UX_SLAVE_TRANSFER_STATE_RESET(transfer); in _ux_device_class_ccid_notify_task_run()
198 transfer -> ux_slave_transfer_request_requested_length = length; in _ux_device_class_ccid_notify_task_run()
203 length = transfer -> ux_slave_transfer_request_requested_length; in _ux_device_class_ccid_notify_task_run()
204 status = _ux_device_stack_transfer_run(transfer, length, length); in _ux_device_class_ccid_notify_task_run()
Dux_device_class_audio_interrupt_task_function.c82 UX_SLAVE_TRANSFER *transfer; in _ux_device_class_audio_interrupt_task_function() local
123 transfer = &endpoint -> ux_slave_endpoint_transfer_request; in _ux_device_class_audio_interrupt_task_function()
134 …if (audio -> ux_device_class_audio_status_size > transfer -> ux_slave_transfer_request_transfer_le… in _ux_device_class_audio_interrupt_task_function()
145 _ux_utility_memory_copy(transfer -> ux_slave_transfer_request_data_pointer, in _ux_device_class_audio_interrupt_task_function()
154 … status = _ux_device_stack_transfer_run(transfer, audio -> ux_device_class_audio_status_size, in _ux_device_class_audio_interrupt_task_function()
166 transfer -> ux_slave_transfer_request_completion_code; in _ux_device_class_audio_interrupt_task_function()
183 transfer -> ux_slave_transfer_request_completion_code; in _ux_device_class_audio_interrupt_task_function()
Dux_device_class_audio_interrupt_thread_entry.c82 UX_SLAVE_TRANSFER *transfer; in _ux_device_class_audio_interrupt_thread_entry() local
107 transfer = &endpoint -> ux_slave_endpoint_transfer_request; in _ux_device_class_audio_interrupt_thread_entry()
121 UX_ASSERT(size <= transfer -> ux_slave_transfer_request_transfer_length); in _ux_device_class_audio_interrupt_thread_entry()
125 _ux_utility_memory_copy(transfer -> ux_slave_transfer_request_data_pointer, in _ux_device_class_audio_interrupt_thread_entry()
129 status = _ux_device_stack_transfer_request(transfer, size, size); in _ux_device_class_audio_interrupt_thread_entry()
Dux_device_class_audio_read_thread_entry.c96 UX_SLAVE_TRANSFER *transfer; in _ux_device_class_audio_read_thread_entry() local
128 transfer = &endpoint -> ux_slave_endpoint_transfer_request; in _ux_device_class_audio_read_thread_entry()
131 status = _ux_device_stack_transfer_request(transfer, max_packet_size, max_packet_size); in _ux_device_class_audio_read_thread_entry()
144 actual_length = transfer -> ux_slave_transfer_request_actual_length; in _ux_device_class_audio_read_thread_entry()
150 transfer -> ux_slave_transfer_request_data_pointer, in _ux_device_class_audio_read_thread_entry()
Dux_device_class_video_read_thread_entry.c84 UX_SLAVE_TRANSFER *transfer; in _ux_device_class_video_read_thread_entry() local
116 transfer = &endpoint -> ux_slave_endpoint_transfer_request; in _ux_device_class_video_read_thread_entry()
119 status = _ux_device_stack_transfer_request(transfer, max_packet_size, max_packet_size); in _ux_device_class_video_read_thread_entry()
131 actual_length = transfer -> ux_slave_transfer_request_actual_length; in _ux_device_class_video_read_thread_entry()
136 transfer -> ux_slave_transfer_request_data_pointer, in _ux_device_class_video_read_thread_entry()
Dux_device_class_audio_write_thread_entry.c90 UX_SLAVE_TRANSFER *transfer; in _ux_device_class_audio_write_thread_entry() local
117 transfer = &endpoint -> ux_slave_endpoint_transfer_request; in _ux_device_class_audio_write_thread_entry()
122 _ux_utility_memory_copy(transfer -> ux_slave_transfer_request_data_pointer, in _ux_device_class_audio_write_thread_entry()
126 status = _ux_device_stack_transfer_request(transfer, transfer_length, transfer_length); in _ux_device_class_audio_write_thread_entry()
141 actual_length = transfer -> ux_slave_transfer_request_actual_length; in _ux_device_class_audio_write_thread_entry()
/USBX-v6.2.1/common/usbx_host_classes/src/
Dux_host_class_audio_streaming_sampling_set.c116 UX_TRANSFER *transfer; in _ux_host_class_audio_streaming_sampling_set() local
218 transfer = &device -> ux_device_control_endpoint.ux_endpoint_transfer_request; in _ux_host_class_audio_streaming_sampling_set()
243 transfer -> ux_transfer_request_data_pointer = control_buffer; in _ux_host_class_audio_streaming_sampling_set()
244 transfer -> ux_transfer_request_requested_length = 4; in _ux_host_class_audio_streaming_sampling_set()
245 transfer -> ux_transfer_request_function = UX_CLASS_AUDIO20_CUR; in _ux_host_class_audio_streaming_sampling_set()
246transfer -> ux_transfer_request_type = UX_REQUEST_OUT | UX_REQUEST_TARGET_INTERFACE |… in _ux_host_class_audio_streaming_sampling_set()
247transfer -> ux_transfer_request_value = UX_CLASS_AUDIO20_CS_SAM_FREQ_CONTROL << 8; in _ux_host_class_audio_streaming_sampling_set()
248transfer -> ux_transfer_request_index = audio -> ux_host_class_audio_control_interface… in _ux_host_class_audio_streaming_sampling_set()
249 status = _ux_host_stack_transfer_request(transfer); in _ux_host_class_audio_streaming_sampling_set()
267 transfer -> ux_transfer_request_data_pointer = control_buffer; in _ux_host_class_audio_streaming_sampling_set()
[all …]
Dux_host_class_audio_endpoints_get.c84 UX_TRANSFER *transfer; in _ux_host_class_audio_endpoints_get() local
164 transfer = &endpoint -> ux_endpoint_transfer_request; in _ux_host_class_audio_endpoints_get()
167 packet_length = transfer -> ux_transfer_request_packet_length; in _ux_host_class_audio_endpoints_get()
170 transfer -> ux_transfer_request_data_pointer = _ux_utility_memory_allocate( in _ux_host_class_audio_endpoints_get()
173 if (transfer -> ux_transfer_request_data_pointer == UX_NULL) in _ux_host_class_audio_endpoints_get()
188 _ux_utility_memory_copy(transfer -> ux_transfer_request_data_pointer, in _ux_host_class_audio_endpoints_get()
194transfer -> ux_transfer_request_endpoint = audio -> ux_host_class_audio_feedback_… in _ux_host_class_audio_endpoints_get()
195transfer -> ux_transfer_request_requested_length = (endpoint -> ux_endpoint_descriptor.bE… in _ux_host_class_audio_endpoints_get()
196transfer -> ux_transfer_request_packet_length : in _ux_host_class_audio_endpoints_get()
199transfer -> ux_transfer_request_completion_function = _ux_host_class_audio_feedback_transfer… in _ux_host_class_audio_endpoints_get()
[all …]
Dux_host_class_audio_interrupt_start.c93 UX_TRANSFER *transfer; in _ux_host_class_audio_interrupt_start()
124 transfer = &endpoint -> ux_endpoint_transfer_request; in _ux_host_class_audio_interrupt_start()
127 transfer -> ux_transfer_request_class_instance = (VOID *)audio; in _ux_host_class_audio_interrupt_start()
130transfer -> ux_transfer_request_completion_function = _ux_host_class_audio_interrupt_notification; in _ux_host_class_audio_interrupt_start()
133 status = _ux_host_stack_transfer_request(transfer); in _ux_host_class_audio_interrupt_start()
/USBX-v6.2.1/common/usbx_host_controllers/src/
Dux_hcd_ehci_hsisochronous_tds_process.c101 UX_TRANSFER *transfer; in _ux_hcd_ehci_hsisochronous_tds_process() local
233 transfer = ed -> ux_ehci_hsiso_ed_transfer_head; in _ux_hcd_ehci_hsisochronous_tds_process()
236 if (transfer == UX_NULL) in _ux_hcd_ehci_hsisochronous_tds_process()
241 transfer -> ux_transfer_request_completion_code = UX_TRANSFER_BUFFER_OVERFLOW; in _ux_hcd_ehci_hsisochronous_tds_process()
245 transfer -> ux_transfer_request_completion_code = UX_TRANSFER_ERROR; in _ux_hcd_ehci_hsisochronous_tds_process()
247 transfer -> ux_transfer_request_completion_code = UX_SUCCESS; in _ux_hcd_ehci_hsisochronous_tds_process()
255 transfer -> ux_transfer_request_actual_length = trans_bytes; in _ux_hcd_ehci_hsisochronous_tds_process()
259 transfer -> ux_transfer_request_next_transfer_request; in _ux_hcd_ehci_hsisochronous_tds_process()
266 if (transfer -> ux_transfer_request_completion_function) in _ux_hcd_ehci_hsisochronous_tds_process()
267 transfer -> ux_transfer_request_completion_function(transfer); in _ux_hcd_ehci_hsisochronous_tds_process()
[all …]
Dux_hcd_ehci_transfer_abort.c98 UX_TRANSFER *transfer; in _ux_hcd_ehci_transfer_abort() local
192 transfer = (*list_head) -> ux_transfer_request_next_transfer_request; in _ux_hcd_ehci_transfer_abort()
193 while(transfer) in _ux_hcd_ehci_transfer_abort()
200 if (transfer -> ux_transfer_request_next_transfer_request == transfer_request) in _ux_hcd_ehci_transfer_abort()
204 transfer -> ux_transfer_request_next_transfer_request = UX_NULL; in _ux_hcd_ehci_transfer_abort()
209 if (transfer == ied -> ux_ehci_hsiso_ed_transfer_first_new) in _ux_hcd_ehci_transfer_abort()
213 transfer = transfer -> ux_transfer_request_next_transfer_request; in _ux_hcd_ehci_transfer_abort()
/USBX-v6.2.1/common/core/src/
Dux_host_stack_transfer_run.c38 static inline UINT _ux_host_stack_transfer_locate(UX_TRANSFER *transfer, UX_TRANSFER **previous);
39 static inline void _ux_host_stack_transfer_retire(UX_TRANSFER *transfer);
233 static inline UINT _ux_host_stack_transfer_locate(UX_TRANSFER *transfer, UX_TRANSFER **previous) in _ux_host_stack_transfer_locate() argument
242 if (_ux_system_host -> ux_system_host_pending_transfers == transfer) in _ux_host_stack_transfer_locate()
249 if (prev -> ux_transfer_request_next_pending == transfer) in _ux_host_stack_transfer_locate()
261 static inline void _ux_host_stack_transfer_retire(UX_TRANSFER *transfer) in _ux_host_stack_transfer_retire() argument
267 switch(_ux_host_stack_transfer_locate(transfer, &previous)) in _ux_host_stack_transfer_retire()
273 transfer -> ux_transfer_request_next_pending; in _ux_host_stack_transfer_retire()
279 transfer -> ux_transfer_request_next_pending; in _ux_host_stack_transfer_retire()
287 flags = transfer -> ux_transfer_request_flags; in _ux_host_stack_transfer_retire()
[all …]
Dux_dcd_sim_slave_endpoint_reset.c85 UX_SLAVE_TRANSFER *transfer; in _ux_dcd_sim_slave_endpoint_reset() local
119 transfer = &endpoint -> ux_slave_endpoint_transfer_request; in _ux_dcd_sim_slave_endpoint_reset()
120 transfer -> ux_slave_transfer_request_completion_code = UX_TRANSFER_BUS_RESET; in _ux_dcd_sim_slave_endpoint_reset()
121 _ux_device_semaphore_put(&transfer -> ux_slave_transfer_request_semaphore); in _ux_dcd_sim_slave_endpoint_reset()

12