/USBX-v6.2.1/common/usbx_device_classes/src/ |
D | ux_device_class_audio_sample_read16.c | 75 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() 114 … stream -> 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 …]
|
D | ux_device_class_audio_sample_read8.c | 75 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() 114 … stream -> 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 …]
|
D | ux_device_class_audio_read_frame_free.c | 73 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() 119 … stream -> ux_device_class_audio_stream_access_pos = (UX_DEVICE_CLASS_AUDIO_FRAME *)next_frame; in _ux_device_class_audio_read_frame_free() [all …]
|
D | ux_device_class_audio_write_task_function.c | 77 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() 124 …stream -> 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 …]
|
D | ux_device_class_video_write_task_function.c | 77 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() 124 …stream -> 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 …]
|
D | ux_device_class_audio_sample_read24.c | 75 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() 114 … stream -> 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 …]
|
D | ux_device_class_audio_sample_read32.c | 75 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() 116 … stream -> 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 …]
|
D | ux_device_class_audio_read_task_function.c | 76 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 …]
|
D | ux_device_class_video_read_task_function.c | 76 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 …]
|
D | ux_device_class_audio_write_frame_commit.c | 79 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() 112 … stream -> 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() 126 … stream -> ux_device_class_audio_stream_access_pos -> ux_device_class_audio_frame_length = length; in _ux_device_class_audio_write_frame_commit() [all …]
|
D | ux_device_class_audio_change.c | 93 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 …]
|
D | ux_device_class_audio_write_thread_entry.c | 87 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() 123 …stream -> ux_device_class_audio_stream_transfer_pos -> ux_device_class_audio_frame_data, transfer_… in _ux_device_class_audio_write_thread_entry() 138 … stream -> 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 …]
|
D | ux_device_class_video_write_thread_entry.c | 81 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() 117 …stream -> ux_device_class_video_stream_transfer_pos -> ux_device_class_video_payload_data, transfe… in _ux_device_class_video_write_thread_entry() 132 … stream -> 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 …]
|
D | ux_device_class_audio_read_thread_entry.c | 93 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() 147 …stream -> ux_device_class_audio_stream_transfer_pos -> ux_device_class_audio_frame_length = actual… in _ux_device_class_audio_read_thread_entry() 148 … stream -> 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 …]
|
D | ux_device_class_video_initialize.c | 81 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() 133 …stream -> 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() 152 …stream -> 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 …]
|
D | ux_device_class_video_read_payload_free.c | 69 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() 112 … stream -> ux_device_class_video_stream_access_pos -> ux_device_class_video_payload_length = 0; in _ux_device_class_video_read_payload_free() 115 … stream -> ux_device_class_video_stream_access_pos = (UX_DEVICE_CLASS_VIDEO_PAYLOAD *)next_payload; in _ux_device_class_video_read_payload_free() [all …]
|
D | ux_device_class_video_change.c | 79 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 …]
|
D | ux_device_class_audio_frame_write.c | 82 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() 118 … stream -> 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() 129 … stream -> ux_device_class_audio_stream_access_pos -> ux_device_class_audio_frame_length = length; in _ux_device_class_audio_frame_write() [all …]
|
D | ux_device_class_video_write_payload_commit.c | 72 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() 105 … stream -> 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() 119 …stream -> ux_device_class_video_stream_access_pos -> ux_device_class_video_payload_length = length; in _ux_device_class_video_write_payload_commit() [all …]
|
D | ux_device_class_video_read_thread_entry.c | 81 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() 134 …stream -> 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 …]
|
D | ux_device_class_audio_feedback_task_function.c | 77 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() 124 …stream -> 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() 141 …stream -> ux_device_class_audio_stream_feedback_task_status = transfer -> ux_slave_transfer_reques… in _ux_device_class_audio_feedback_task_function() [all …]
|
D | ux_device_class_audio_transmission_start.c | 80 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()
|
D | ux_device_class_audio_reception_start.c | 80 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()
|
D | ux_device_class_audio_write_frame_get.c | 77 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() 106 … stream -> 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()
|
D | ux_device_class_audio_initialize.c | 98 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() 246 …stream -> 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() 265 …stream -> 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 …]
|