Home
last modified time | relevance | path

Searched refs:packet (Results 1 – 13 of 13) sorted by relevance

/USBX-v6.2.1/common/usbx_host_classes/src/
Dux_host_class_asix_reception_callback.c94 NX_PACKET *packet; in _ux_host_class_asix_reception_callback()
102 packet = transfer_request -> ux_transfer_request_user_specific; in _ux_host_class_asix_reception_callback()
109 packet -> nx_packet_prepend_ptr += 4; in _ux_host_class_asix_reception_callback()
110 packet -> nx_packet_length = transfer_request -> ux_transfer_request_actual_length - 4; in _ux_host_class_asix_reception_callback()
111 packet -> nx_packet_append_ptr = in _ux_host_class_asix_reception_callback()
112 packet->nx_packet_prepend_ptr + transfer_request -> ux_transfer_request_actual_length ; in _ux_host_class_asix_reception_callback()
115 if((*(packet -> nx_packet_prepend_ptr + 12) == 0x08) && in _ux_host_class_asix_reception_callback()
116 (*(packet -> nx_packet_prepend_ptr + 13) == 0)) in _ux_host_class_asix_reception_callback()
118 …ip_given_length = _ux_utility_short_get_big_endian(packet -> nx_packet_prepend_ptr + 16) + UX_HOST… in _ux_host_class_asix_reception_callback()
119 packet->nx_packet_length = ip_given_length ; in _ux_host_class_asix_reception_callback()
[all …]
Dux_host_class_cdc_ecm_write.c89 UINT _ux_host_class_cdc_ecm_write(VOID *cdc_ecm_class, NX_PACKET *packet) in _ux_host_class_cdc_ecm_write() argument
134 if (packet -> nx_packet_length > UX_HOST_CLASS_CDC_ECM_NX_PAYLOAD_SIZE) 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()
158 packet -> nx_packet_queue_next = 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()
162 cdc_ecm -> ux_host_class_cdc_ecm_xmit_queue_tail = packet; in _ux_host_class_cdc_ecm_write()
174 if (packet -> nx_packet_next != UX_NULL) in _ux_host_class_cdc_ecm_write()
191 … nx_packet_data_extract_offset(packet, 0, packet_header, packet -> nx_packet_length, &copied); in _ux_host_class_cdc_ecm_write()
198 packet_header = packet -> nx_packet_prepend_ptr; in _ux_host_class_cdc_ecm_write()
204 transfer_request -> ux_transfer_request_requested_length = packet -> nx_packet_length; in _ux_host_class_cdc_ecm_write()
[all …]
Dux_host_class_asix_write.c87 UINT _ux_host_class_asix_write(VOID *asix_class, NX_PACKET *packet) in _ux_host_class_asix_write() argument
91 UX_PARAMETER_NOT_USED(packet); in _ux_host_class_asix_write()
139 packet -> nx_packet_prepend_ptr = packet -> nx_packet_prepend_ptr + NX_ETHERNET_SIZE; in _ux_host_class_asix_write()
140 packet -> nx_packet_length = packet -> nx_packet_length - NX_ETHERNET_SIZE; in _ux_host_class_asix_write()
141 nx_packet_transmit_release(packet); in _ux_host_class_asix_write()
149 packet_header = packet -> nx_packet_prepend_ptr; in _ux_host_class_asix_write()
157 if (packet_header < packet -> nx_packet_data_start) in _ux_host_class_asix_write()
169 if (UX_OVERFLOW_CHECK_ADD_ULONG(packet -> nx_packet_length, sizeof(USHORT) * 2)) in _ux_host_class_asix_write()
177 adjusted_length = packet -> nx_packet_length + sizeof(USHORT) * 2; in _ux_host_class_asix_write()
188 _ux_utility_short_put(packet_header, (USHORT)(packet -> nx_packet_length)); in _ux_host_class_asix_write()
[all …]
Dux_host_class_cdc_ecm_thread.c109 NX_PACKET *packet; in _ux_host_class_cdc_ecm_thread() local
164 status = nx_packet_allocate(cdc_ecm -> ux_host_class_cdc_ecm_packet_pool, &packet, in _ux_host_class_cdc_ecm_thread()
171 packet -> nx_packet_prepend_ptr += sizeof(USHORT); in _ux_host_class_cdc_ecm_thread()
179 … packet_buffer_size = (ULONG)(packet -> nx_packet_data_end - packet -> nx_packet_prepend_ptr); in _ux_host_class_cdc_ecm_thread()
194 nx_packet_release(packet); in _ux_host_class_cdc_ecm_thread()
211 … transfer_request -> ux_transfer_request_data_pointer = packet -> nx_packet_prepend_ptr; in _ux_host_class_cdc_ecm_thread()
220 transfer_request -> ux_transfer_request_user_specific = packet; in _ux_host_class_cdc_ecm_thread()
223 packet -> nx_packet_queue_next = UX_NULL; in _ux_host_class_cdc_ecm_thread()
255 if (packet -> nx_packet_prepend_ptr != in _ux_host_class_cdc_ecm_thread()
260packet -> nx_packet_append_ptr = packet -> nx_packet_prepend_ptr; in _ux_host_class_cdc_ecm_thread()
[all …]
Dux_host_class_asix_thread.c107 NX_PACKET *packet; in _ux_host_class_asix_thread() local
178 packet = UX_NULL; in _ux_host_class_asix_thread()
236 if (packet != UX_NULL) in _ux_host_class_asix_thread()
238 nx_packet_release(packet); in _ux_host_class_asix_thread()
239 packet = UX_NULL; in _ux_host_class_asix_thread()
255 if (packet != UX_NULL) in _ux_host_class_asix_thread()
257 nx_packet_release(packet); in _ux_host_class_asix_thread()
258 packet = UX_NULL; in _ux_host_class_asix_thread()
268 if (packet != UX_NULL) in _ux_host_class_asix_thread()
273 nx_packet_release(packet); in _ux_host_class_asix_thread()
[all …]
/USBX-v6.2.1/common/usbx_device_classes/src/
Dux_device_class_rndis_bulkout_thread.c101 NX_PACKET *packet; in _ux_device_class_rndis_bulkout_thread() local
149 status = nx_packet_allocate(rndis -> ux_slave_class_rndis_packet_pool, &packet, in _ux_device_class_rndis_bulkout_thread()
160 rndis -> ux_slave_class_rndis_receive_queue = packet; in _ux_device_class_rndis_bulkout_thread()
163 packet -> nx_packet_queue_next = UX_NULL; in _ux_device_class_rndis_bulkout_thread()
195 packet -> nx_packet_prepend_ptr += sizeof(USHORT); in _ux_device_class_rndis_bulkout_thread()
196 packet -> nx_packet_append_ptr += sizeof(USHORT); in _ux_device_class_rndis_bulkout_thread()
199 status = nx_packet_data_append(packet, in _ux_device_class_rndis_bulkout_thread()
209 … _ux_network_driver_packet_received(rndis -> ux_slave_class_rndis_network_handle, packet); in _ux_device_class_rndis_bulkout_thread()
216 nx_packet_release(packet); in _ux_device_class_rndis_bulkout_thread()
224 nx_packet_release(packet); in _ux_device_class_rndis_bulkout_thread()
[all …]
Dux_device_class_cdc_ecm_bulkout_thread.c101 NX_PACKET *packet; in _ux_device_class_cdc_ecm_bulkout_thread() local
152 status = nx_packet_allocate(cdc_ecm -> ux_slave_class_cdc_ecm_packet_pool, &packet, 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()
169 packet -> nx_packet_queue_next = UX_NULL; in _ux_device_class_cdc_ecm_bulkout_thread()
184 packet -> nx_packet_prepend_ptr += sizeof(USHORT); in _ux_device_class_cdc_ecm_bulkout_thread()
185 packet -> nx_packet_append_ptr += sizeof(USHORT); in _ux_device_class_cdc_ecm_bulkout_thread()
188 status = nx_packet_data_append(packet, in _ux_device_class_cdc_ecm_bulkout_thread()
197 … _ux_network_driver_packet_received(cdc_ecm -> ux_slave_class_cdc_ecm_network_handle, packet); in _ux_device_class_cdc_ecm_bulkout_thread()
204 nx_packet_release(packet); in _ux_device_class_cdc_ecm_bulkout_thread()
210 nx_packet_release(packet); in _ux_device_class_cdc_ecm_bulkout_thread()
Dux_device_class_cdc_ecm_write.c81 UINT _ux_device_class_cdc_ecm_write(VOID *cdc_ecm_class, NX_PACKET *packet) in _ux_device_class_cdc_ecm_write() argument
85 UX_PARAMETER_NOT_USED(packet); 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()
117 packet -> nx_packet_queue_next = NX_NULL; in _ux_device_class_cdc_ecm_write()
Dux_device_class_rndis_write.c81 UINT _ux_device_class_rndis_write(VOID *rndis_class, NX_PACKET *packet) in _ux_device_class_rndis_write() argument
85 UX_PARAMETER_NOT_USED(packet); in _ux_device_class_rndis_write()
103 rndis -> ux_slave_class_rndis_xmit_queue = packet; in _ux_device_class_rndis_write()
126 current_packet -> nx_packet_queue_next = packet; in _ux_device_class_rndis_write()
134 packet -> nx_packet_queue_next = NX_NULL; in _ux_device_class_rndis_write()
/USBX-v6.2.1/common/usbx_host_classes/inc/
Dux_host_class_cdc_ecm.h330 UINT _ux_host_class_cdc_ecm_write(VOID *cdc_ecm_class, NX_PACKET *packet);
Dux_host_class_asix.h471 UINT _ux_host_class_asix_write(VOID *asix_class, NX_PACKET *packet);
/USBX-v6.2.1/common/usbx_device_classes/inc/
Dux_device_class_cdc_ecm.h383 UINT _ux_device_class_cdc_ecm_write(VOID *cdc_ecm_class, NX_PACKET *packet);
Dux_device_class_rndis.h614 UINT _ux_device_class_rndis_write(VOID *rndis_class, NX_PACKET *packet);