Lines Matching refs:nc
569 struct net_conf *nc; in drbd_set_role() local
637 nc = rcu_dereference(connection->net_conf); in drbd_set_role()
638 timeo = nc ? (nc->ping_timeo + 1) * HZ / 10 : 1; in drbd_set_role()
672 nc = connection->net_conf; in drbd_set_role()
673 if (nc) in drbd_set_role()
674 nc->discard_my_data = 0; /* without copy; single bit op is atomic */ in drbd_set_role()
1470 struct net_conf *nc; in drbd_adm_attach() local
1549 nc = rcu_dereference(connection->net_conf); in drbd_adm_attach()
1550 if (nc) { in drbd_adm_attach()
1551 if (new_disk_conf->fencing == FP_STONITH && nc->wire_protocol == DRBD_PROT_A) { in drbd_adm_attach()
2965 struct net_conf *nc; in nla_put_status_info() local
2967 nc = rcu_dereference(first_peer_device(device)->connection->net_conf); in nla_put_status_info()
2968 if (nc) in nla_put_status_info()
2969 err = net_conf_to_skb(skb, nc, exclude_sensitive); in nla_put_status_info()
3152 struct net_conf *nc; in get_one_status() local
3154 nc = rcu_dereference(connection->net_conf); in get_one_status()
3155 if (nc && net_conf_to_skb(skb, nc, 1) != 0) in get_one_status()