Lines Matching refs:nc
731 struct net_conf *nc; in drbd_send_sync_param() local
740 nc = rcu_dereference(peer_device->connection->net_conf); in drbd_send_sync_param()
744 + strlen(nc->verify_alg) + 1 in drbd_send_sync_param()
770 strcpy(p->verify_alg, nc->verify_alg); in drbd_send_sync_param()
772 strcpy(p->csums_alg, nc->csums_alg); in drbd_send_sync_param()
782 struct net_conf *nc; in __drbd_send_protocol() local
791 nc = rcu_dereference(connection->net_conf); in __drbd_send_protocol()
793 if (nc->tentative && connection->agreed_pro_version < 92) { in __drbd_send_protocol()
802 size += strlen(nc->integrity_alg) + 1; in __drbd_send_protocol()
804 p->protocol = cpu_to_be32(nc->wire_protocol); in __drbd_send_protocol()
805 p->after_sb_0p = cpu_to_be32(nc->after_sb_0p); in __drbd_send_protocol()
806 p->after_sb_1p = cpu_to_be32(nc->after_sb_1p); in __drbd_send_protocol()
807 p->after_sb_2p = cpu_to_be32(nc->after_sb_2p); in __drbd_send_protocol()
808 p->two_primaries = cpu_to_be32(nc->two_primaries); in __drbd_send_protocol()
810 if (nc->discard_my_data) in __drbd_send_protocol()
812 if (nc->tentative) in __drbd_send_protocol()
817 strcpy(p->integrity_alg, nc->integrity_alg); in __drbd_send_protocol()
3723 struct net_conf *nc; in drbd_wait_misc() local
3728 nc = rcu_dereference(first_peer_device(device)->connection->net_conf); in drbd_wait_misc()
3729 if (!nc) { in drbd_wait_misc()
3733 timeout = nc->ko_count ? nc->timeout * HZ / 10 * nc->ko_count : MAX_SCHEDULE_TIMEOUT; in drbd_wait_misc()