Lines Matching refs:nc
256 struct net_conf *nc; in drbd_alloc_pages() local
261 nc = rcu_dereference(peer_device->connection->net_conf); in drbd_alloc_pages()
262 mxb = nc ? nc->max_buffers : 1000000; in drbd_alloc_pages()
573 struct net_conf *nc; in drbd_try_connect() local
579 nc = rcu_dereference(connection->net_conf); in drbd_try_connect()
580 if (!nc) { in drbd_try_connect()
584 sndbuf_size = nc->sndbuf_size; in drbd_try_connect()
585 rcvbuf_size = nc->rcvbuf_size; in drbd_try_connect()
586 connect_int = nc->connect_int; in drbd_try_connect()
679 struct net_conf *nc; in prepare_listen_socket() local
683 nc = rcu_dereference(connection->net_conf); in prepare_listen_socket()
684 if (!nc) { in prepare_listen_socket()
688 sndbuf_size = nc->sndbuf_size; in prepare_listen_socket()
689 rcvbuf_size = nc->rcvbuf_size; in prepare_listen_socket()
749 struct net_conf *nc; in drbd_wait_for_connect() local
752 nc = rcu_dereference(connection->net_conf); in drbd_wait_for_connect()
753 if (!nc) { in drbd_wait_for_connect()
757 connect_int = nc->connect_int; in drbd_wait_for_connect()
796 struct net_conf *nc; in receive_first_packet() local
800 nc = rcu_dereference(connection->net_conf); in receive_first_packet()
801 if (!nc) { in receive_first_packet()
805 sock->sk->sk_rcvtimeo = nc->ping_timeo * 4 * HZ / 10; in receive_first_packet()
847 struct net_conf *nc; in connection_established() local
855 nc = rcu_dereference(connection->net_conf); in connection_established()
856 timeout = (nc->sock_check_timeo ?: nc->ping_timeo) * HZ / 10; in connection_established()
906 struct net_conf *nc; in conn_connect() local
1020 nc = rcu_dereference(connection->net_conf); in conn_connect()
1023 sock.socket->sk->sk_rcvtimeo = nc->ping_timeo*4*HZ/10; in conn_connect()
1025 msock.socket->sk->sk_rcvtimeo = nc->ping_int*HZ; in conn_connect()
1026 timeout = nc->timeout * HZ / 10; in conn_connect()
1027 discard_my_data = nc->discard_my_data; in conn_connect()
2274 struct net_conf *nc; in receive_Data() local
2342 nc = rcu_dereference(peer_device->connection->net_conf); in receive_Data()
2343 tp = nc->two_primaries; in receive_Data()
2345 switch (nc->wire_protocol) { in receive_Data()
3127 struct net_conf *nc; in drbd_sync_handshake() local
3169 nc = rcu_dereference(peer_device->connection->net_conf); in drbd_sync_handshake()
3171 if (hg == 100 || (hg == -100 && nc->always_asbp)) { in drbd_sync_handshake()
3210 rr_conflict = nc->rr_conflict; in drbd_sync_handshake()
3211 tentative = nc->tentative; in drbd_sync_handshake()
3295 struct net_conf *nc, *old_net_conf, *new_net_conf = NULL; in receive_protocol() local
3326 nc = rcu_dereference(connection->net_conf); in receive_protocol()
3328 if (p_proto != nc->wire_protocol) { in receive_protocol()
3333 if (convert_after_sb(p_after_sb_0p) != nc->after_sb_0p) { in receive_protocol()
3338 if (convert_after_sb(p_after_sb_1p) != nc->after_sb_1p) { in receive_protocol()
3343 if (convert_after_sb(p_after_sb_2p) != nc->after_sb_2p) { in receive_protocol()
3348 if (p_discard_my_data && nc->discard_my_data) { in receive_protocol()
3353 if (p_two_primaries != nc->two_primaries) { in receive_protocol()
3358 if (strcmp(integrity_alg, nc->integrity_alg)) { in receive_protocol()
4906 struct net_conf *nc; in drbd_do_auth() local
4912 nc = rcu_dereference(connection->net_conf); in drbd_do_auth()
4913 key_len = strlen(nc->shared_secret); in drbd_do_auth()
4914 memcpy(secret, nc->shared_secret, key_len); in drbd_do_auth()
5506 struct net_conf *nc; in drbd_asender() local
5518 nc = rcu_dereference(connection->net_conf); in drbd_asender()
5519 ping_timeo = nc->ping_timeo; in drbd_asender()
5520 tcp_cork = nc->tcp_cork; in drbd_asender()
5521 ping_int = nc->ping_int; in drbd_asender()