Home
last modified time | relevance | path

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

/USBX-v6.2.1/common/usbx_host_classes/src/
Dux_host_class_asix_reception_callback.c93 NX_PACKET *packet; in _ux_host_class_asix_reception_callback()
101 packet = transfer_request -> ux_transfer_request_user_specific; in _ux_host_class_asix_reception_callback()
108 packet -> nx_packet_prepend_ptr += 4; in _ux_host_class_asix_reception_callback()
109 packet -> nx_packet_length = transfer_request -> ux_transfer_request_actual_length - 4; in _ux_host_class_asix_reception_callback()
110 packet -> nx_packet_append_ptr = in _ux_host_class_asix_reception_callback()
111 packet->nx_packet_prepend_ptr + transfer_request -> ux_transfer_request_actual_length ; in _ux_host_class_asix_reception_callback()
114 if((*(packet -> nx_packet_prepend_ptr + 12) == 0x08) && in _ux_host_class_asix_reception_callback()
115 (*(packet -> nx_packet_prepend_ptr + 13) == 0)) in _ux_host_class_asix_reception_callback()
117 …ip_given_length = _ux_utility_short_get_big_endian(packet -> nx_packet_prepend_ptr + 16) + UX_HOST… in _ux_host_class_asix_reception_callback()
118 packet->nx_packet_length = ip_given_length ; in _ux_host_class_asix_reception_callback()
[all …]
Dux_host_class_cdc_ecm_write.c88 UINT _ux_host_class_cdc_ecm_write(VOID *cdc_ecm_class, NX_PACKET *packet) in _ux_host_class_cdc_ecm_write() argument
133 if (packet -> nx_packet_length > UX_HOST_CLASS_CDC_ECM_NX_PAYLOAD_SIZE) in _ux_host_class_cdc_ecm_write()
143 …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()
157 packet -> nx_packet_queue_next = UX_NULL; in _ux_host_class_cdc_ecm_write()
160 cdc_ecm -> ux_host_class_cdc_ecm_xmit_queue_head = packet; in _ux_host_class_cdc_ecm_write()
161 cdc_ecm -> ux_host_class_cdc_ecm_xmit_queue_tail = packet; in _ux_host_class_cdc_ecm_write()
173 if (packet -> nx_packet_next != UX_NULL) in _ux_host_class_cdc_ecm_write()
190 … nx_packet_data_extract_offset(packet, 0, packet_header, packet -> nx_packet_length, &copied); in _ux_host_class_cdc_ecm_write()
197 packet_header = packet -> nx_packet_prepend_ptr; in _ux_host_class_cdc_ecm_write()
203 transfer_request -> ux_transfer_request_requested_length = packet -> nx_packet_length; in _ux_host_class_cdc_ecm_write()
[all …]
Dux_host_class_asix_write.c90 UINT _ux_host_class_asix_write(VOID *asix_class, NX_PACKET *packet) in _ux_host_class_asix_write() argument
94 UX_PARAMETER_NOT_USED(packet); in _ux_host_class_asix_write()
142 packet -> nx_packet_prepend_ptr = packet -> nx_packet_prepend_ptr + NX_ETHERNET_SIZE; in _ux_host_class_asix_write()
143 packet -> nx_packet_length = packet -> nx_packet_length - NX_ETHERNET_SIZE; in _ux_host_class_asix_write()
144 nx_packet_transmit_release(packet); in _ux_host_class_asix_write()
152 packet_header = packet -> nx_packet_prepend_ptr; in _ux_host_class_asix_write()
160 if (packet_header < packet -> nx_packet_data_start) in _ux_host_class_asix_write()
172 if (UX_OVERFLOW_CHECK_ADD_ULONG(packet -> nx_packet_length, sizeof(USHORT) * 2)) in _ux_host_class_asix_write()
180 adjusted_length = packet -> nx_packet_length + (ULONG)sizeof(USHORT) * 2; in _ux_host_class_asix_write()
191 _ux_utility_short_put(packet_header, (USHORT)(packet -> nx_packet_length)); in _ux_host_class_asix_write()
[all …]
Dux_host_class_cdc_ecm_thread.c108 NX_PACKET *packet; in _ux_host_class_cdc_ecm_thread() local
163 status = nx_packet_allocate(cdc_ecm -> ux_host_class_cdc_ecm_packet_pool, &packet, in _ux_host_class_cdc_ecm_thread()
170 packet -> nx_packet_prepend_ptr += sizeof(USHORT); in _ux_host_class_cdc_ecm_thread()
178 … packet_buffer_size = (ULONG)(packet -> nx_packet_data_end - packet -> nx_packet_prepend_ptr); in _ux_host_class_cdc_ecm_thread()
193 nx_packet_release(packet); in _ux_host_class_cdc_ecm_thread()
210 … transfer_request -> ux_transfer_request_data_pointer = packet -> nx_packet_prepend_ptr; in _ux_host_class_cdc_ecm_thread()
219 transfer_request -> ux_transfer_request_user_specific = packet; in _ux_host_class_cdc_ecm_thread()
222 packet -> nx_packet_queue_next = UX_NULL; in _ux_host_class_cdc_ecm_thread()
254 if (packet -> nx_packet_prepend_ptr != in _ux_host_class_cdc_ecm_thread()
259packet -> nx_packet_append_ptr = packet -> nx_packet_prepend_ptr; in _ux_host_class_cdc_ecm_thread()
[all …]
Dux_host_class_asix_thread.c106 NX_PACKET *packet; in _ux_host_class_asix_thread() local
177 packet = UX_NULL; in _ux_host_class_asix_thread()
235 if (packet != UX_NULL) in _ux_host_class_asix_thread()
237 nx_packet_release(packet); in _ux_host_class_asix_thread()
238 packet = UX_NULL; in _ux_host_class_asix_thread()
254 if (packet != UX_NULL) in _ux_host_class_asix_thread()
256 nx_packet_release(packet); in _ux_host_class_asix_thread()
257 packet = UX_NULL; in _ux_host_class_asix_thread()
267 if (packet != UX_NULL) in _ux_host_class_asix_thread()
272 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.c105 NX_PACKET *packet; in _ux_device_class_rndis_bulkout_thread() local
153 status = nx_packet_allocate(rndis -> ux_slave_class_rndis_packet_pool, &packet, in _ux_device_class_rndis_bulkout_thread()
164 rndis -> ux_slave_class_rndis_receive_queue = packet; in _ux_device_class_rndis_bulkout_thread()
167 packet -> nx_packet_queue_next = UX_NULL; in _ux_device_class_rndis_bulkout_thread()
173 packet -> nx_packet_append_ptr += UX_DEVICE_CLASS_RNDIS_PACKET_BUFFER; in _ux_device_class_rndis_bulkout_thread()
174 switch(((ALIGN_TYPE)packet -> nx_packet_append_ptr) & 0x3) in _ux_device_class_rndis_bulkout_thread()
177 packet -> nx_packet_append_ptr += 2; in _ux_device_class_rndis_bulkout_thread()
180 packet -> nx_packet_append_ptr += 1; in _ux_device_class_rndis_bulkout_thread()
183 packet -> nx_packet_append_ptr += 3; in _ux_device_class_rndis_bulkout_thread()
188packet -> nx_packet_prepend_ptr = packet -> nx_packet_append_ptr - UX_DEVICE_CLASS_RNDIS_PACKET_BU… in _ux_device_class_rndis_bulkout_thread()
[all …]
Dux_device_class_cdc_ecm_bulkout_thread.c105 NX_PACKET *packet; in _ux_device_class_cdc_ecm_bulkout_thread() local
156 status = nx_packet_allocate(cdc_ecm -> ux_slave_class_cdc_ecm_packet_pool, &packet, in _ux_device_class_cdc_ecm_bulkout_thread()
170 cdc_ecm -> ux_slave_class_cdc_ecm_receive_queue = packet; in _ux_device_class_cdc_ecm_bulkout_thread()
173 packet -> nx_packet_queue_next = UX_NULL; in _ux_device_class_cdc_ecm_bulkout_thread()
178 …transfer_request -> ux_slave_transfer_request_data_pointer = packet -> nx_packet_prepend_ptr + siz… in _ux_device_class_cdc_ecm_bulkout_thread()
180packet -> nx_packet_pool_owner -> nx_packet_pool_payload_size - sizeof(USHORT), in _ux_device_class_cdc_ecm_bulkout_thread()
181packet -> nx_packet_pool_owner -> nx_packet_pool_payload_size - sizeof(USHORT)); in _ux_device_class_cdc_ecm_bulkout_thread()
198 packet -> nx_packet_prepend_ptr += sizeof(USHORT); in _ux_device_class_cdc_ecm_bulkout_thread()
199 packet -> nx_packet_append_ptr += sizeof(USHORT); in _ux_device_class_cdc_ecm_bulkout_thread()
204packet -> nx_packet_length = transfer_request -> ux_slave_transfer_request_actual_length; in _ux_device_class_cdc_ecm_bulkout_thread()
[all …]
Dux_device_class_cdc_ecm_write.c80 UINT _ux_device_class_cdc_ecm_write(VOID *cdc_ecm_class, NX_PACKET *packet) in _ux_device_class_cdc_ecm_write() argument
84 UX_PARAMETER_NOT_USED(packet); in _ux_device_class_cdc_ecm_write()
105 cdc_ecm -> ux_slave_class_cdc_ecm_xmit_queue = packet; in _ux_device_class_cdc_ecm_write()
110 cdc_ecm -> ux_slave_class_cdc_ecm_xmit_queue_tail -> nx_packet_queue_next = packet; in _ux_device_class_cdc_ecm_write()
113 cdc_ecm -> ux_slave_class_cdc_ecm_xmit_queue_tail = packet; in _ux_device_class_cdc_ecm_write()
116 packet -> nx_packet_queue_next = NX_NULL; in _ux_device_class_cdc_ecm_write()
Dux_device_class_rndis_write.c80 UINT _ux_device_class_rndis_write(VOID *rndis_class, NX_PACKET *packet) in _ux_device_class_rndis_write() argument
84 UX_PARAMETER_NOT_USED(packet); in _ux_device_class_rndis_write()
102 rndis -> ux_slave_class_rndis_xmit_queue = packet; in _ux_device_class_rndis_write()
125 current_packet -> nx_packet_queue_next = packet; in _ux_device_class_rndis_write()
133 packet -> nx_packet_queue_next = NX_NULL; in _ux_device_class_rndis_write()
Dux_device_class_rndis_bulkin_thread.c110 NX_PACKET *packet; in _ux_device_class_rndis_bulkin_thread() local
200 &packet, UX_DEVICE_CLASS_RNDIS_PACKET_HEADER_LENGTH, in _ux_device_class_rndis_bulkin_thread()
204packet -> nx_packet_append_ptr = packet -> nx_packet_prepend_ptr + UX_DEVICE_CLASS_RNDIS_PACKET_HE… in _ux_device_class_rndis_bulkin_thread()
216 packet -> nx_packet_append_ptr, in _ux_device_class_rndis_bulkin_thread()
220 packet -> nx_packet_length = copied; in _ux_device_class_rndis_bulkin_thread()
227 current_packet = packet; in _ux_device_class_rndis_bulkin_thread()
Dux_device_class_cdc_ecm_bulkin_thread.c108 NX_PACKET *packet; in _ux_device_class_cdc_ecm_bulkin_thread() local
179 … status = nx_packet_allocate(cdc_ecm -> ux_slave_class_cdc_ecm_packet_pool, &packet, in _ux_device_class_cdc_ecm_bulkin_thread()
186 packet -> nx_packet_prepend_ptr, in _ux_device_class_cdc_ecm_bulkin_thread()
190packet -> nx_packet_length = current_packet -> nx_packet_length; in _ux_device_class_cdc_ecm_bulkin_thread()
196 current_packet = packet; in _ux_device_class_cdc_ecm_bulkin_thread()
/USBX-v6.2.1/test/regression/
Dusbx_ux_device_class_cdc_ecm_bulkin_thread_test.c77 NX_PACKET packet = {0}; in post_init_host() local
80 packet.nx_packet_prepend_ptr = buffer; in post_init_host()
105 packet.nx_packet_length = 1 + UX_SLAVE_REQUEST_DATA_MAX_LENGTH; in post_init_host()
106 ux_device_class_cdc_ecm_write(cdc_ecm_device, &packet); in post_init_host()
115 packet.nx_packet_length = 1; in post_init_host()
116 ux_device_class_cdc_ecm_write(cdc_ecm_device, &packet); in post_init_host()
127 packet.nx_packet_length = 1; in post_init_host()
128 ux_device_class_cdc_ecm_write(cdc_ecm_device, &packet); in post_init_host()
134 cdc_ecm_device -> ux_slave_class_cdc_ecm_xmit_queue = &packet; in post_init_host()
137 cdc_ecm_device -> ux_slave_class_cdc_ecm_xmit_queue = &packet; in post_init_host()
Dusbx_msrc_80947_device_cdc_ecm_rx_length_less_than_14.c26 NX_PACKET *packet; in msrc_8947_test() local
37 …UX_TEST_CHECK_SUCCESS(nx_packet_allocate(packet_pool, &packet, 20, UX_MS_TO_TICK(UX_HOST_CLASS_CDC… in msrc_8947_test()
38 *packet->nx_packet_append_ptr ++= 0; packet->nx_packet_length = 1; in msrc_8947_test()
39 UX_TEST_CHECK_SUCCESS(_ux_host_class_cdc_ecm_write(cdc_ecm_host, packet)); in msrc_8947_test()
Dusbx_msrc_81024_host_cdc_ecm_rx_length_less_than_14.c26 NX_PACKET *packet; in msrc_81024_test() local
37 …UX_TEST_CHECK_SUCCESS(nx_packet_allocate(packet_pool, &packet, 20, UX_MS_TO_TICK(UX_HOST_CLASS_CDC… in msrc_81024_test()
38 *packet->nx_packet_append_ptr ++= 0; packet->nx_packet_length = 1; in msrc_81024_test()
39 UX_TEST_CHECK_SUCCESS(_ux_device_class_cdc_ecm_write(cdc_ecm_device, packet)); in msrc_81024_test()
Dusbx_msrc_80991_device_rndis_rx_length_less_than_14_test.c469 NX_PACKET *packet; in msrc_80991_test() local
480 …UX_TEST_CHECK_SUCCESS(nx_packet_allocate(packet_pool, &packet, 20, UX_MS_TO_TICK(UX_HOST_CLASS_CDC… in msrc_80991_test()
481 *packet->nx_packet_append_ptr ++= 0; packet->nx_packet_length = 1; in msrc_80991_test()
482 UX_TEST_CHECK_SUCCESS(_ux_host_class_cdc_ecm_write(cdc_ecm_host, packet)); in msrc_80991_test()
/USBX-v6.2.1/common/usbx_host_classes/inc/
Dux_host_class_cdc_ecm.h333 UINT _ux_host_class_cdc_ecm_write(VOID *cdc_ecm_class, NX_PACKET *packet);
Dux_host_class_asix.h470 UINT _ux_host_class_asix_write(VOID *asix_class, NX_PACKET *packet);
/USBX-v6.2.1/docs/
Drevision_history.txt36 … made CDC-ECM packet allocation timeout configurable (for debug purposes),
118 ux_device_class_cdc_ecm.h Added timeout for packet allocation,
125 ux_device_class_cdc_ecm_bulkin_thread.c Added packet length check,
128 ux_device_class_cdc_ecm_bulkout_thread.c Added check for packet pool shortage,
129 … added packet release upon transfer error,
144 ux_device_class_rndis.h Added packet allocation timeout value,
149 ux_device_class_rndis_bulkout_thread.c Added check for packet pool shortage,
150 … added packet release upon transfer error,
151 … added check if packet size is at least RNDIS header size,
152 … added check if packet length in RNDIS header is correct,
[all …]
/USBX-v6.2.1/common/usbx_device_classes/inc/
Dux_device_class_cdc_ecm.h432 UINT _ux_device_class_cdc_ecm_write(VOID *cdc_ecm_class, NX_PACKET *packet);
Dux_device_class_rndis.h658 UINT _ux_device_class_rndis_write(VOID *rndis_class, NX_PACKET *packet);