Lines Matching refs:drbd_connection
169 void tl_release(struct drbd_connection *connection, unsigned int barrier_nr, in tl_release()
258 void _tl_restart(struct drbd_connection *connection, enum drbd_req_event what) in _tl_restart()
269 void tl_restart(struct drbd_connection *connection, enum drbd_req_event what) in tl_restart()
284 void tl_clear(struct drbd_connection *connection) in tl_clear()
295 struct drbd_connection *connection = first_peer_device(device)->connection; in tl_abort_disk_io()
540 unsigned int drbd_header_size(struct drbd_connection *connection) in drbd_header_size()
580 static unsigned int prepare_header(struct drbd_connection *connection, int vnr, in prepare_header()
592 static void *__conn_prepare_command(struct drbd_connection *connection, in __conn_prepare_command()
600 void *conn_prepare_command(struct drbd_connection *connection, struct drbd_socket *sock) in conn_prepare_command()
617 static int __send_command(struct drbd_connection *connection, int vnr, in __send_command()
648 static int __conn_send_command(struct drbd_connection *connection, struct drbd_socket *sock, in __conn_send_command()
655 int conn_send_command(struct drbd_connection *connection, struct drbd_socket *sock, in conn_send_command()
678 int drbd_send_ping(struct drbd_connection *connection) in drbd_send_ping()
688 int drbd_send_ping_ack(struct drbd_connection *connection) in drbd_send_ping_ack()
753 int __drbd_send_protocol(struct drbd_connection *connection, enum drbd_packet cmd) in __drbd_send_protocol()
797 int drbd_send_protocol(struct drbd_connection *connection) in drbd_send_protocol()
1027 int conn_send_state_req(struct drbd_connection *connection, union drbd_state mask, union drbd_state… in conn_send_state_req()
1056 void conn_send_sr_reply(struct drbd_connection *connection, enum drbd_state_rv retcode) in conn_send_sr_reply()
1299 void drbd_send_b_ack(struct drbd_connection *connection, u32 barrier_nr, u32 set_size) in drbd_send_b_ack()
1457 static int we_should_drop_the_connection(struct drbd_connection *connection, struct socket *sock) in we_should_drop_the_connection()
1480 static void drbd_update_congested(struct drbd_connection *connection) in drbd_update_congested()
1631 static u32 bio_flags_to_wire(struct drbd_connection *connection, in bio_flags_to_wire()
1804 int drbd_send(struct drbd_connection *connection, struct socket *sock, in drbd_send()
1862 int drbd_send_all(struct drbd_connection *connection, struct socket *sock, void *buffer, in drbd_send_all()
2316 struct drbd_connection *connection, *tmp; in drbd_free_resource()
2419 struct drbd_connection *conn_get_by_addrs(void *my_addr, int my_addr_len, in conn_get_by_addrs()
2423 struct drbd_connection *connection; in conn_get_by_addrs()
2460 void conn_free_crypto(struct drbd_connection *connection) in conn_free_crypto()
2483 struct drbd_connection *connection; in set_resource_options()
2565 struct drbd_connection *conn_create(const char *name, struct res_opts *res_opts) in conn_create()
2568 struct drbd_connection *connection; in conn_create()
2570 connection = kzalloc(sizeof(struct drbd_connection), GFP_KERNEL); in conn_create()
2638 struct drbd_connection *connection = container_of(kref, struct drbd_connection, kref); in drbd_destroy_connection()
2672 struct drbd_connection *connection, *n; in drbd_create_device()
2826 struct drbd_connection *connection; in drbd_delete_device()
2936 void drbd_free_sock(struct drbd_connection *connection) in drbd_free_sock()
2946 void conn_md_sync(struct drbd_connection *connection) in conn_md_sync()