Home
last modified time | relevance | path

Searched refs:stream (Results 1 – 25 of 48) sorted by relevance

12

/USBX-v6.2.1/common/usbx_device_classes/src/
Dux_device_class_audio_sample_read16.c75 UINT _ux_device_class_audio_sample_read16(UX_DEVICE_CLASS_AUDIO_STREAM *stream, in _ux_device_class_audio_sample_read16() argument
98 endpoint = stream -> ux_device_class_audio_stream_endpoint; in _ux_device_class_audio_sample_read16()
107 … if (stream -> ux_device_class_audio_stream_access_pos -> ux_device_class_audio_frame_length == 0) in _ux_device_class_audio_sample_read16()
113 …sample_ptr = stream -> ux_device_class_audio_stream_access_pos -> ux_device_class_audio_frame_data… in _ux_device_class_audio_sample_read16()
114stream -> ux_device_class_audio_stream_access_pos -> ux_device_class_audio_frame_pos; in _ux_device_class_audio_sample_read16()
119 …next_frame_sample = stream -> ux_device_class_audio_stream_access_pos -> ux_device_class_audio_fra… in _ux_device_class_audio_sample_read16()
120 …if (next_frame_sample >= stream -> ux_device_class_audio_stream_access_pos -> ux_device_class_audi… in _ux_device_class_audio_sample_read16()
124 stream -> ux_device_class_audio_stream_access_pos -> ux_device_class_audio_frame_length = 0; in _ux_device_class_audio_sample_read16()
130 …if (stream -> ux_device_class_audio_stream_access_pos != stream -> ux_device_class_audio_stream_tr… in _ux_device_class_audio_sample_read16()
132 next_frame_buffer = (UCHAR *)stream -> ux_device_class_audio_stream_access_pos; in _ux_device_class_audio_sample_read16()
[all …]
Dux_device_class_audio_sample_read8.c75 UINT _ux_device_class_audio_sample_read8(UX_DEVICE_CLASS_AUDIO_STREAM *stream, in _ux_device_class_audio_sample_read8() argument
98 endpoint = stream -> ux_device_class_audio_stream_endpoint; in _ux_device_class_audio_sample_read8()
107 … if (stream -> ux_device_class_audio_stream_access_pos -> ux_device_class_audio_frame_length == 0) in _ux_device_class_audio_sample_read8()
113 …sample_ptr = stream -> ux_device_class_audio_stream_access_pos -> ux_device_class_audio_frame_data… in _ux_device_class_audio_sample_read8()
114stream -> ux_device_class_audio_stream_access_pos -> ux_device_class_audio_frame_pos; in _ux_device_class_audio_sample_read8()
119 …next_frame_sample = stream -> ux_device_class_audio_stream_access_pos -> ux_device_class_audio_fra… in _ux_device_class_audio_sample_read8()
120 …if (next_frame_sample >= stream -> ux_device_class_audio_stream_access_pos -> ux_device_class_audi… in _ux_device_class_audio_sample_read8()
124 stream -> ux_device_class_audio_stream_access_pos -> ux_device_class_audio_frame_length = 0; in _ux_device_class_audio_sample_read8()
130 …if (stream -> ux_device_class_audio_stream_access_pos != stream -> ux_device_class_audio_stream_tr… in _ux_device_class_audio_sample_read8()
132 next_frame_buffer = (UCHAR *)stream -> ux_device_class_audio_stream_access_pos; in _ux_device_class_audio_sample_read8()
[all …]
Dux_device_class_audio_read_frame_free.c73 UINT _ux_device_class_audio_read_frame_free(UX_DEVICE_CLASS_AUDIO_STREAM *stream) in _ux_device_class_audio_read_frame_free() argument
93 endpoint = stream -> ux_device_class_audio_stream_endpoint; in _ux_device_class_audio_read_frame_free()
102 … if (stream -> ux_device_class_audio_stream_access_pos -> ux_device_class_audio_frame_length == 0) in _ux_device_class_audio_read_frame_free()
108 …if (stream -> ux_device_class_audio_stream_access_pos != stream -> ux_device_class_audio_stream_tr… in _ux_device_class_audio_read_frame_free()
110 next_frame = (UCHAR *)stream -> ux_device_class_audio_stream_access_pos; in _ux_device_class_audio_read_frame_free()
111 next_frame += stream -> ux_device_class_audio_stream_frame_buffer_size; in _ux_device_class_audio_read_frame_free()
112 …if (next_frame >= stream -> ux_device_class_audio_stream_buffer + stream -> ux_device_class_audio_… in _ux_device_class_audio_read_frame_free()
113 next_frame = stream -> ux_device_class_audio_stream_buffer; in _ux_device_class_audio_read_frame_free()
116 stream -> ux_device_class_audio_stream_access_pos -> ux_device_class_audio_frame_length = 0; in _ux_device_class_audio_read_frame_free()
119stream -> ux_device_class_audio_stream_access_pos = (UX_DEVICE_CLASS_AUDIO_FRAME *)next_frame; in _ux_device_class_audio_read_frame_free()
[all …]
Dux_device_class_audio_write_task_function.c77 UINT _ux_device_class_audio_write_task_function(UX_DEVICE_CLASS_AUDIO_STREAM *stream) in _ux_device_class_audio_write_task_function() argument
90 device = stream -> ux_device_class_audio_stream_audio -> ux_device_class_audio_device; in _ux_device_class_audio_write_task_function()
95 stream -> ux_device_class_audio_stream_task_state = UX_STATE_EXIT; in _ux_device_class_audio_write_task_function()
100 endpoint = stream -> ux_device_class_audio_stream_endpoint; in _ux_device_class_audio_write_task_function()
107 if (stream -> ux_device_class_audio_stream_task_state == UX_DEVICE_CLASS_AUDIO_STREAM_RW_STOP) in _ux_device_class_audio_write_task_function()
114 if (stream -> ux_device_class_audio_stream_task_state == UX_DEVICE_CLASS_AUDIO_STREAM_RW_START) in _ux_device_class_audio_write_task_function()
118 stream -> ux_device_class_audio_stream_task_state = UX_DEVICE_CLASS_AUDIO_STREAM_RW_WAIT; in _ux_device_class_audio_write_task_function()
121 …transfer_length = stream -> ux_device_class_audio_stream_transfer_pos -> ux_device_class_audio_fra… in _ux_device_class_audio_write_task_function()
124stream -> ux_device_class_audio_stream_transfer_pos -> ux_device_class_audio_frame_data, transfer_… in _ux_device_class_audio_write_task_function()
131 …transfer_length = stream -> ux_device_class_audio_stream_transfer_pos -> ux_device_class_audio_fra… in _ux_device_class_audio_write_task_function()
[all …]
Dux_device_class_video_write_task_function.c77 UINT _ux_device_class_video_write_task_function(UX_DEVICE_CLASS_VIDEO_STREAM *stream) in _ux_device_class_video_write_task_function() argument
90 device = stream -> ux_device_class_video_stream_video -> ux_device_class_video_device; in _ux_device_class_video_write_task_function()
95 stream -> ux_device_class_video_stream_task_state = UX_STATE_EXIT; in _ux_device_class_video_write_task_function()
100 endpoint = stream -> ux_device_class_video_stream_endpoint; in _ux_device_class_video_write_task_function()
107 if (stream -> ux_device_class_video_stream_task_state == UX_DEVICE_CLASS_VIDEO_STREAM_RW_STOP) in _ux_device_class_video_write_task_function()
114 if (stream -> ux_device_class_video_stream_task_state == UX_DEVICE_CLASS_VIDEO_STREAM_RW_START) in _ux_device_class_video_write_task_function()
118 stream -> ux_device_class_video_stream_task_state = UX_DEVICE_CLASS_VIDEO_STREAM_RW_WAIT; in _ux_device_class_video_write_task_function()
121 …transfer_length = stream -> ux_device_class_video_stream_transfer_pos -> ux_device_class_video_pay… in _ux_device_class_video_write_task_function()
124stream -> ux_device_class_video_stream_transfer_pos -> ux_device_class_video_payload_data, transfe… in _ux_device_class_video_write_task_function()
131 …transfer_length = stream -> ux_device_class_video_stream_transfer_pos -> ux_device_class_video_pay… in _ux_device_class_video_write_task_function()
[all …]
Dux_device_class_audio_sample_read24.c75 UINT _ux_device_class_audio_sample_read24(UX_DEVICE_CLASS_AUDIO_STREAM *stream, in _ux_device_class_audio_sample_read24() argument
98 endpoint = stream -> ux_device_class_audio_stream_endpoint; in _ux_device_class_audio_sample_read24()
107 … if (stream -> ux_device_class_audio_stream_access_pos -> ux_device_class_audio_frame_length == 0) in _ux_device_class_audio_sample_read24()
113 …sample_ptr = stream -> ux_device_class_audio_stream_access_pos -> ux_device_class_audio_frame_data… in _ux_device_class_audio_sample_read24()
114stream -> ux_device_class_audio_stream_access_pos -> ux_device_class_audio_frame_pos; in _ux_device_class_audio_sample_read24()
119 …next_frame_sample = stream -> ux_device_class_audio_stream_access_pos -> ux_device_class_audio_fra… in _ux_device_class_audio_sample_read24()
120 …if (next_frame_sample >= stream -> ux_device_class_audio_stream_access_pos -> ux_device_class_audi… in _ux_device_class_audio_sample_read24()
124 stream -> ux_device_class_audio_stream_access_pos -> ux_device_class_audio_frame_length = 0; in _ux_device_class_audio_sample_read24()
130 …if (stream -> ux_device_class_audio_stream_access_pos != stream -> ux_device_class_audio_stream_tr… in _ux_device_class_audio_sample_read24()
132 next_frame_buffer = (UCHAR *)stream -> ux_device_class_audio_stream_access_pos; in _ux_device_class_audio_sample_read24()
[all …]
Dux_device_class_audio_sample_read32.c75 UINT _ux_device_class_audio_sample_read32(UX_DEVICE_CLASS_AUDIO_STREAM *stream, ULONG *buffer) in _ux_device_class_audio_sample_read32() argument
100 endpoint = stream -> ux_device_class_audio_stream_endpoint; in _ux_device_class_audio_sample_read32()
109 … if (stream -> ux_device_class_audio_stream_access_pos -> ux_device_class_audio_frame_length == 0) in _ux_device_class_audio_sample_read32()
115 …sample_ptr = stream -> ux_device_class_audio_stream_access_pos -> ux_device_class_audio_frame_data… in _ux_device_class_audio_sample_read32()
116stream -> ux_device_class_audio_stream_access_pos -> ux_device_class_audio_frame_pos; in _ux_device_class_audio_sample_read32()
121 …next_frame_sample = stream -> ux_device_class_audio_stream_access_pos -> ux_device_class_audio_fra… in _ux_device_class_audio_sample_read32()
122 …if (next_frame_sample >= stream -> ux_device_class_audio_stream_access_pos -> ux_device_class_audi… in _ux_device_class_audio_sample_read32()
126 stream -> ux_device_class_audio_stream_access_pos -> ux_device_class_audio_frame_length = 0; in _ux_device_class_audio_sample_read32()
132 …if (stream -> ux_device_class_audio_stream_access_pos != stream -> ux_device_class_audio_stream_tr… in _ux_device_class_audio_sample_read32()
134 next_frame_buffer = (UCHAR *)stream -> ux_device_class_audio_stream_access_pos; in _ux_device_class_audio_sample_read32()
[all …]
Dux_device_class_audio_read_task_function.c76 UINT _ux_device_class_audio_read_task_function(UX_DEVICE_CLASS_AUDIO_STREAM *stream) in _ux_device_class_audio_read_task_function() argument
89 device = stream -> ux_device_class_audio_stream_audio -> ux_device_class_audio_device; in _ux_device_class_audio_read_task_function()
94 stream -> ux_device_class_audio_stream_task_state = UX_STATE_EXIT; in _ux_device_class_audio_read_task_function()
99 endpoint = stream -> ux_device_class_audio_stream_endpoint; in _ux_device_class_audio_read_task_function()
106 if (stream -> ux_device_class_audio_stream_task_state == UX_DEVICE_CLASS_AUDIO_STREAM_RW_STOP) in _ux_device_class_audio_read_task_function()
113 if (stream -> ux_device_class_audio_stream_task_state == UX_DEVICE_CLASS_AUDIO_STREAM_RW_START) in _ux_device_class_audio_read_task_function()
117 stream -> ux_device_class_audio_stream_task_state = UX_DEVICE_CLASS_AUDIO_STREAM_RW_WAIT; in _ux_device_class_audio_read_task_function()
132 stream -> ux_device_class_audio_stream_task_state = UX_STATE_RESET; in _ux_device_class_audio_read_task_function()
133 stream -> ux_device_class_audio_stream_task_status = in _ux_device_class_audio_read_task_function()
146 stream -> ux_device_class_audio_stream_task_state = UX_DEVICE_CLASS_AUDIO_STREAM_RW_START; in _ux_device_class_audio_read_task_function()
[all …]
Dux_device_class_video_read_task_function.c76 UINT _ux_device_class_video_read_task_function(UX_DEVICE_CLASS_VIDEO_STREAM *stream) in _ux_device_class_video_read_task_function() argument
89 device = stream -> ux_device_class_video_stream_video -> ux_device_class_video_device; in _ux_device_class_video_read_task_function()
94 stream -> ux_device_class_video_stream_task_state = UX_STATE_EXIT; in _ux_device_class_video_read_task_function()
99 endpoint = stream -> ux_device_class_video_stream_endpoint; in _ux_device_class_video_read_task_function()
106 if (stream -> ux_device_class_video_stream_task_state == UX_DEVICE_CLASS_VIDEO_STREAM_RW_STOP) in _ux_device_class_video_read_task_function()
113 if (stream -> ux_device_class_video_stream_task_state == UX_DEVICE_CLASS_VIDEO_STREAM_RW_START) in _ux_device_class_video_read_task_function()
117 stream -> ux_device_class_video_stream_task_state = UX_DEVICE_CLASS_VIDEO_STREAM_RW_WAIT; in _ux_device_class_video_read_task_function()
133 stream -> ux_device_class_video_stream_task_state = UX_STATE_RESET; in _ux_device_class_video_read_task_function()
134 stream -> ux_device_class_video_stream_task_status = in _ux_device_class_video_read_task_function()
147 stream -> ux_device_class_video_stream_task_state = UX_DEVICE_CLASS_VIDEO_STREAM_RW_START; in _ux_device_class_video_read_task_function()
[all …]
Dux_device_class_audio_write_frame_commit.c79 UINT _ux_device_class_audio_write_frame_commit(UX_DEVICE_CLASS_AUDIO_STREAM *stream, ULONG length) in _ux_device_class_audio_write_frame_commit() argument
102 endpoint = stream -> ux_device_class_audio_stream_endpoint; in _ux_device_class_audio_write_frame_commit()
111 …if (stream -> ux_device_class_audio_stream_access_pos == stream -> ux_device_class_audio_stream_tr… in _ux_device_class_audio_write_frame_commit()
112stream -> ux_device_class_audio_stream_access_pos -> ux_device_class_audio_frame_length != 0) in _ux_device_class_audio_write_frame_commit()
116 if ((stream -> ux_device_class_audio_stream_frame_buffer_size - 8) < length) in _ux_device_class_audio_write_frame_commit()
120 next_pos = (UCHAR *)stream -> ux_device_class_audio_stream_access_pos; in _ux_device_class_audio_write_frame_commit()
121 next_pos += stream -> ux_device_class_audio_stream_frame_buffer_size; in _ux_device_class_audio_write_frame_commit()
122 …if (next_pos >= stream -> ux_device_class_audio_stream_buffer + stream -> ux_device_class_audio_st… in _ux_device_class_audio_write_frame_commit()
123 next_pos = stream -> ux_device_class_audio_stream_buffer; in _ux_device_class_audio_write_frame_commit()
126stream -> ux_device_class_audio_stream_access_pos -> ux_device_class_audio_frame_length = length; in _ux_device_class_audio_write_frame_commit()
[all …]
Dux_device_class_audio_change.c93 UX_DEVICE_CLASS_AUDIO_STREAM *stream; in _ux_device_class_audio_change() local
126 stream = &audio -> ux_device_class_audio_streams[stream_index]; in _ux_device_class_audio_change()
129 stream -> ux_device_class_audio_stream_interface = interface_ptr; in _ux_device_class_audio_change()
143 endpoint_dir = (stream -> ux_device_class_audio_stream_task_function == in _ux_device_class_audio_change()
148 endpoint_dir = (stream -> ux_device_class_audio_stream_thread.tx_thread_entry == in _ux_device_class_audio_change()
152 stream -> ux_device_class_audio_stream_endpoint = UX_NULL; in _ux_device_class_audio_change()
155 stream -> ux_device_class_audio_stream_feedback = UX_NULL; in _ux_device_class_audio_change()
171 …ve_endpoint_transfer_request.ux_slave_transfer_request_transfer_length > stream -> ux_device_class… in _ux_device_class_audio_change()
182 stream -> ux_device_class_audio_stream_endpoint = endpoint; in _ux_device_class_audio_change()
208 stream -> ux_device_class_audio_stream_feedback = endpoint; in _ux_device_class_audio_change()
[all …]
Dux_device_class_audio_write_thread_entry.c87 UX_DEVICE_CLASS_AUDIO_STREAM *stream; in _ux_device_class_audio_write_thread_entry() local
98 UX_THREAD_EXTENSION_PTR_GET(stream, UX_DEVICE_CLASS_AUDIO_STREAM, audio_stream) in _ux_device_class_audio_write_thread_entry()
101 device = stream -> ux_device_class_audio_stream_audio -> ux_device_class_audio_device; in _ux_device_class_audio_write_thread_entry()
110 endpoint = stream -> ux_device_class_audio_stream_endpoint; in _ux_device_class_audio_write_thread_entry()
120 …transfer_length = stream -> ux_device_class_audio_stream_transfer_pos -> ux_device_class_audio_fra… in _ux_device_class_audio_write_thread_entry()
123stream -> ux_device_class_audio_stream_transfer_pos -> ux_device_class_audio_frame_data, transfer_… in _ux_device_class_audio_write_thread_entry()
138stream -> ux_device_class_audio_stream_transfer_pos -> ux_device_class_audio_frame_length = 0; in _ux_device_class_audio_write_thread_entry()
144 next_pos = (UCHAR *)stream -> ux_device_class_audio_stream_transfer_pos; in _ux_device_class_audio_write_thread_entry()
145 next_pos += stream -> ux_device_class_audio_stream_frame_buffer_size; in _ux_device_class_audio_write_thread_entry()
146 …if (next_pos >= stream -> ux_device_class_audio_stream_buffer + stream -> ux_device_class_audio_st… in _ux_device_class_audio_write_thread_entry()
[all …]
Dux_device_class_video_write_thread_entry.c81 UX_DEVICE_CLASS_VIDEO_STREAM *stream; in _ux_device_class_video_write_thread_entry() local
92 UX_THREAD_EXTENSION_PTR_GET(stream, UX_DEVICE_CLASS_VIDEO_STREAM, video_stream) in _ux_device_class_video_write_thread_entry()
95 device = stream -> ux_device_class_video_stream_video -> ux_device_class_video_device; in _ux_device_class_video_write_thread_entry()
104 endpoint = stream -> ux_device_class_video_stream_endpoint; in _ux_device_class_video_write_thread_entry()
114 …transfer_length = stream -> ux_device_class_video_stream_transfer_pos -> ux_device_class_video_pay… in _ux_device_class_video_write_thread_entry()
117stream -> ux_device_class_video_stream_transfer_pos -> ux_device_class_video_payload_data, transfe… in _ux_device_class_video_write_thread_entry()
132stream -> ux_device_class_video_stream_transfer_pos -> ux_device_class_video_payload_length = 0; in _ux_device_class_video_write_thread_entry()
138 next_pos = (UCHAR *)stream -> ux_device_class_video_stream_transfer_pos; in _ux_device_class_video_write_thread_entry()
139 next_pos += stream -> ux_device_class_video_stream_payload_buffer_size; in _ux_device_class_video_write_thread_entry()
140 …if (next_pos >= stream -> ux_device_class_video_stream_buffer + stream -> ux_device_class_video_st… in _ux_device_class_video_write_thread_entry()
[all …]
Dux_device_class_audio_read_thread_entry.c93 UX_DEVICE_CLASS_AUDIO_STREAM *stream; in _ux_device_class_audio_read_thread_entry() local
104 UX_THREAD_EXTENSION_PTR_GET(stream, UX_DEVICE_CLASS_AUDIO_STREAM, audio_stream) in _ux_device_class_audio_read_thread_entry()
107 device = stream -> ux_device_class_audio_stream_audio -> ux_device_class_audio_device; in _ux_device_class_audio_read_thread_entry()
117 endpoint = stream -> ux_device_class_audio_stream_endpoint; in _ux_device_class_audio_read_thread_entry()
139 stream -> ux_device_class_audio_stream_buffer_error_count ++; in _ux_device_class_audio_read_thread_entry()
147stream -> ux_device_class_audio_stream_transfer_pos -> ux_device_class_audio_frame_length = actual… in _ux_device_class_audio_read_thread_entry()
148stream -> ux_device_class_audio_stream_transfer_pos -> ux_device_class_audio_frame_pos = 0; in _ux_device_class_audio_read_thread_entry()
149 …_ux_utility_memory_copy(stream -> ux_device_class_audio_stream_transfer_pos -> ux_device_class_aud… in _ux_device_class_audio_read_thread_entry()
154 next_pos = (UCHAR *)stream -> ux_device_class_audio_stream_transfer_pos; in _ux_device_class_audio_read_thread_entry()
155 next_pos += stream -> ux_device_class_audio_stream_frame_buffer_size; in _ux_device_class_audio_read_thread_entry()
[all …]
Dux_device_class_video_initialize.c81 UX_DEVICE_CLASS_VIDEO_STREAM *stream; in _ux_device_class_video_initialize() local
126 stream = video -> ux_device_class_video_streams; in _ux_device_class_video_initialize()
133stream -> ux_device_class_video_stream_payload_buffer_size = stream_parameter -> ux_device_class_v… in _ux_device_class_video_initialize()
135 … if (UX_OVERFLOW_CHECK_ADD_USHORT(stream -> ux_device_class_video_stream_payload_buffer_size, 4)) in _ux_device_class_video_initialize()
140 stream -> ux_device_class_video_stream_payload_buffer_size += 4; in _ux_device_class_video_initialize()
142 if (UX_OVERFLOW_CHECK_MULV_ULONG(stream -> ux_device_class_video_stream_payload_buffer_size, in _ux_device_class_video_initialize()
148 memory_size = stream -> ux_device_class_video_stream_payload_buffer_size * in _ux_device_class_video_initialize()
152stream -> ux_device_class_video_stream_buffer = (UCHAR *)_ux_utility_memory_allocate(UX_NO_ALIGN, … in _ux_device_class_video_initialize()
155 if (stream -> ux_device_class_video_stream_buffer == UX_NULL) in _ux_device_class_video_initialize()
161 stream -> ux_device_class_video_stream_buffer_size = memory_size; in _ux_device_class_video_initialize()
[all …]
Dux_device_class_video_read_payload_free.c69 UINT _ux_device_class_video_read_payload_free(UX_DEVICE_CLASS_VIDEO_STREAM *stream) in _ux_device_class_video_read_payload_free() argument
89 endpoint = stream -> ux_device_class_video_stream_endpoint; in _ux_device_class_video_read_payload_free()
98 …if (stream -> ux_device_class_video_stream_access_pos -> ux_device_class_video_payload_length == 0) in _ux_device_class_video_read_payload_free()
104 …if (stream -> ux_device_class_video_stream_access_pos != stream -> ux_device_class_video_stream_tr… in _ux_device_class_video_read_payload_free()
106 next_payload = (UCHAR *)stream -> ux_device_class_video_stream_access_pos; in _ux_device_class_video_read_payload_free()
107 next_payload += stream -> ux_device_class_video_stream_payload_buffer_size; in _ux_device_class_video_read_payload_free()
108 …if (next_payload >= stream -> ux_device_class_video_stream_buffer + stream -> ux_device_class_vide… in _ux_device_class_video_read_payload_free()
109 next_payload = stream -> ux_device_class_video_stream_buffer; in _ux_device_class_video_read_payload_free()
112stream -> ux_device_class_video_stream_access_pos -> ux_device_class_video_payload_length = 0; in _ux_device_class_video_read_payload_free()
115stream -> ux_device_class_video_stream_access_pos = (UX_DEVICE_CLASS_VIDEO_PAYLOAD *)next_payload; in _ux_device_class_video_read_payload_free()
[all …]
Dux_device_class_video_change.c79 UX_DEVICE_CLASS_VIDEO_STREAM *stream; in _ux_device_class_video_change() local
111 stream = &video -> ux_device_class_video_streams[stream_index]; in _ux_device_class_video_change()
114 stream -> ux_device_class_video_stream_interface = interface_ptr; in _ux_device_class_video_change()
126 stream -> ux_device_class_video_stream_endpoint = UX_NULL; in _ux_device_class_video_change()
136 (stream -> ux_device_class_video_stream_payload_buffer_size - 4)) in _ux_device_class_video_change()
147 stream -> ux_device_class_video_stream_endpoint = endpoint; in _ux_device_class_video_change()
156 if (stream -> ux_device_class_video_stream_endpoint == UX_NULL) in _ux_device_class_video_change()
169 stream -> ux_device_class_video_stream_task_state = UX_STATE_RESET; in _ux_device_class_video_change()
173 stream -> ux_device_class_video_stream_buffer_error_count = 0; in _ux_device_class_video_change()
176 payload_buffer = stream -> ux_device_class_video_stream_buffer; in _ux_device_class_video_change()
[all …]
Dux_device_class_audio_frame_write.c82 UINT _ux_device_class_audio_frame_write(UX_DEVICE_CLASS_AUDIO_STREAM *stream, UCHAR *frame, ULONG l… in _ux_device_class_audio_frame_write() argument
103 endpoint = stream -> ux_device_class_audio_stream_endpoint; in _ux_device_class_audio_frame_write()
112 frame_buffer_size = stream -> ux_device_class_audio_stream_frame_buffer_size; in _ux_device_class_audio_frame_write()
117 …if (stream -> ux_device_class_audio_stream_access_pos == stream -> ux_device_class_audio_stream_tr… in _ux_device_class_audio_frame_write()
118stream -> ux_device_class_audio_stream_access_pos -> ux_device_class_audio_frame_length != 0) in _ux_device_class_audio_frame_write()
122 next_frame_buffer = (UCHAR *)stream -> ux_device_class_audio_stream_access_pos; in _ux_device_class_audio_frame_write()
124 …if (next_frame_buffer >= stream -> ux_device_class_audio_stream_buffer + stream -> ux_device_class… in _ux_device_class_audio_frame_write()
125 next_frame_buffer = stream -> ux_device_class_audio_stream_buffer; in _ux_device_class_audio_frame_write()
128 …_ux_utility_memory_copy(stream -> ux_device_class_audio_stream_access_pos -> ux_device_class_audio… in _ux_device_class_audio_frame_write()
129stream -> ux_device_class_audio_stream_access_pos -> ux_device_class_audio_frame_length = length; in _ux_device_class_audio_frame_write()
[all …]
Dux_device_class_video_write_payload_commit.c72 UINT _ux_device_class_video_write_payload_commit(UX_DEVICE_CLASS_VIDEO_STREAM *stream, ULONG length) in _ux_device_class_video_write_payload_commit() argument
95 endpoint = stream -> ux_device_class_video_stream_endpoint; in _ux_device_class_video_write_payload_commit()
104 …if (stream -> ux_device_class_video_stream_access_pos == stream -> ux_device_class_video_stream_tr… in _ux_device_class_video_write_payload_commit()
105stream -> ux_device_class_video_stream_access_pos -> ux_device_class_video_payload_length != 0) in _ux_device_class_video_write_payload_commit()
109 if ((stream -> ux_device_class_video_stream_payload_buffer_size - 4) < length) in _ux_device_class_video_write_payload_commit()
113 next_pos = (UCHAR *)stream -> ux_device_class_video_stream_access_pos; in _ux_device_class_video_write_payload_commit()
114 next_pos += stream -> ux_device_class_video_stream_payload_buffer_size; in _ux_device_class_video_write_payload_commit()
115 …if (next_pos >= stream -> ux_device_class_video_stream_buffer + stream -> ux_device_class_video_st… in _ux_device_class_video_write_payload_commit()
116 next_pos = stream -> ux_device_class_video_stream_buffer; in _ux_device_class_video_write_payload_commit()
119stream -> ux_device_class_video_stream_access_pos -> ux_device_class_video_payload_length = length; in _ux_device_class_video_write_payload_commit()
[all …]
Dux_device_class_video_read_thread_entry.c81 UX_DEVICE_CLASS_VIDEO_STREAM *stream; in _ux_device_class_video_read_thread_entry() local
92 UX_THREAD_EXTENSION_PTR_GET(stream, UX_DEVICE_CLASS_VIDEO_STREAM, video_stream) in _ux_device_class_video_read_thread_entry()
95 device = stream -> ux_device_class_video_stream_video -> ux_device_class_video_device; in _ux_device_class_video_read_thread_entry()
105 endpoint = stream -> ux_device_class_video_stream_endpoint; in _ux_device_class_video_read_thread_entry()
134stream -> ux_device_class_video_stream_transfer_pos -> ux_device_class_video_payload_length = actu… in _ux_device_class_video_read_thread_entry()
135 …_ux_utility_memory_copy(stream -> ux_device_class_video_stream_transfer_pos -> ux_device_class_vid… in _ux_device_class_video_read_thread_entry()
140 next_pos = (UCHAR *)stream -> ux_device_class_video_stream_transfer_pos; in _ux_device_class_video_read_thread_entry()
141 next_pos += stream -> ux_device_class_video_stream_payload_buffer_size; in _ux_device_class_video_read_thread_entry()
142 …if (next_pos >= stream -> ux_device_class_video_stream_buffer + stream -> ux_device_class_video_st… in _ux_device_class_video_read_thread_entry()
143 next_pos = stream -> ux_device_class_video_stream_buffer; in _ux_device_class_video_read_thread_entry()
[all …]
Dux_device_class_audio_feedback_task_function.c77 UINT _ux_device_class_audio_feedback_task_function(UX_DEVICE_CLASS_AUDIO_STREAM *stream) in _ux_device_class_audio_feedback_task_function() argument
88 device = stream -> ux_device_class_audio_stream_audio -> ux_device_class_audio_device; in _ux_device_class_audio_feedback_task_function()
97 stream -> ux_device_class_audio_stream_feedback_task_state = UX_STATE_EXIT; in _ux_device_class_audio_feedback_task_function()
102 endpoint = stream -> ux_device_class_audio_stream_feedback; in _ux_device_class_audio_feedback_task_function()
111 stream -> ux_device_class_audio_stream_feedback_task_state = UX_STATE_RESET; in _ux_device_class_audio_feedback_task_function()
121 switch (stream -> ux_device_class_audio_stream_feedback_task_state) in _ux_device_class_audio_feedback_task_function()
124stream -> ux_device_class_audio_stream_feedback_task_state = UX_DEVICE_CLASS_AUDIO_STREAM_FEEDBACK… in _ux_device_class_audio_feedback_task_function()
125 stream -> ux_device_class_audio_stream_feedback_task_status = UX_TRANSFER_NO_ANSWER; in _ux_device_class_audio_feedback_task_function()
140 stream -> ux_device_class_audio_stream_feedback_task_state = UX_STATE_RESET; in _ux_device_class_audio_feedback_task_function()
141stream -> ux_device_class_audio_stream_feedback_task_status = transfer -> ux_slave_transfer_reques… in _ux_device_class_audio_feedback_task_function()
[all …]
Dux_device_class_audio_transmission_start.c80 UINT _ux_device_class_audio_transmission_start(UX_DEVICE_CLASS_AUDIO_STREAM *stream) in _ux_device_class_audio_transmission_start() argument
99 endpoint = stream -> ux_device_class_audio_stream_endpoint; in _ux_device_class_audio_transmission_start()
108 …if (stream -> ux_device_class_audio_stream_transfer_pos -> ux_device_class_audio_frame_length == 0) in _ux_device_class_audio_transmission_start()
114 if (stream -> ux_device_class_audio_stream_task_state == UX_DEVICE_CLASS_AUDIO_STREAM_RW_STOP) in _ux_device_class_audio_transmission_start()
115 stream -> ux_device_class_audio_stream_task_state = UX_DEVICE_CLASS_AUDIO_STREAM_RW_START; in _ux_device_class_audio_transmission_start()
119 _ux_device_thread_resume(&stream -> ux_device_class_audio_stream_thread); in _ux_device_class_audio_transmission_start()
164 UINT _uxe_device_class_audio_transmission_start(UX_DEVICE_CLASS_AUDIO_STREAM *stream) in _uxe_device_class_audio_transmission_start() argument
168 if (stream == UX_NULL) in _uxe_device_class_audio_transmission_start()
172 return(_ux_device_class_audio_transmission_start(stream)); in _uxe_device_class_audio_transmission_start()
Dux_device_class_audio_reception_start.c80 UINT _ux_device_class_audio_reception_start(UX_DEVICE_CLASS_AUDIO_STREAM *stream) in _ux_device_class_audio_reception_start() argument
99 endpoint = stream -> ux_device_class_audio_stream_endpoint; in _ux_device_class_audio_reception_start()
108 … if (stream -> ux_device_class_audio_stream_transfer_pos -> ux_device_class_audio_frame_length > 0) in _ux_device_class_audio_reception_start()
114 if (stream -> ux_device_class_audio_stream_task_state == UX_DEVICE_CLASS_AUDIO_STREAM_RW_STOP) in _ux_device_class_audio_reception_start()
115 stream -> ux_device_class_audio_stream_task_state = UX_DEVICE_CLASS_AUDIO_STREAM_RW_START; in _ux_device_class_audio_reception_start()
119 _ux_device_thread_resume(&stream -> ux_device_class_audio_stream_thread); in _ux_device_class_audio_reception_start()
164 UINT _uxe_device_class_audio_reception_start(UX_DEVICE_CLASS_AUDIO_STREAM *stream) in _uxe_device_class_audio_reception_start() argument
168 if (stream == UX_NULL) in _uxe_device_class_audio_reception_start()
172 return(_ux_device_class_audio_reception_start(stream)); in _uxe_device_class_audio_reception_start()
Dux_device_class_audio_write_frame_get.c77 UINT _ux_device_class_audio_write_frame_get(UX_DEVICE_CLASS_AUDIO_STREAM *stream, UCHAR **frame, UL… in _ux_device_class_audio_write_frame_get() argument
96 endpoint = stream -> ux_device_class_audio_stream_endpoint; in _ux_device_class_audio_write_frame_get()
105 …if (stream -> ux_device_class_audio_stream_access_pos == stream -> ux_device_class_audio_stream_tr… in _ux_device_class_audio_write_frame_get()
106stream -> ux_device_class_audio_stream_access_pos -> ux_device_class_audio_frame_length != 0) in _ux_device_class_audio_write_frame_get()
110 *frame = stream -> ux_device_class_audio_stream_access_pos -> ux_device_class_audio_frame_data; in _ux_device_class_audio_write_frame_get()
113 *length = stream -> ux_device_class_audio_stream_frame_buffer_size - 8; in _ux_device_class_audio_write_frame_get()
162 UINT _uxe_device_class_audio_write_frame_get(UX_DEVICE_CLASS_AUDIO_STREAM *stream, UCHAR **frame, U… in _uxe_device_class_audio_write_frame_get() argument
166 if (stream == UX_NULL || frame == UX_NULL || length == UX_NULL) in _uxe_device_class_audio_write_frame_get()
170 return(_ux_device_class_audio_write_frame_get(stream, frame, length)); in _uxe_device_class_audio_write_frame_get()
Dux_device_class_audio_initialize.c98 UX_DEVICE_CLASS_AUDIO_STREAM *stream; in _ux_device_class_audio_initialize() local
239 stream = audio -> ux_device_class_audio_streams; in _ux_device_class_audio_initialize()
246stream -> ux_device_class_audio_stream_frame_buffer_size = stream_parameter -> ux_device_class_aud… in _ux_device_class_audio_initialize()
248 … if (UX_OVERFLOW_CHECK_ADD_USHORT(stream -> ux_device_class_audio_stream_frame_buffer_size, 8)) in _ux_device_class_audio_initialize()
253 stream -> ux_device_class_audio_stream_frame_buffer_size += 8; in _ux_device_class_audio_initialize()
255 if (UX_OVERFLOW_CHECK_MULV_ULONG(stream -> ux_device_class_audio_stream_frame_buffer_size, in _ux_device_class_audio_initialize()
261 memory_size = stream -> ux_device_class_audio_stream_frame_buffer_size * in _ux_device_class_audio_initialize()
265stream -> ux_device_class_audio_stream_buffer = (UCHAR *)_ux_utility_memory_allocate(UX_NO_ALIGN, … in _ux_device_class_audio_initialize()
268 if (stream -> ux_device_class_audio_stream_buffer == UX_NULL) in _ux_device_class_audio_initialize()
274 stream -> ux_device_class_audio_stream_buffer_size = memory_size; in _ux_device_class_audio_initialize()
[all …]

12