Lines Matching refs:connection

109 #define __drbd_printk_connection(level, connection, fmt, args...) \  argument
110 printk(level "drbd %s: " fmt, (connection)->resource->name, ## args)
249 extern unsigned int drbd_header_size(struct drbd_connection *connection);
266 struct drbd_connection *connection; member
386 struct drbd_connection *connection; member
813 struct drbd_connection *connection; member
1010 struct drbd_connection *connection; member
1032 #define for_each_connection(connection, resource) \ argument
1033 list_for_each_entry(connection, &resource->connections, connections)
1035 #define for_each_connection_rcu(connection, resource) \ argument
1036 list_for_each_entry_rcu(connection, &resource->connections, connections)
1038 #define for_each_connection_safe(connection, tmp, resource) \ argument
1039 list_for_each_entry_safe(connection, tmp, &resource->connections, connections)
1077 extern void drbd_free_sock(struct drbd_connection *connection);
1078 extern int drbd_send(struct drbd_connection *connection, struct socket *sock,
1083 extern int __drbd_send_protocol(struct drbd_connection *connection, enum drbd_packet cmd);
1084 extern int drbd_send_protocol(struct drbd_connection *connection);
1092 extern void drbd_send_b_ack(struct drbd_connection *connection, u32 barrier_nr,
1115 extern void conn_send_sr_reply(struct drbd_connection *connection, enum drbd_state_rv retcode);
1120 extern void conn_md_sync(struct drbd_connection *connection);
1429 extern int conn_lowest_minor(struct drbd_connection *connection);
1444 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);
1930 struct drbd_connection *connection = in drbd_device_post_work() local
1931 first_peer_device(device)->connection; in drbd_device_post_work()
1932 struct drbd_work_queue *q = &connection->sender_work; in drbd_device_post_work()
1933 if (!test_and_set_bit(DEVICE_WORK_PENDING, &connection->flags)) in drbd_device_post_work()
1940 static inline void wake_asender(struct drbd_connection *connection) in wake_asender() argument
1942 if (test_bit(SIGNAL_ASENDER, &connection->flags)) in wake_asender()
1943 force_sig(DRBD_SIG, connection->asender.task); in wake_asender()
1946 static inline void request_ping(struct drbd_connection *connection) in request_ping() argument
1948 set_bit(SEND_PING, &connection->flags); in request_ping()
1949 wake_asender(connection); in request_ping()
1961 extern int drbd_send_ping(struct drbd_connection *connection);
1962 extern int drbd_send_ping_ack(struct drbd_connection *connection);
2143 nc = rcu_dereference(first_peer_device(device)->connection->net_conf); in drbd_get_max_buffers()
2186 if (first_peer_device(device)->connection->agreed_pro_version < 96) in drbd_state_is_stable()
2289 connection->sender_work, in dec_ap_bio()
2302 return first_peer_device(device)->connection->agreed_pro_version >= 97 && in verify_can_do_stop_sector()
2303 first_peer_device(device)->connection->agreed_pro_version != 100; in verify_can_do_stop_sector()