Lines Matching refs:tcp
16 #include <linux/tcp.h>
558 struct tcp_handle *tcp = NULL;
564 tcp = conn_impl->connect_handle;
565 hmdfs_err("Failed to send handshake: err = %d, fd = %d", err, tcp->fd);
596 struct tcp_handle *tcp = NULL;
604 tcp = conn_impl->connect_handle;
605 hmdfs_info("fd %d to working", tcp->fd);
631 "Recved handshake request: device_id = %llu, head->len = %d, tcp->fd = %d",
641 "Recved handshake response: device_id = %llu, cmd->status = %hhu, tcp->fd = %d",
689 hmdfs_err("protocol negotiation failed, remote device_id = %llu, tcp->fd = %d",
724 struct tcp_handle *tcp = conn->connect_handle;
726 if (conn->type != CONNECT_TYPE_TCP || !tcp)
746 struct tcp_handle *tcp = NULL;
755 tcp = conn->connect_handle;
757 // need to check and test: fput(tcp->sock->file);
758 if (tcp && tcp->sock) {
759 hmdfs_info("connection release: fd = %d, refcount %ld", tcp->fd,
760 file_count(tcp->sock->file));
761 sockfd_put(tcp->sock);
763 if (tcp && tcp->recv_cache)
764 kmem_cache_destroy(tcp->recv_cache);
777 kfree(tcp);
826 struct tcp_handle *tcp = NULL;
831 tcp = con->connect_handle;
833 count, node->device_id, tcp ? tcp->fd : -1,
856 struct tcp_handle *tcp = NULL;
873 tcp = conn_impl->connect_handle;
874 if (tcp && tcp->sock) {
875 kernel_sock_shutdown(tcp->sock, SHUT_RDWR);
877 tcp->fd, file_count(tcp->sock->file));
879 if (tcp)
880 tcp->fd = INVALID_SOCKET_FD;
882 tcp_close_socket(tcp);
972 struct tcp_handle *tcp = NULL;
982 tcp = (struct tcp_handle *)(conn_impl->connect_handle);
983 tcp_sock_set_quickack(tcp->sock->sk, option);