Lines Matching refs:nc
277 struct net_conf *nc; in drbd_alloc_pages() local
282 nc = rcu_dereference(peer_device->connection->net_conf); in drbd_alloc_pages()
283 mxb = nc ? nc->max_buffers : 1000000; in drbd_alloc_pages()
604 struct net_conf *nc; in drbd_try_connect() local
610 nc = rcu_dereference(connection->net_conf); in drbd_try_connect()
611 if (!nc) { in drbd_try_connect()
615 sndbuf_size = nc->sndbuf_size; in drbd_try_connect()
616 rcvbuf_size = nc->rcvbuf_size; in drbd_try_connect()
617 connect_int = nc->connect_int; in drbd_try_connect()
710 struct net_conf *nc; in prepare_listen_socket() local
714 nc = rcu_dereference(connection->net_conf); in prepare_listen_socket()
715 if (!nc) { in prepare_listen_socket()
719 sndbuf_size = nc->sndbuf_size; in prepare_listen_socket()
720 rcvbuf_size = nc->rcvbuf_size; in prepare_listen_socket()
780 struct net_conf *nc; in drbd_wait_for_connect() local
783 nc = rcu_dereference(connection->net_conf); in drbd_wait_for_connect()
784 if (!nc) { in drbd_wait_for_connect()
788 connect_int = nc->connect_int; in drbd_wait_for_connect()
827 struct net_conf *nc; in receive_first_packet() local
831 nc = rcu_dereference(connection->net_conf); in receive_first_packet()
832 if (!nc) { in receive_first_packet()
836 sock->sk->sk_rcvtimeo = nc->ping_timeo * 4 * HZ / 10; in receive_first_packet()
878 struct net_conf *nc; in connection_established() local
886 nc = rcu_dereference(connection->net_conf); in connection_established()
887 timeout = (nc->sock_check_timeo ?: nc->ping_timeo) * HZ / 10; in connection_established()
937 struct net_conf *nc; in conn_connect() local
1051 nc = rcu_dereference(connection->net_conf); in conn_connect()
1054 sock.socket->sk->sk_rcvtimeo = nc->ping_timeo*4*HZ/10; in conn_connect()
1056 msock.socket->sk->sk_rcvtimeo = nc->ping_int*HZ; in conn_connect()
1057 timeout = nc->timeout * HZ / 10; in conn_connect()
1058 discard_my_data = nc->discard_my_data; in conn_connect()
2473 struct net_conf *nc; in receive_Data() local
2538 nc = rcu_dereference(peer_device->connection->net_conf); in receive_Data()
2539 tp = nc->two_primaries; in receive_Data()
2541 switch (nc->wire_protocol) { in receive_Data()
3366 struct net_conf *nc; in drbd_sync_handshake() local
3417 nc = rcu_dereference(peer_device->connection->net_conf); in drbd_sync_handshake()
3419 if (hg == 100 || (hg == -100 && nc->always_asbp)) { in drbd_sync_handshake()
3458 rr_conflict = nc->rr_conflict; in drbd_sync_handshake()
3459 tentative = nc->tentative; in drbd_sync_handshake()
3543 struct net_conf *nc, *old_net_conf, *new_net_conf = NULL; in receive_protocol() local
3574 nc = rcu_dereference(connection->net_conf); in receive_protocol()
3576 if (p_proto != nc->wire_protocol) { in receive_protocol()
3581 if (convert_after_sb(p_after_sb_0p) != nc->after_sb_0p) { in receive_protocol()
3586 if (convert_after_sb(p_after_sb_1p) != nc->after_sb_1p) { in receive_protocol()
3591 if (convert_after_sb(p_after_sb_2p) != nc->after_sb_2p) { in receive_protocol()
3596 if (p_discard_my_data && nc->discard_my_data) { in receive_protocol()
3601 if (p_two_primaries != nc->two_primaries) { in receive_protocol()
3606 if (strcmp(integrity_alg, nc->integrity_alg)) { in receive_protocol()
5244 struct net_conf *nc; in drbd_do_auth() local
5250 nc = rcu_dereference(connection->net_conf); in drbd_do_auth()
5251 key_len = strlen(nc->shared_secret); in drbd_do_auth()
5252 memcpy(secret, nc->shared_secret, key_len); in drbd_do_auth()
5779 struct net_conf *nc; in set_rcvtimeo() local
5782 nc = rcu_dereference(connection->net_conf); in set_rcvtimeo()
5783 t = ping_timeout ? nc->ping_timeo : nc->ping_int; in set_rcvtimeo()
5968 struct net_conf *nc; in drbd_send_acks_wf() local
5972 nc = rcu_dereference(connection->net_conf); in drbd_send_acks_wf()
5973 tcp_cork = nc->tcp_cork; in drbd_send_acks_wf()