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()
574 struct net_conf *nc; in drbd_try_connect() local
580 nc = rcu_dereference(connection->net_conf); in drbd_try_connect()
581 if (!nc) { in drbd_try_connect()
585 sndbuf_size = nc->sndbuf_size; in drbd_try_connect()
586 rcvbuf_size = nc->rcvbuf_size; in drbd_try_connect()
587 connect_int = nc->connect_int; in drbd_try_connect()
680 struct net_conf *nc; in prepare_listen_socket() local
684 nc = rcu_dereference(connection->net_conf); in prepare_listen_socket()
685 if (!nc) { in prepare_listen_socket()
689 sndbuf_size = nc->sndbuf_size; in prepare_listen_socket()
690 rcvbuf_size = nc->rcvbuf_size; in prepare_listen_socket()
750 struct net_conf *nc; in drbd_wait_for_connect() local
753 nc = rcu_dereference(connection->net_conf); in drbd_wait_for_connect()
754 if (!nc) { in drbd_wait_for_connect()
758 connect_int = nc->connect_int; in drbd_wait_for_connect()
797 struct net_conf *nc; in receive_first_packet() local
801 nc = rcu_dereference(connection->net_conf); in receive_first_packet()
802 if (!nc) { in receive_first_packet()
806 sock->sk->sk_rcvtimeo = nc->ping_timeo * 4 * HZ / 10; in receive_first_packet()
848 struct net_conf *nc; in connection_established() local
856 nc = rcu_dereference(connection->net_conf); in connection_established()
857 timeout = (nc->sock_check_timeo ?: nc->ping_timeo) * HZ / 10; in connection_established()
907 struct net_conf *nc; in conn_connect() local
1021 nc = rcu_dereference(connection->net_conf); in conn_connect()
1024 sock.socket->sk->sk_rcvtimeo = nc->ping_timeo*4*HZ/10; in conn_connect()
1026 msock.socket->sk->sk_rcvtimeo = nc->ping_int*HZ; in conn_connect()
1027 timeout = nc->timeout * HZ / 10; in conn_connect()
1028 discard_my_data = nc->discard_my_data; in conn_connect()
2275 struct net_conf *nc; in receive_Data() local
2343 nc = rcu_dereference(peer_device->connection->net_conf); in receive_Data()
2344 tp = nc->two_primaries; in receive_Data()
2346 switch (nc->wire_protocol) { in receive_Data()
3128 struct net_conf *nc; in drbd_sync_handshake() local
3170 nc = rcu_dereference(peer_device->connection->net_conf); in drbd_sync_handshake()
3171 always_asbp = nc->always_asbp; in drbd_sync_handshake()
3172 rr_conflict = nc->rr_conflict; in drbd_sync_handshake()
3173 tentative = nc->tentative; in drbd_sync_handshake()
3297 struct net_conf *nc, *old_net_conf, *new_net_conf = NULL; in receive_protocol() local
3328 nc = rcu_dereference(connection->net_conf); in receive_protocol()
3330 if (p_proto != nc->wire_protocol) { in receive_protocol()
3335 if (convert_after_sb(p_after_sb_0p) != nc->after_sb_0p) { in receive_protocol()
3340 if (convert_after_sb(p_after_sb_1p) != nc->after_sb_1p) { in receive_protocol()
3345 if (convert_after_sb(p_after_sb_2p) != nc->after_sb_2p) { in receive_protocol()
3350 if (p_discard_my_data && nc->discard_my_data) { in receive_protocol()
3355 if (p_two_primaries != nc->two_primaries) { in receive_protocol()
3360 if (strcmp(integrity_alg, nc->integrity_alg)) { in receive_protocol()
4927 struct net_conf *nc; in drbd_do_auth() local
4933 nc = rcu_dereference(connection->net_conf); in drbd_do_auth()
4934 key_len = strlen(nc->shared_secret); in drbd_do_auth()
4935 memcpy(secret, nc->shared_secret, key_len); in drbd_do_auth()
5527 struct net_conf *nc; in drbd_asender() local
5539 nc = rcu_dereference(connection->net_conf); in drbd_asender()
5540 ping_timeo = nc->ping_timeo; in drbd_asender()
5541 tcp_cork = nc->tcp_cork; in drbd_asender()
5542 ping_int = nc->ping_int; in drbd_asender()