Home
last modified time | relevance | path

Searched refs:cdc_ecm (Results 1 – 20 of 20) sorted by relevance

/USBX-v6.2.1/common/usbx_host_classes/src/
Dux_host_class_cdc_ecm_deactivate.c103 UX_HOST_CLASS_CDC_ECM *cdc_ecm; in _ux_host_class_cdc_ecm_deactivate() local
110 cdc_ecm = (UX_HOST_CLASS_CDC_ECM *) command -> ux_host_class_command_instance; in _ux_host_class_cdc_ecm_deactivate()
113 cdc_ecm -> ux_host_class_cdc_ecm_state = UX_HOST_CLASS_INSTANCE_SHUTDOWN; in _ux_host_class_cdc_ecm_deactivate()
117 if (cdc_ecm -> ux_host_class_cdc_ecm_interrupt_endpoint != UX_NULL) in _ux_host_class_cdc_ecm_deactivate()
121 …transfer_request = &cdc_ecm -> ux_host_class_cdc_ecm_interrupt_endpoint -> ux_endpoint_transfer_r… in _ux_host_class_cdc_ecm_deactivate()
130 if (cdc_ecm -> ux_host_class_cdc_ecm_link_state == UX_HOST_CLASS_CDC_ECM_LINK_STATE_UP) in _ux_host_class_cdc_ecm_deactivate()
132 _ux_host_class_cdc_ecm_transmit_queue_clean(cdc_ecm); in _ux_host_class_cdc_ecm_deactivate()
135 …transfer_request = &cdc_ecm -> ux_host_class_cdc_ecm_bulk_in_endpoint -> ux_endpoint_transfer_req… in _ux_host_class_cdc_ecm_deactivate()
145 if (cdc_ecm -> ux_host_class_cdc_ecm_bulk_in_transfer_check_and_arm_in_process == UX_TRUE) in _ux_host_class_cdc_ecm_deactivate()
151cdc_ecm -> ux_host_class_cdc_ecm_bulk_in_transfer_waiting_for_check_and_arm_to_finish = UX_TRUE; in _ux_host_class_cdc_ecm_deactivate()
[all …]
Dux_host_class_cdc_ecm_activate.c113 UX_HOST_CLASS_CDC_ECM *cdc_ecm; in _ux_host_class_cdc_ecm_activate() local
135cdc_ecm = _ux_utility_memory_allocate(UX_NO_ALIGN, UX_CACHE_SAFE_MEMORY, sizeof(UX_HOST_CLASS_CDC… in _ux_host_class_cdc_ecm_activate()
136 if (cdc_ecm == UX_NULL) in _ux_host_class_cdc_ecm_activate()
140 cdc_ecm -> ux_host_class_cdc_ecm_class = command -> ux_host_class_command_class_ptr; in _ux_host_class_cdc_ecm_activate()
143cdc_ecm -> ux_host_class_cdc_ecm_device = interface_ptr -> ux_interface_configuration -> ux_confi… in _ux_host_class_cdc_ecm_activate()
146 cdc_ecm -> ux_host_class_cdc_ecm_interface_data = interface_ptr; in _ux_host_class_cdc_ecm_activate()
200 cdc_ecm -> ux_host_class_cdc_ecm_interface_control = (UX_INTERFACE *) control_interface; in _ux_host_class_cdc_ecm_activate()
203 status = _ux_host_class_cdc_ecm_endpoints_get(cdc_ecm); in _ux_host_class_cdc_ecm_activate()
210 cdc_ecm -> ux_host_class_cdc_ecm_thread_stack = in _ux_host_class_cdc_ecm_activate()
212 if (cdc_ecm -> ux_host_class_cdc_ecm_thread_stack == UX_NULL) in _ux_host_class_cdc_ecm_activate()
[all …]
Dux_host_class_cdc_ecm_interrupt_notification.c82 UX_HOST_CLASS_CDC_ECM *cdc_ecm; in _ux_host_class_cdc_ecm_interrupt_notification() local
88 cdc_ecm = (UX_HOST_CLASS_CDC_ECM *) transfer_request -> ux_transfer_request_class_instance; in _ux_host_class_cdc_ecm_interrupt_notification()
97 if (cdc_ecm -> ux_host_class_cdc_ecm_state == UX_HOST_CLASS_INSTANCE_SHUTDOWN) in _ux_host_class_cdc_ecm_interrupt_notification()
103 cdc_ecm -> ux_host_class_cdc_ecm_notification_count++; in _ux_host_class_cdc_ecm_interrupt_notification()
120 … if (cdc_ecm -> ux_host_class_cdc_ecm_link_state != UX_HOST_CLASS_CDC_ECM_LINK_STATE_UP && in _ux_host_class_cdc_ecm_interrupt_notification()
121cdc_ecm -> ux_host_class_cdc_ecm_link_state != UX_HOST_CLASS_CDC_ECM_LINK_STATE_PENDING_UP) in _ux_host_class_cdc_ecm_interrupt_notification()
125cdc_ecm -> ux_host_class_cdc_ecm_link_state = UX_HOST_CLASS_CDC_ECM_LINK_STATE_PENDING_UP; … in _ux_host_class_cdc_ecm_interrupt_notification()
128 … _ux_host_semaphore_put(&cdc_ecm -> ux_host_class_cdc_ecm_interrupt_notification_semaphore); in _ux_host_class_cdc_ecm_interrupt_notification()
135 … if (cdc_ecm -> ux_host_class_cdc_ecm_link_state != UX_HOST_CLASS_CDC_ECM_LINK_STATE_DOWN && in _ux_host_class_cdc_ecm_interrupt_notification()
136cdc_ecm -> ux_host_class_cdc_ecm_link_state != UX_HOST_CLASS_CDC_ECM_LINK_STATE_PENDING_DOWN) in _ux_host_class_cdc_ecm_interrupt_notification()
[all …]
Dux_host_class_cdc_ecm_thread.c107 UX_HOST_CLASS_CDC_ECM *cdc_ecm; in _ux_host_class_cdc_ecm_thread() local
116 UX_THREAD_EXTENSION_PTR_GET(cdc_ecm, UX_HOST_CLASS_CDC_ECM, parameter) in _ux_host_class_cdc_ecm_thread()
123 …_ux_host_semaphore_get_norc(&cdc_ecm -> ux_host_class_cdc_ecm_interrupt_notification_semaphore, UX… in _ux_host_class_cdc_ecm_thread()
126 … if (cdc_ecm -> ux_host_class_cdc_ecm_link_state == UX_HOST_CLASS_CDC_ECM_LINK_STATE_PENDING_UP) in _ux_host_class_cdc_ecm_thread()
130 cdc_ecm -> ux_host_class_cdc_ecm_link_state = UX_HOST_CLASS_CDC_ECM_LINK_STATE_UP; in _ux_host_class_cdc_ecm_thread()
133 _ux_network_driver_link_up(cdc_ecm -> ux_host_class_cdc_ecm_network_handle); in _ux_host_class_cdc_ecm_thread()
136 … while ((cdc_ecm -> ux_host_class_cdc_ecm_link_state == UX_HOST_CLASS_CDC_ECM_LINK_STATE_UP) && in _ux_host_class_cdc_ecm_thread()
137 …(cdc_ecm -> ux_host_class_cdc_ecm_device -> ux_device_state == UX_DEVICE_CONFIGURED)) … in _ux_host_class_cdc_ecm_thread()
141 if (cdc_ecm -> ux_host_class_cdc_ecm_packet_pool == UX_NULL) in _ux_host_class_cdc_ecm_thread()
145 …usb_network_device_ptr = (USB_NETWORK_DEVICE_TYPE *)(cdc_ecm -> ux_host_class_cdc_ecm_network_hand… in _ux_host_class_cdc_ecm_thread()
[all …]
Dux_host_class_cdc_ecm_write.c97 UX_HOST_CLASS_CDC_ECM *cdc_ecm; in _ux_host_class_cdc_ecm_write() local
103 cdc_ecm = (UX_HOST_CLASS_CDC_ECM *) cdc_ecm_class; in _ux_host_class_cdc_ecm_write()
106 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_CDC_ECM_WRITE, cdc_ecm, 0, 0, 0, UX_TRACE_HOST_CLASS_E… in _ux_host_class_cdc_ecm_write()
109 cdc_ecm -> ux_host_class_cdc_ecm_bulk_out_transfer_check_and_arm_in_process = UX_TRUE; in _ux_host_class_cdc_ecm_write()
118 if (cdc_ecm -> ux_host_class_cdc_ecm_state != UX_HOST_CLASS_INSTANCE_LIVE) in _ux_host_class_cdc_ecm_write()
128 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, cdc_ecm, 0, 0, UX_TRACE_ER… in _ux_host_class_cdc_ecm_write()
144 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_CLASS_ETH_SIZE_ERROR, cdc_ecm, packet -> nx_packet_leng… in _ux_host_class_cdc_ecm_write()
150 if (cdc_ecm -> ux_host_class_cdc_ecm_link_state == UX_HOST_CLASS_CDC_ECM_LINK_STATE_UP) in _ux_host_class_cdc_ecm_write()
154 if (cdc_ecm -> ux_host_class_cdc_ecm_xmit_queue_head == UX_NULL) in _ux_host_class_cdc_ecm_write()
161 cdc_ecm -> ux_host_class_cdc_ecm_xmit_queue_head = packet; in _ux_host_class_cdc_ecm_write()
[all …]
Dux_host_class_cdc_ecm_transmit_queue_clean.c84 VOID _ux_host_class_cdc_ecm_transmit_queue_clean(UX_HOST_CLASS_CDC_ECM *cdc_ecm) in _ux_host_class_cdc_ecm_transmit_queue_clean() argument
97 if (cdc_ecm -> ux_host_class_cdc_ecm_bulk_out_transfer_check_and_arm_in_process == UX_TRUE) in _ux_host_class_cdc_ecm_transmit_queue_clean()
104cdc_ecm -> ux_host_class_cdc_ecm_bulk_out_transfer_waiting_for_check_and_arm_to_finish = UX_TRUE; in _ux_host_class_cdc_ecm_transmit_queue_clean()
110 …_ux_host_semaphore_get_norc(&cdc_ecm -> ux_host_class_cdc_ecm_bulk_out_transfer_waiting_for_check_… in _ux_host_class_cdc_ecm_transmit_queue_clean()
113cdc_ecm -> ux_host_class_cdc_ecm_bulk_out_transfer_waiting_for_check_and_arm_to_finish = UX_FALSE; in _ux_host_class_cdc_ecm_transmit_queue_clean()
126 …_ux_host_stack_transfer_request_abort(&cdc_ecm -> ux_host_class_cdc_ecm_bulk_out_endpoint -> ux_en… in _ux_host_class_cdc_ecm_transmit_queue_clean()
129 current_packet = cdc_ecm -> ux_host_class_cdc_ecm_xmit_queue_head; in _ux_host_class_cdc_ecm_transmit_queue_clean()
152 cdc_ecm -> ux_host_class_cdc_ecm_xmit_queue_head = UX_NULL; in _ux_host_class_cdc_ecm_transmit_queue_clean()
Dux_host_class_cdc_ecm_endpoints_get.c78 UINT _ux_host_class_cdc_ecm_endpoints_get(UX_HOST_CLASS_CDC_ECM *cdc_ecm) in _ux_host_class_cdc_ecm_endpoints_get() argument
91 data_interface = cdc_ecm -> ux_host_class_cdc_ecm_interface_data; in _ux_host_class_cdc_ecm_endpoints_get()
112 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_DESCRIPTOR_CORRUPTED, cdc_ecm -> ux_host_class_cdc_ecm_… in _ux_host_class_cdc_ecm_endpoints_get()
145 … endpoint -> ux_endpoint_transfer_request.ux_transfer_request_class_instance = (VOID *) cdc_ecm; in _ux_host_class_cdc_ecm_endpoints_get()
151 cdc_ecm -> ux_host_class_cdc_ecm_bulk_out_endpoint = endpoint; in _ux_host_class_cdc_ecm_endpoints_get()
158 if (cdc_ecm -> ux_host_class_cdc_ecm_bulk_out_endpoint == UX_NULL) in _ux_host_class_cdc_ecm_endpoints_get()
165 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_ENDPOINT_HANDLE_UNKNOWN, cdc_ecm, 0, 0, UX_TRACE_ERRORS… in _ux_host_class_cdc_ecm_endpoints_get()
187 … endpoint -> ux_endpoint_transfer_request.ux_transfer_request_class_instance = (VOID *) cdc_ecm; in _ux_host_class_cdc_ecm_endpoints_get()
193 cdc_ecm -> ux_host_class_cdc_ecm_bulk_in_endpoint = endpoint; in _ux_host_class_cdc_ecm_endpoints_get()
200 if (cdc_ecm -> ux_host_class_cdc_ecm_bulk_in_endpoint == UX_NULL) in _ux_host_class_cdc_ecm_endpoints_get()
[all …]
Dux_host_class_cdc_ecm_transmission_callback.c94 UX_HOST_CLASS_CDC_ECM *cdc_ecm; in _ux_host_class_cdc_ecm_transmission_callback()
103 cdc_ecm = (UX_HOST_CLASS_CDC_ECM *) transfer_request -> ux_transfer_request_class_instance; in _ux_host_class_cdc_ecm_transmission_callback()
106 if (cdc_ecm -> ux_host_class_cdc_ecm_link_state != UX_HOST_CLASS_CDC_ECM_LINK_STATE_UP || in _ux_host_class_cdc_ecm_transmission_callback()
107 cdc_ecm -> ux_host_class_cdc_ecm_state == UX_HOST_CLASS_INSTANCE_SHUTDOWN) in _ux_host_class_cdc_ecm_transmission_callback()
114 current_packet = cdc_ecm -> ux_host_class_cdc_ecm_xmit_queue_head; in _ux_host_class_cdc_ecm_transmission_callback()
124 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_INTERFACE_HANDLE_UNKNOWN, cdc_ecm, 0, 0, UX_FATAL_ERROR… in _ux_host_class_cdc_ecm_transmission_callback()
153 cdc_ecm -> ux_host_class_cdc_ecm_xmit_queue_head = next_packet; in _ux_host_class_cdc_ecm_transmission_callback()
165 packet_header = cdc_ecm -> ux_host_class_cdc_ecm_xmit_buffer; in _ux_host_class_cdc_ecm_transmission_callback()
Dux_host_class_cdc_ecm_mac_address_get.c82 UINT _ux_host_class_cdc_ecm_mac_address_get(UX_HOST_CLASS_CDC_ECM *cdc_ecm) in _ux_host_class_cdc_ecm_mac_address_get() argument
106 …configuration_index = cdc_ecm -> ux_host_class_cdc_ecm_interface_data -> ux_interface_configuratio… in _ux_host_class_cdc_ecm_mac_address_get()
109 control_endpoint = &cdc_ecm -> ux_host_class_cdc_ecm_device -> ux_device_control_endpoint; in _ux_host_class_cdc_ecm_mac_address_get()
306 …*(cdc_ecm -> ux_host_class_cdc_ecm_node_id + string_index / 2) = (UCHAR)(element_hexa_upper << 4 |… in _ux_host_class_cdc_ecm_mac_address_get()
/USBX-v6.2.1/common/usbx_device_classes/src/
Dux_device_class_cdc_ecm_deactivate.c87 UX_SLAVE_CLASS_CDC_ECM *cdc_ecm; in _ux_device_class_cdc_ecm_deactivate() local
95 cdc_ecm = (UX_SLAVE_CLASS_CDC_ECM *) class_ptr -> ux_slave_class_instance; in _ux_device_class_cdc_ecm_deactivate()
109 if (cdc_ecm -> ux_slave_class_cdc_ecm_link_state == UX_DEVICE_CLASS_CDC_ECM_LINK_STATE_UP) in _ux_device_class_cdc_ecm_deactivate()
116 …_ux_device_stack_transfer_all_request_abort(cdc_ecm -> ux_slave_class_cdc_ecm_bulkin_endpoint, UX_… in _ux_device_class_cdc_ecm_deactivate()
117 …_ux_device_stack_transfer_all_request_abort(cdc_ecm -> ux_slave_class_cdc_ecm_bulkout_endpoint, UX… in _ux_device_class_cdc_ecm_deactivate()
121 cdc_ecm -> ux_slave_class_cdc_ecm_link_state = UX_DEVICE_CLASS_CDC_ECM_LINK_STATE_DOWN; in _ux_device_class_cdc_ecm_deactivate()
124 if (cdc_ecm -> ux_slave_class_cdc_ecm_interrupt_endpoint != UX_NULL) in _ux_device_class_cdc_ecm_deactivate()
127 …_ux_device_stack_transfer_all_request_abort(cdc_ecm -> ux_slave_class_cdc_ecm_interrupt_endpoint, … in _ux_device_class_cdc_ecm_deactivate()
130 …_ux_device_event_flags_set(&cdc_ecm -> ux_slave_class_cdc_ecm_event_flags_group, UX_DEVICE_CLASS_C… in _ux_device_class_cdc_ecm_deactivate()
133 …if (cdc_ecm -> ux_slave_class_cdc_ecm_parameter.ux_slave_class_cdc_ecm_instance_deactivate != UX_N… in _ux_device_class_cdc_ecm_deactivate()
[all …]
Dux_device_class_cdc_ecm_activate.c96 UX_SLAVE_CLASS_CDC_ECM *cdc_ecm; in _ux_device_class_cdc_ecm_activate()
105 cdc_ecm = (UX_SLAVE_CLASS_CDC_ECM *) class_ptr -> ux_slave_class_instance; in _ux_device_class_cdc_ecm_activate()
115 interface_ptr -> ux_slave_interface_class_instance = (VOID *)cdc_ecm; in _ux_device_class_cdc_ecm_activate()
118 cdc_ecm -> ux_slave_class_cdc_ecm_interface = interface_ptr; in _ux_device_class_cdc_ecm_activate()
136 cdc_ecm -> ux_slave_class_cdc_ecm_interrupt_endpoint = endpoint; in _ux_device_class_cdc_ecm_activate()
139 …_ux_utility_memory_set(cdc_ecm -> ux_slave_class_cdc_ecm_interrupt_endpoint -> ux_slave_endpoint_t… in _ux_device_class_cdc_ecm_activate()
143 _ux_device_thread_resume(&cdc_ecm -> ux_slave_class_cdc_ecm_interrupt_thread); in _ux_device_class_cdc_ecm_activate()
157 interface_ptr -> ux_slave_interface_class_instance = (VOID *)cdc_ecm; in _ux_device_class_cdc_ecm_activate()
160 cdc_ecm -> ux_slave_class_cdc_ecm_current_alternate_setting = 0; in _ux_device_class_cdc_ecm_activate()
167 cdc_ecm -> ux_slave_class_cdc_ecm_bulkout_endpoint = UX_NULL; in _ux_device_class_cdc_ecm_activate()
[all …]
Dux_device_class_cdc_ecm_change.c95 UX_SLAVE_CLASS_CDC_ECM *cdc_ecm; in _ux_device_class_cdc_ecm_change() local
102 cdc_ecm = (UX_SLAVE_CLASS_CDC_ECM *) class_ptr -> ux_slave_class_instance; in _ux_device_class_cdc_ecm_change()
128 cdc_ecm -> ux_slave_class_cdc_ecm_bulkin_endpoint = endpoint; in _ux_device_class_cdc_ecm_change()
137 cdc_ecm -> ux_slave_class_cdc_ecm_bulkout_endpoint = endpoint; in _ux_device_class_cdc_ecm_change()
145 …if (cdc_ecm -> ux_slave_class_cdc_ecm_bulkout_endpoint == UX_NULL || cdc_ecm -> ux_slave_class_cdc… in _ux_device_class_cdc_ecm_change()
151 cdc_ecm -> ux_slave_class_cdc_ecm_link_state = UX_DEVICE_CLASS_CDC_ECM_LINK_STATE_UP; in _ux_device_class_cdc_ecm_change()
154 _ux_network_driver_link_up(cdc_ecm -> ux_slave_class_cdc_ecm_network_handle); in _ux_device_class_cdc_ecm_change()
157 …_ux_utility_memory_set(cdc_ecm -> ux_slave_class_cdc_ecm_bulkout_endpoint -> ux_slave_endpoint_tra… in _ux_device_class_cdc_ecm_change()
159 …_ux_utility_memory_set(cdc_ecm -> ux_slave_class_cdc_ecm_bulkin_endpoint -> ux_slave_endpoint_tran… in _ux_device_class_cdc_ecm_change()
163 _ux_device_thread_resume(&cdc_ecm -> ux_slave_class_cdc_ecm_bulkout_thread); in _ux_device_class_cdc_ecm_change()
[all …]
Dux_device_class_cdc_ecm_initialize.c101 UX_SLAVE_CLASS_CDC_ECM *cdc_ecm; in _ux_device_class_cdc_ecm_initialize()
111cdc_ecm = _ux_utility_memory_allocate(UX_NO_ALIGN, UX_REGULAR_MEMORY, sizeof(UX_SLAVE_CLASS_CDC_E… in _ux_device_class_cdc_ecm_initialize()
114 if (cdc_ecm == UX_NULL) in _ux_device_class_cdc_ecm_initialize()
118 …status = _ux_utility_mutex_create(&cdc_ecm -> ux_slave_class_cdc_ecm_mutex, "ux_slave_class_cdc_e… in _ux_device_class_cdc_ecm_initialize()
121 _ux_utility_memory_free(cdc_ecm); in _ux_device_class_cdc_ecm_initialize()
129 cdc_ecm -> ux_slave_class_cdc_ecm_bulkout_thread_stack = in _ux_device_class_cdc_ecm_initialize()
131 if (cdc_ecm -> ux_slave_class_cdc_ecm_bulkout_thread_stack == UX_NULL) in _ux_device_class_cdc_ecm_initialize()
137 cdc_ecm -> ux_slave_class_cdc_ecm_interrupt_thread_stack = in _ux_device_class_cdc_ecm_initialize()
141 if (cdc_ecm -> ux_slave_class_cdc_ecm_interrupt_thread_stack == UX_NULL) in _ux_device_class_cdc_ecm_initialize()
148 cdc_ecm -> ux_slave_class_cdc_ecm_bulkin_thread_stack = in _ux_device_class_cdc_ecm_initialize()
[all …]
Dux_device_class_cdc_ecm_uninitialize.c93 UX_SLAVE_CLASS_CDC_ECM *cdc_ecm; in _ux_device_class_cdc_ecm_uninitialize() local
101 cdc_ecm = (UX_SLAVE_CLASS_CDC_ECM *) class_ptr -> ux_slave_class_instance; in _ux_device_class_cdc_ecm_uninitialize()
104 if (cdc_ecm != UX_NULL) in _ux_device_class_cdc_ecm_uninitialize()
114 _ux_device_mutex_delete(&cdc_ecm -> ux_slave_class_cdc_ecm_mutex); in _ux_device_class_cdc_ecm_uninitialize()
117 _ux_device_thread_delete(&cdc_ecm -> ux_slave_class_cdc_ecm_bulkout_thread); in _ux_device_class_cdc_ecm_uninitialize()
120 _ux_utility_memory_free(cdc_ecm -> ux_slave_class_cdc_ecm_bulkout_thread_stack); in _ux_device_class_cdc_ecm_uninitialize()
123 _ux_device_thread_delete(&cdc_ecm -> ux_slave_class_cdc_ecm_interrupt_thread); in _ux_device_class_cdc_ecm_uninitialize()
126 _ux_utility_memory_free(cdc_ecm -> ux_slave_class_cdc_ecm_interrupt_thread_stack); in _ux_device_class_cdc_ecm_uninitialize()
129 _ux_device_thread_delete(&cdc_ecm -> ux_slave_class_cdc_ecm_bulkin_thread); in _ux_device_class_cdc_ecm_uninitialize()
132 _ux_utility_memory_free(cdc_ecm -> ux_slave_class_cdc_ecm_bulkin_thread_stack); in _ux_device_class_cdc_ecm_uninitialize()
[all …]
Dux_device_class_cdc_ecm_write.c90 UX_SLAVE_CLASS_CDC_ECM *cdc_ecm; in _ux_device_class_cdc_ecm_write()
93 cdc_ecm = (UX_SLAVE_CLASS_CDC_ECM *) cdc_ecm_class; in _ux_device_class_cdc_ecm_write()
96 _ux_device_mutex_on(&cdc_ecm -> ux_slave_class_cdc_ecm_mutex); in _ux_device_class_cdc_ecm_write()
99 if (cdc_ecm->ux_slave_class_cdc_ecm_link_state == UX_DEVICE_CLASS_CDC_ECM_LINK_STATE_UP) in _ux_device_class_cdc_ecm_write()
103 if (cdc_ecm -> ux_slave_class_cdc_ecm_xmit_queue == UX_NULL) in _ux_device_class_cdc_ecm_write()
106 cdc_ecm -> ux_slave_class_cdc_ecm_xmit_queue = packet; in _ux_device_class_cdc_ecm_write()
111 cdc_ecm -> ux_slave_class_cdc_ecm_xmit_queue_tail -> nx_packet_queue_next = packet; in _ux_device_class_cdc_ecm_write()
114 cdc_ecm -> ux_slave_class_cdc_ecm_xmit_queue_tail = packet; in _ux_device_class_cdc_ecm_write()
120 _ux_device_mutex_off(&cdc_ecm -> ux_slave_class_cdc_ecm_mutex); in _ux_device_class_cdc_ecm_write()
123 …_ux_device_event_flags_set(&cdc_ecm -> ux_slave_class_cdc_ecm_event_flags_group, UX_DEVICE_CLASS_C… in _ux_device_class_cdc_ecm_write()
[all …]
Dux_device_class_cdc_ecm_bulkin_thread.c95 UX_SLAVE_CLASS_CDC_ECM *cdc_ecm; in _ux_device_class_cdc_ecm_bulkin_thread() local
108 cdc_ecm = (UX_SLAVE_CLASS_CDC_ECM *) class_ptr -> ux_slave_class_instance; in _ux_device_class_cdc_ecm_bulkin_thread()
123 …_ux_utility_event_flags_get(&cdc_ecm -> ux_slave_class_cdc_ecm_event_flags_group, (UX_DEVICE_CLASS… in _ux_device_class_cdc_ecm_bulkin_thread()
132 …transfer_request = &cdc_ecm -> ux_slave_class_cdc_ecm_bulkin_endpoint -> ux_slave_endpoint_transf… in _ux_device_class_cdc_ecm_bulkin_thread()
135 while (cdc_ecm -> ux_slave_class_cdc_ecm_xmit_queue != UX_NULL) in _ux_device_class_cdc_ecm_bulkin_thread()
139 _ux_device_mutex_on(&cdc_ecm -> ux_slave_class_cdc_ecm_mutex); in _ux_device_class_cdc_ecm_bulkin_thread()
142 current_packet = cdc_ecm -> ux_slave_class_cdc_ecm_xmit_queue; in _ux_device_class_cdc_ecm_bulkin_thread()
145cdc_ecm -> ux_slave_class_cdc_ecm_xmit_queue = current_packet -> nx_packet_queue_next; in _ux_device_class_cdc_ecm_bulkin_thread()
148 _ux_device_mutex_off(&cdc_ecm -> ux_slave_class_cdc_ecm_mutex); in _ux_device_class_cdc_ecm_bulkin_thread()
151 … if (cdc_ecm -> ux_slave_class_cdc_ecm_link_state == UX_DEVICE_CLASS_CDC_ECM_LINK_STATE_UP) in _ux_device_class_cdc_ecm_bulkin_thread()
[all …]
Dux_device_class_cdc_ecm_bulkout_thread.c97 UX_SLAVE_CLASS_CDC_ECM *cdc_ecm; in _ux_device_class_cdc_ecm_bulkout_thread() local
108 cdc_ecm = (UX_SLAVE_CLASS_CDC_ECM *) class_ptr -> ux_slave_class_instance; in _ux_device_class_cdc_ecm_bulkout_thread()
122 if (cdc_ecm -> ux_slave_class_cdc_ecm_packet_pool == UX_NULL) in _ux_device_class_cdc_ecm_bulkout_thread()
126 … ux_nx_device = (USB_NETWORK_DEVICE_TYPE *)(cdc_ecm -> ux_slave_class_cdc_ecm_network_handle); in _ux_device_class_cdc_ecm_bulkout_thread()
131cdc_ecm -> ux_slave_class_cdc_ecm_packet_pool = ux_nx_device -> ux_network_device_ip_instance -> n… in _ux_device_class_cdc_ecm_bulkout_thread()
145 if (cdc_ecm -> ux_slave_class_cdc_ecm_bulkout_endpoint == UX_NULL) in _ux_device_class_cdc_ecm_bulkout_thread()
152 status = nx_packet_allocate(cdc_ecm -> ux_slave_class_cdc_ecm_packet_pool, &packet, in _ux_device_class_cdc_ecm_bulkout_thread()
159 …transfer_request = &cdc_ecm -> ux_slave_class_cdc_ecm_bulkout_endpoint -> ux_slave_endpoint_trans… in _ux_device_class_cdc_ecm_bulkout_thread()
166 cdc_ecm -> ux_slave_class_cdc_ecm_receive_queue = packet; in _ux_device_class_cdc_ecm_bulkout_thread()
181 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_DEVICE_CLASS_CDC_ECM_PACKET_RECEIVE, cdc_ecm, 0, 0, 0, UX_TRACE_D… in _ux_device_class_cdc_ecm_bulkout_thread()
[all …]
Dux_device_class_cdc_ecm_interrupt_thread.c89 UX_SLAVE_CLASS_CDC_ECM *cdc_ecm; in _ux_device_class_cdc_ecm_interrupt_thread() local
100 cdc_ecm = (UX_SLAVE_CLASS_CDC_ECM *) class_ptr -> ux_slave_class_instance; in _ux_device_class_cdc_ecm_interrupt_thread()
110 …transfer_request = &cdc_ecm -> ux_slave_class_cdc_ecm_interrupt_endpoint -> ux_slave_endpoint_tra… in _ux_device_class_cdc_ecm_interrupt_thread()
119 _ux_utility_event_flags_get(&cdc_ecm -> ux_slave_class_cdc_ecm_event_flags_group, in _ux_device_class_cdc_ecm_interrupt_thread()
133 …_ux_utility_short_put(notification_buffer + UX_SETUP_VALUE, (USHORT)(cdc_ecm -> ux_slave_class_cdc… in _ux_device_class_cdc_ecm_interrupt_thread()
137 …_ux_utility_short_put(notification_buffer + UX_SETUP_INDEX, (USHORT)(cdc_ecm -> ux_slave_class_cdc… in _ux_device_class_cdc_ecm_interrupt_thread()
161 _ux_device_thread_suspend(&cdc_ecm -> ux_slave_class_cdc_ecm_interrupt_thread); in _ux_device_class_cdc_ecm_interrupt_thread()
Dux_device_class_cdc_ecm_control_request.c83 UX_SLAVE_CLASS_CDC_ECM *cdc_ecm; in _ux_device_class_cdc_ecm_control_request() local
99 cdc_ecm = (UX_SLAVE_CLASS_CDC_ECM *) class_ptr -> ux_slave_class_instance; in _ux_device_class_cdc_ecm_control_request()
108 cdc_ecm -> ux_slave_class_cdc_ecm_ethernet_multicast_filter = request_value; in _ux_device_class_cdc_ecm_control_request()
114 cdc_ecm -> ux_slave_class_cdc_ecm_ethernet_power_management_filter = request_value; in _ux_device_class_cdc_ecm_control_request()
120 cdc_ecm -> ux_slave_class_cdc_ecm_ethernet_packet_filter = request_value; in _ux_device_class_cdc_ecm_control_request()
/USBX-v6.2.1/common/usbx_host_classes/inc/
Dux_host_class_cdc_ecm.h300 …ux_host_class_cdc_ecm_device_status_change_callback)(struct UX_HOST_CLASS_CDC_ECM_STRUCT *cdc_ecm,
328 UINT _ux_host_class_cdc_ecm_endpoints_get(UX_HOST_CLASS_CDC_ECM *cdc_ecm);
335 UINT _ux_host_class_cdc_ecm_mac_address_get(UX_HOST_CLASS_CDC_ECM *cdc_ecm);