Lines Matching refs:connection

108 #define __drbd_printk_connection(level, connection, fmt, args...) \  argument
109 printk(level "drbd %s: " fmt, (connection)->resource->name, ## args)
248 extern unsigned int drbd_header_size(struct drbd_connection *connection);
265 struct drbd_connection *connection; member
385 struct drbd_connection *connection; member
812 struct drbd_connection *connection; member
1009 struct drbd_connection *connection; member
1031 #define for_each_connection(connection, resource) \ argument
1032 list_for_each_entry(connection, &resource->connections, connections)
1034 #define for_each_connection_rcu(connection, resource) \ argument
1035 list_for_each_entry_rcu(connection, &resource->connections, connections)
1037 #define for_each_connection_safe(connection, tmp, resource) \ argument
1038 list_for_each_entry_safe(connection, tmp, &resource->connections, connections)
1076 extern void drbd_free_sock(struct drbd_connection *connection);
1077 extern int drbd_send(struct drbd_connection *connection, struct socket *sock,
1082 extern int __drbd_send_protocol(struct drbd_connection *connection, enum drbd_packet cmd);
1083 extern int drbd_send_protocol(struct drbd_connection *connection);
1091 extern void drbd_send_b_ack(struct drbd_connection *connection, u32 barrier_nr,
1114 extern void conn_send_sr_reply(struct drbd_connection *connection, enum drbd_state_rv retcode);
1119 extern void conn_md_sync(struct drbd_connection *connection);
1428 extern int conn_lowest_minor(struct drbd_connection *connection);
1443 extern void conn_free_crypto(struct drbd_connection *connection);
1477 extern bool conn_try_outdate_peer(struct drbd_connection *connection);
1478 extern void conn_try_outdate_peer_async(struct drbd_connection *connection);
1929 struct drbd_connection *connection = in drbd_device_post_work() local
1930 first_peer_device(device)->connection; in drbd_device_post_work()
1931 struct drbd_work_queue *q = &connection->sender_work; in drbd_device_post_work()
1932 if (!test_and_set_bit(DEVICE_WORK_PENDING, &connection->flags)) in drbd_device_post_work()
1939 static inline void wake_asender(struct drbd_connection *connection) in wake_asender() argument
1941 if (test_bit(SIGNAL_ASENDER, &connection->flags)) in wake_asender()
1942 force_sig(DRBD_SIG, connection->asender.task); in wake_asender()
1945 static inline void request_ping(struct drbd_connection *connection) in request_ping() argument
1947 set_bit(SEND_PING, &connection->flags); in request_ping()
1948 wake_asender(connection); in request_ping()
1960 extern int drbd_send_ping(struct drbd_connection *connection);
1961 extern int drbd_send_ping_ack(struct drbd_connection *connection);
2142 nc = rcu_dereference(first_peer_device(device)->connection->net_conf); in drbd_get_max_buffers()
2185 if (first_peer_device(device)->connection->agreed_pro_version < 96) in drbd_state_is_stable()
2288 connection->sender_work, in dec_ap_bio()
2301 return first_peer_device(device)->connection->agreed_pro_version >= 97 && in verify_can_do_stop_sector()
2302 first_peer_device(device)->connection->agreed_pro_version != 100; in verify_can_do_stop_sector()