Lines Matching refs:socket_ptr
71 static UINT _nx_udp_socket_driver_unbind(NX_UDP_SOCKET *socket_ptr) in _nx_udp_socket_driver_unbind() argument
79 ip_ptr = socket_ptr -> nx_udp_socket_ip_ptr; in _nx_udp_socket_driver_unbind()
107 socket_ptr, in _nx_udp_socket_driver_unbind()
110 socket_ptr -> nx_udp_socket_port, in _nx_udp_socket_driver_unbind()
167 UINT _nx_udp_socket_unbind(NX_UDP_SOCKET *socket_ptr) in _nx_udp_socket_unbind() argument
181 ip_ptr = socket_ptr -> nx_udp_socket_ip_ptr; in _nx_udp_socket_unbind()
184 …NX_TRACE_IN_LINE_INSERT(NX_TRACE_UDP_SOCKET_UNBIND, ip_ptr, socket_ptr, socket_ptr -> nx_udp_socke… in _nx_udp_socket_unbind()
191 if (!socket_ptr -> nx_udp_socket_bound_next) in _nx_udp_socket_unbind()
197 if (socket_ptr -> nx_udp_socket_bind_in_progress) in _nx_udp_socket_unbind()
201 _nx_udp_bind_cleanup(socket_ptr -> nx_udp_socket_bind_in_progress NX_CLEANUP_ARGUMENT); in _nx_udp_socket_unbind()
224 port = socket_ptr -> nx_udp_socket_port; in _nx_udp_socket_unbind()
230 _nx_udp_socket_driver_unbind(socket_ptr); in _nx_udp_socket_unbind()
237 if (socket_ptr -> nx_udp_socket_bound_next == socket_ptr) in _nx_udp_socket_unbind()
244 socket_ptr -> nx_udp_socket_bound_next = NX_NULL; in _nx_udp_socket_unbind()
252 (socket_ptr -> nx_udp_socket_bound_next) -> nx_udp_socket_bound_previous = in _nx_udp_socket_unbind()
253 socket_ptr -> nx_udp_socket_bound_previous; in _nx_udp_socket_unbind()
254 (socket_ptr -> nx_udp_socket_bound_previous) -> nx_udp_socket_bound_next = in _nx_udp_socket_unbind()
255 socket_ptr -> nx_udp_socket_bound_next; in _nx_udp_socket_unbind()
259 if (ip_ptr -> nx_ip_udp_port_table[index] == socket_ptr) in _nx_udp_socket_unbind()
263 ip_ptr -> nx_ip_udp_port_table[index] = socket_ptr -> nx_udp_socket_bound_next; in _nx_udp_socket_unbind()
267 socket_ptr -> nx_udp_socket_bound_next = NX_NULL; in _nx_udp_socket_unbind()
275 if (socket_ptr -> nx_udp_socket_receive_count) in _nx_udp_socket_unbind()
279 packet_ptr = socket_ptr -> nx_udp_socket_receive_head; in _nx_udp_socket_unbind()
282 socket_ptr -> nx_udp_socket_receive_head = NX_NULL; in _nx_udp_socket_unbind()
283 socket_ptr -> nx_udp_socket_receive_tail = NX_NULL; in _nx_udp_socket_unbind()
286 while (socket_ptr -> nx_udp_socket_receive_count) in _nx_udp_socket_unbind()
299 socket_ptr -> nx_udp_socket_receive_count--; in _nx_udp_socket_unbind()
302 else if (socket_ptr -> nx_udp_socket_receive_suspended_count) in _nx_udp_socket_unbind()
308 thread_ptr = socket_ptr -> nx_udp_socket_receive_suspension_list; in _nx_udp_socket_unbind()
311 socket_ptr -> nx_udp_socket_receive_suspension_list = NX_NULL; in _nx_udp_socket_unbind()
315 while (socket_ptr -> nx_udp_socket_receive_suspended_count) in _nx_udp_socket_unbind()
341 socket_ptr -> nx_udp_socket_receive_suspended_count--; in _nx_udp_socket_unbind()
350 thread_ptr = socket_ptr -> nx_udp_socket_bind_suspension_list; in _nx_udp_socket_unbind()
363 socket_ptr -> nx_udp_socket_bind_suspension_list = NX_NULL; in _nx_udp_socket_unbind()
371 … socket_ptr -> nx_udp_socket_bind_suspension_list = thread_ptr -> tx_thread_suspended_next; in _nx_udp_socket_unbind()
381 socket_ptr -> nx_udp_socket_bind_suspended_count--; in _nx_udp_socket_unbind()
391 socket_ptr -> nx_udp_socket_bind_suspension_list; in _nx_udp_socket_unbind()
392 socket_ptr -> nx_udp_socket_bind_suspension_list = NX_NULL; in _nx_udp_socket_unbind()