Lines Matching defs:connection

302 	struct drbd_connection *connection,
311 list_for_each_entry(req, &connection->transfer_log, tl_requests) {
326 if (&req->tl_requests == &connection->transfer_log)
363 struct drbd_connection *connection;
366 connection = first_connection(resource);
369 if (!connection || !kref_get_unless_zero(&connection->kref))
384 /* for each connection ... once we have more than one */
386 if (connection->data.socket) {
388 struct tcp_sock *tp = tcp_sk(connection->data.socket->sk);
407 seq_print_resource_transfer_log_summary(m, resource, connection, jif);
413 kref_put(&connection->kref, drbd_destroy_connection);
539 struct drbd_connection *connection = m->private;
546 seq_print_timing_details(m, "worker", connection->w_cb_nr, connection->w_timing_details, jif);
547 seq_print_timing_details(m, "receiver", connection->r_cb_nr, connection->r_timing_details, jif);
553 struct drbd_connection *connection = inode->i_private;
554 return drbd_single_open(file, callback_history_show, connection,
555 &connection->kref, drbd_destroy_connection);
560 struct drbd_connection *connection = inode->i_private;
561 kref_put(&connection->kref, drbd_destroy_connection);
575 struct drbd_connection *connection = m->private;
582 spin_lock_irq(&connection->resource->req_lock);
583 r1 = connection->req_next;
586 r2 = connection->req_ack_pending;
591 r2 = connection->req_not_net_done;
594 spin_unlock_irq(&connection->resource->req_lock);
600 struct drbd_connection *connection = inode->i_private;
601 return drbd_single_open(file, connection_oldest_requests_show, connection,
602 &connection->kref, drbd_destroy_connection);
607 struct drbd_connection *connection = inode->i_private;
608 kref_put(&connection->kref, drbd_destroy_connection);
620 void drbd_debugfs_connection_add(struct drbd_connection *connection)
622 struct dentry *conns_dir = connection->resource->debugfs_res_connections;
627 * For now, it is just the one connection to the (only) "peer". */
629 connection->debugfs_conn = dentry;
632 connection->debugfs_conn, connection,
634 connection->debugfs_conn_callback_history = dentry;
637 connection->debugfs_conn, connection,
639 connection->debugfs_conn_oldest_requests = dentry;
642 void drbd_debugfs_connection_cleanup(struct drbd_connection *connection)
644 drbd_debugfs_remove(&connection->debugfs_conn_callback_history);
645 drbd_debugfs_remove(&connection->debugfs_conn_oldest_requests);
646 drbd_debugfs_remove(&connection->debugfs_conn);
829 struct dentry *conn_dir = peer_device->connection->debugfs_conn;