• Home
  • Raw
  • Download

Lines Matching refs:nc

266 	struct net_conf *nc;  in drbd_alloc_pages()  local
271 nc = rcu_dereference(peer_device->connection->net_conf); in drbd_alloc_pages()
272 mxb = nc ? nc->max_buffers : 1000000; in drbd_alloc_pages()
593 struct net_conf *nc; in drbd_try_connect() local
599 nc = rcu_dereference(connection->net_conf); in drbd_try_connect()
600 if (!nc) { in drbd_try_connect()
604 sndbuf_size = nc->sndbuf_size; in drbd_try_connect()
605 rcvbuf_size = nc->rcvbuf_size; in drbd_try_connect()
606 connect_int = nc->connect_int; in drbd_try_connect()
699 struct net_conf *nc; in prepare_listen_socket() local
703 nc = rcu_dereference(connection->net_conf); in prepare_listen_socket()
704 if (!nc) { in prepare_listen_socket()
708 sndbuf_size = nc->sndbuf_size; in prepare_listen_socket()
709 rcvbuf_size = nc->rcvbuf_size; in prepare_listen_socket()
769 struct net_conf *nc; in drbd_wait_for_connect() local
772 nc = rcu_dereference(connection->net_conf); in drbd_wait_for_connect()
773 if (!nc) { in drbd_wait_for_connect()
777 connect_int = nc->connect_int; in drbd_wait_for_connect()
816 struct net_conf *nc; in receive_first_packet() local
820 nc = rcu_dereference(connection->net_conf); in receive_first_packet()
821 if (!nc) { in receive_first_packet()
825 sock->sk->sk_rcvtimeo = nc->ping_timeo * 4 * HZ / 10; in receive_first_packet()
867 struct net_conf *nc; in connection_established() local
875 nc = rcu_dereference(connection->net_conf); in connection_established()
876 timeout = (nc->sock_check_timeo ?: nc->ping_timeo) * HZ / 10; in connection_established()
926 struct net_conf *nc; in conn_connect() local
1040 nc = rcu_dereference(connection->net_conf); in conn_connect()
1043 sock.socket->sk->sk_rcvtimeo = nc->ping_timeo*4*HZ/10; in conn_connect()
1045 msock.socket->sk->sk_rcvtimeo = nc->ping_int*HZ; in conn_connect()
1046 timeout = nc->timeout * HZ / 10; in conn_connect()
1047 discard_my_data = nc->discard_my_data; in conn_connect()
2590 struct net_conf *nc; in receive_Data() local
2666 nc = rcu_dereference(peer_device->connection->net_conf); in receive_Data()
2667 tp = nc->two_primaries; in receive_Data()
2669 switch (nc->wire_protocol) { in receive_Data()
3494 struct net_conf *nc; in drbd_sync_handshake() local
3545 nc = rcu_dereference(peer_device->connection->net_conf); in drbd_sync_handshake()
3546 always_asbp = nc->always_asbp; in drbd_sync_handshake()
3547 rr_conflict = nc->rr_conflict; in drbd_sync_handshake()
3548 tentative = nc->tentative; in drbd_sync_handshake()
3672 struct net_conf *nc, *old_net_conf, *new_net_conf = NULL; in receive_protocol() local
3703 nc = rcu_dereference(connection->net_conf); in receive_protocol()
3705 if (p_proto != nc->wire_protocol) { in receive_protocol()
3710 if (convert_after_sb(p_after_sb_0p) != nc->after_sb_0p) { in receive_protocol()
3715 if (convert_after_sb(p_after_sb_1p) != nc->after_sb_1p) { in receive_protocol()
3720 if (convert_after_sb(p_after_sb_2p) != nc->after_sb_2p) { in receive_protocol()
3725 if (p_discard_my_data && nc->discard_my_data) { in receive_protocol()
3730 if (p_two_primaries != nc->two_primaries) { in receive_protocol()
3735 if (strcmp(integrity_alg, nc->integrity_alg)) { in receive_protocol()
5422 struct net_conf *nc; in drbd_do_auth() local
5428 nc = rcu_dereference(connection->net_conf); in drbd_do_auth()
5429 key_len = strlen(nc->shared_secret); in drbd_do_auth()
5430 memcpy(secret, nc->shared_secret, key_len); in drbd_do_auth()
5966 struct net_conf *nc; in set_rcvtimeo() local
5969 nc = rcu_dereference(connection->net_conf); in set_rcvtimeo()
5970 t = ping_timeout ? nc->ping_timeo : nc->ping_int; in set_rcvtimeo()
6152 struct net_conf *nc; in drbd_send_acks_wf() local
6156 nc = rcu_dereference(connection->net_conf); in drbd_send_acks_wf()
6157 tcp_cork = nc->tcp_cork; in drbd_send_acks_wf()