• Home
  • Raw
  • Download

Lines Matching refs:othercon

122 	struct connection *othercon;  member
608 if (con->othercon && and_other) { in close_connection()
610 close_connection(con->othercon, false, true, true); in close_connection()
789 struct connection *othercon = newcon->othercon; in tcp_accept_from_sock() local
791 if (!othercon) { in tcp_accept_from_sock()
792 othercon = kmem_cache_zalloc(con_cache, GFP_NOFS); in tcp_accept_from_sock()
793 if (!othercon) { in tcp_accept_from_sock()
799 othercon->nodeid = nodeid; in tcp_accept_from_sock()
800 othercon->rx_action = receive_from_sock; in tcp_accept_from_sock()
801 mutex_init(&othercon->sock_mutex); in tcp_accept_from_sock()
802 INIT_LIST_HEAD(&othercon->writequeue); in tcp_accept_from_sock()
803 spin_lock_init(&othercon->writequeue_lock); in tcp_accept_from_sock()
804 INIT_WORK(&othercon->swork, process_send_sockets); in tcp_accept_from_sock()
805 INIT_WORK(&othercon->rwork, process_recv_sockets); in tcp_accept_from_sock()
806 set_bit(CF_IS_OTHERCON, &othercon->flags); in tcp_accept_from_sock()
808 mutex_lock_nested(&othercon->sock_mutex, 2); in tcp_accept_from_sock()
809 if (!othercon->sock) { in tcp_accept_from_sock()
810 newcon->othercon = othercon; in tcp_accept_from_sock()
811 add_sock(newsock, othercon); in tcp_accept_from_sock()
812 addcon = othercon; in tcp_accept_from_sock()
813 mutex_unlock(&othercon->sock_mutex); in tcp_accept_from_sock()
818 mutex_unlock(&othercon->sock_mutex); in tcp_accept_from_sock()
909 struct connection *othercon = newcon->othercon; in sctp_accept_from_sock() local
911 if (!othercon) { in sctp_accept_from_sock()
912 othercon = kmem_cache_zalloc(con_cache, GFP_NOFS); in sctp_accept_from_sock()
913 if (!othercon) { in sctp_accept_from_sock()
919 othercon->nodeid = nodeid; in sctp_accept_from_sock()
920 othercon->rx_action = receive_from_sock; in sctp_accept_from_sock()
921 mutex_init(&othercon->sock_mutex); in sctp_accept_from_sock()
922 INIT_LIST_HEAD(&othercon->writequeue); in sctp_accept_from_sock()
923 spin_lock_init(&othercon->writequeue_lock); in sctp_accept_from_sock()
924 INIT_WORK(&othercon->swork, process_send_sockets); in sctp_accept_from_sock()
925 INIT_WORK(&othercon->rwork, process_recv_sockets); in sctp_accept_from_sock()
926 set_bit(CF_IS_OTHERCON, &othercon->flags); in sctp_accept_from_sock()
928 mutex_lock_nested(&othercon->sock_mutex, 2); in sctp_accept_from_sock()
929 if (!othercon->sock) { in sctp_accept_from_sock()
930 newcon->othercon = othercon; in sctp_accept_from_sock()
931 add_sock(newsock, othercon); in sctp_accept_from_sock()
932 addcon = othercon; in sctp_accept_from_sock()
933 mutex_unlock(&othercon->sock_mutex); in sctp_accept_from_sock()
937 mutex_unlock(&othercon->sock_mutex); in sctp_accept_from_sock()
1668 if (con->othercon && and_other) in _stop_conn()
1669 _stop_conn(con->othercon, false); in _stop_conn()
1681 if (con->othercon) in free_conn()
1682 kmem_cache_free(con_cache, con->othercon); in free_conn()
1710 if (con->othercon) { in work_flush()
1712 &con->othercon->flags); in work_flush()
1714 &con->othercon->flags); in work_flush()