Lines Matching refs:nc
695 struct net_conf *nc; in drbd_send_sync_param() local
704 nc = rcu_dereference(peer_device->connection->net_conf); in drbd_send_sync_param()
708 + strlen(nc->verify_alg) + 1 in drbd_send_sync_param()
735 strcpy(p->verify_alg, nc->verify_alg); in drbd_send_sync_param()
737 strcpy(p->csums_alg, nc->csums_alg); in drbd_send_sync_param()
747 struct net_conf *nc; in __drbd_send_protocol() local
756 nc = rcu_dereference(connection->net_conf); in __drbd_send_protocol()
758 if (nc->tentative && connection->agreed_pro_version < 92) { in __drbd_send_protocol()
766 size += strlen(nc->integrity_alg) + 1; in __drbd_send_protocol()
768 p->protocol = cpu_to_be32(nc->wire_protocol); in __drbd_send_protocol()
769 p->after_sb_0p = cpu_to_be32(nc->after_sb_0p); in __drbd_send_protocol()
770 p->after_sb_1p = cpu_to_be32(nc->after_sb_1p); in __drbd_send_protocol()
771 p->after_sb_2p = cpu_to_be32(nc->after_sb_2p); in __drbd_send_protocol()
772 p->two_primaries = cpu_to_be32(nc->two_primaries); in __drbd_send_protocol()
774 if (nc->discard_my_data) in __drbd_send_protocol()
776 if (nc->tentative) in __drbd_send_protocol()
781 strcpy(p->integrity_alg, nc->integrity_alg); in __drbd_send_protocol()
3652 struct net_conf *nc; in drbd_wait_misc() local
3657 nc = rcu_dereference(first_peer_device(device)->connection->net_conf); in drbd_wait_misc()
3658 if (!nc) { in drbd_wait_misc()
3662 timeout = nc->ko_count ? nc->timeout * HZ / 10 * nc->ko_count : MAX_SCHEDULE_TIMEOUT; in drbd_wait_misc()