/drivers/block/drbd/ |
H A D | drbd_debugfs.h | 20 void drbd_debugfs_peer_device_add(struct drbd_peer_device *peer_device); 21 void drbd_debugfs_peer_device_cleanup(struct drbd_peer_device *peer_device); 36 static inline void drbd_debugfs_peer_device_add(struct drbd_peer_device *peer_device) { } argument 37 static inline void drbd_debugfs_peer_device_cleanup(struct drbd_peer_device *peer_device) { } argument
|
H A D | drbd_req.c | 348 static void set_if_null_req_next(struct drbd_peer_device *peer_device, struct drbd_request *req) argument 350 struct drbd_connection *connection = peer_device ? peer_device->connection : NULL; 357 static void advance_conn_req_next(struct drbd_peer_device *peer_device, struct drbd_request *req) argument 359 struct drbd_connection *connection = peer_device ? peer_device->connection : NULL; 374 static void set_if_null_req_ack_pending(struct drbd_peer_device *peer_device, struct drbd_request *req) argument 376 struct drbd_connection *connection = peer_device ? peer_device->connection : NULL; 383 static void advance_conn_req_ack_pending(struct drbd_peer_device *peer_device, struc argument 400 set_if_null_req_not_net_done(struct drbd_peer_device *peer_device, struct drbd_request *req) argument 409 advance_conn_req_not_net_done(struct drbd_peer_device *peer_device, struct drbd_request *req) argument 432 struct drbd_peer_device *peer_device = first_peer_device(device); local 594 struct drbd_peer_device *const peer_device = first_peer_device(device); local [all...] |
H A D | drbd_state.c | 67 struct drbd_peer_device *peer_device; local 72 idr_for_each_entry(&connection->peer_devices, peer_device, vnr) { 73 struct drbd_device *device = peer_device->device; 108 struct drbd_peer_device *peer_device; local 112 idr_for_each_entry(&connection->peer_devices, peer_device, vnr) { 113 struct drbd_device *device = peer_device->device; 124 struct drbd_peer_device *peer_device; local 128 idr_for_each_entry(&connection->peer_devices, peer_device, vnr) { 129 struct drbd_device *device = peer_device->device; 140 struct drbd_peer_device *peer_device; local 156 struct drbd_peer_device *peer_device; local 172 struct drbd_peer_device *peer_device; local 188 struct drbd_peer_device *peer_device; local 203 struct drbd_peer_device *peer_device; local 955 struct drbd_peer_device *peer_device = first_peer_device(device); local 1233 struct drbd_peer_device *peer_device = first_peer_device(device); local 1283 struct drbd_peer_device *peer_device; local 1558 struct drbd_peer_device *peer_device; local 1613 struct drbd_peer_device *peer_device; local 1662 struct drbd_peer_device *peer_device; local 1711 struct drbd_peer_device *peer_device; local [all...] |
H A D | drbd_debugfs.c | 868 void drbd_debugfs_peer_device_add(struct drbd_peer_device *peer_device) argument 870 struct dentry *conn_dir = peer_device->connection->debugfs_conn; 877 snprintf(vnr_buf, sizeof(vnr_buf), "%u", peer_device->device->vnr); 881 peer_device->debugfs_peer_dev = dentry; 885 drbd_debugfs_peer_device_cleanup(peer_device); 886 drbd_err(peer_device, "failed to create debugfs entries\n"); 889 void drbd_debugfs_peer_device_cleanup(struct drbd_peer_device *peer_device) argument 891 drbd_debugfs_remove(&peer_device->debugfs_peer_dev);
|
H A D | drbd_nl.c | 412 struct drbd_peer_device *peer_device; local 416 idr_for_each_entry(&connection->peer_devices, peer_device, vnr) { 417 struct drbd_device *device = peer_device->device; 420 rcu_dereference(peer_device->device->ldev->disk_conf); 431 peer_device = idr_get_next(&connection->peer_devices, &vnr); 432 drbd_change_state(peer_device->device, CS_VERBOSE | CS_HARD, NS(susp_fen, 0)); 565 struct drbd_peer_device *const peer_device = first_peer_device(device); local 566 struct drbd_connection *const connection = peer_device ? peer_device->connection : NULL; 694 drbd_send_uuids(peer_device); 1426 struct drbd_peer_device *peer_device; local 1456 struct drbd_peer_device *peer_device; local 1960 struct drbd_peer_device *peer_device; local 1982 struct drbd_peer_device *peer_device; local 2003 struct drbd_peer_device *peer_device; local 2048 struct drbd_peer_device *peer_device; local 2225 struct drbd_peer_device *peer_device; local 2251 struct drbd_peer_device *peer_device; local 3552 struct drbd_peer_device *peer_device; local [all...] |
H A D | drbd_worker.c | 100 struct drbd_peer_device *peer_device = peer_req->peer_device; local 101 struct drbd_device *device = peer_device->device; 112 drbd_queue_work(&peer_device->connection->sender_work, &peer_req->w); 121 struct drbd_peer_device *peer_device = peer_req->peer_device; local 122 struct drbd_device *device = peer_device->device; 166 wake_asender(peer_device->connection); 176 struct drbd_device *device = peer_req->peer_device->device; 345 struct drbd_peer_device *peer_device local 391 read_for_csum(struct drbd_peer_device *peer_device, sector_t sector, int size) argument 588 struct drbd_peer_device *const peer_device = first_peer_device(device); local 1021 struct drbd_peer_device *peer_device = peer_req->peer_device; local 1058 struct drbd_peer_device *peer_device = peer_req->peer_device; local 1108 struct drbd_peer_device *peer_device = peer_req->peer_device; local 1172 struct drbd_peer_device *peer_device = peer_req->peer_device; local 1229 struct drbd_peer_device *peer_device = peer_req->peer_device; local 1359 struct drbd_peer_device *const peer_device = first_peer_device(device); local 1390 struct drbd_peer_device *const peer_device = first_peer_device(device); local 1419 struct drbd_peer_device *const peer_device = first_peer_device(device); local 1653 struct drbd_peer_device *peer_device = first_peer_device(device); local 1970 struct drbd_peer_device *peer_device; local 2086 struct drbd_peer_device *peer_device; local [all...] |
H A D | drbd_main.c | 488 struct drbd_peer_device *peer_device; local 492 peer_device = idr_get_next(&connection->peer_devices, &vnr); 493 if (peer_device) 494 minor = device_to_minor(peer_device->device); 638 void *drbd_prepare_command(struct drbd_peer_device *peer_device, struct drbd_socket *sock) argument 640 return conn_prepare_command(peer_device->connection, sock); 692 int drbd_send_command(struct drbd_peer_device *peer_device, struct drbd_socket *sock, argument 698 err = __send_command(peer_device->connection, peer_device->device->vnr, 724 int drbd_send_sync_param(struct drbd_peer_device *peer_device) argument 834 _drbd_send_uuids(struct drbd_peer_device *peer_device, u64 uuid_flags) argument 868 drbd_send_uuids(struct drbd_peer_device *peer_device) argument 873 drbd_send_uuids_skip_initial_sync(struct drbd_peer_device *peer_device) argument 896 drbd_gen_and_send_sync_uuid(struct drbd_peer_device *peer_device) argument 922 drbd_send_sizes(struct drbd_peer_device *peer_device, int trigger_reply, enum dds_flags flags) argument 971 drbd_send_current_state(struct drbd_peer_device *peer_device) argument 994 drbd_send_state(struct drbd_peer_device *peer_device, union drbd_state state) argument 1007 drbd_send_state_req(struct drbd_peer_device *peer_device, union drbd_state mask, union drbd_state val) argument 1037 drbd_send_sr_reply(struct drbd_peer_device *peer_device, enum drbd_state_rv retcode) argument 1315 _drbd_send_ack(struct drbd_peer_device *peer_device, enum drbd_packet cmd, u64 sector, u32 blksize, u64 block_id) argument 1338 drbd_send_ack_dp(struct drbd_peer_device *peer_device, enum drbd_packet cmd, struct p_data *dp, int data_size) argument 1347 drbd_send_ack_rp(struct drbd_peer_device *peer_device, enum drbd_packet cmd, struct p_block_req *rp) argument 1359 drbd_send_ack(struct drbd_peer_device *peer_device, enum drbd_packet cmd, struct drbd_peer_request *peer_req) argument 1370 drbd_send_ack_ex(struct drbd_peer_device *peer_device, enum drbd_packet cmd, sector_t sector, int blksize, u64 block_id) argument 1379 drbd_send_drequest(struct drbd_peer_device *peer_device, int cmd, sector_t sector, int size, u64 block_id) argument 1395 drbd_send_drequest_csum(struct drbd_peer_device *peer_device, sector_t sector, int size, void *digest, int digest_size, enum drbd_packet cmd) argument 1413 drbd_send_ov_request(struct drbd_peer_device *peer_device, sector_t sector, int size) argument 1483 _drbd_no_send_page(struct drbd_peer_device *peer_device, struct page *page, int offset, size_t size, unsigned msg_flags) argument 1499 _drbd_send_page(struct drbd_peer_device *peer_device, struct page *page, int offset, size_t size, unsigned msg_flags) argument 1548 _drbd_send_bio(struct drbd_peer_device *peer_device, struct bio *bio) argument 1567 _drbd_send_zc_bio(struct drbd_peer_device *peer_device, struct bio *bio) argument 1585 _drbd_send_zc_ee(struct drbd_peer_device *peer_device, struct drbd_peer_request *peer_req) argument 1619 drbd_send_dblock(struct drbd_peer_device *peer_device, struct drbd_request *req) argument 1707 drbd_send_block(struct drbd_peer_device *peer_device, enum drbd_packet cmd, struct drbd_peer_request *peer_req) argument 1738 drbd_send_out_of_sync(struct drbd_peer_device *peer_device, struct drbd_request *req) argument 2169 struct drbd_peer_device *peer_device, *tmp_peer_device; local 2725 struct drbd_peer_device *peer_device, *tmp_peer_device; local 2893 struct drbd_peer_device *peer_device; local 3026 struct drbd_peer_device *peer_device; local [all...] |
H A D | drbd_receiver.c | 251 struct page *drbd_alloc_pages(struct drbd_peer_device *peer_device, unsigned int number, argument 254 struct drbd_device *device = peer_device->device; 261 nc = rcu_dereference(peer_device->connection->net_conf); 341 drbd_alloc_peer_req(struct drbd_peer_device *peer_device, u64 id, sector_t sector, 344 struct drbd_device *device = peer_device->device; 360 page = drbd_alloc_pages(peer_device, nr_pages, (gfp_mask & __GFP_WAIT)); 371 peer_req->peer_device = peer_device; 868 int drbd_connected(struct drbd_peer_device *peer_device) argument 870 struct drbd_device *device = peer_device 905 struct drbd_peer_device *peer_device; local 1177 struct drbd_peer_device *peer_device; local 1494 struct drbd_peer_device *peer_device; local 1680 drbd_drain_block(struct drbd_peer_device *peer_device, int data_size) argument 1705 recv_dless_read(struct drbd_peer_device *peer_device, struct drbd_request *req, sector_t sector, int data_size) argument 1761 struct drbd_peer_device *peer_device = peer_req->peer_device; local 1840 struct drbd_peer_device *peer_device; local 1875 struct drbd_peer_device *peer_device; local 1934 struct drbd_peer_device *peer_device = peer_req->peer_device; local 1977 struct drbd_peer_device *peer_device = peer_req->peer_device; local 2016 update_peer_seq(struct drbd_peer_device *peer_device, unsigned int peer_seq) argument 2077 wait_for_and_update_peer_seq(struct drbd_peer_device *peer_device, const u32 peer_seq) argument 2272 struct drbd_peer_device *peer_device; local 2514 struct drbd_peer_device *peer_device; local 2935 struct drbd_peer_device *const peer_device = first_peer_device(device); local 3502 struct drbd_peer_device *peer_device; local 3727 struct drbd_peer_device *peer_device; local 3868 struct drbd_peer_device *peer_device; local 3975 struct drbd_peer_device *peer_device; local 4032 struct drbd_peer_device *peer_device; local 4210 struct drbd_peer_device *peer_device; local 4250 receive_bitmap_plain(struct drbd_peer_device *peer_device, unsigned int size, unsigned long *p, struct bm_xfer_ctx *c) argument 4302 recv_bm_rle_bits(struct drbd_peer_device *peer_device, struct p_compressed_bm *p, struct bm_xfer_ctx *c, unsigned int len) argument 4371 decode_bitmap_c(struct drbd_peer_device *peer_device, struct p_compressed_bm *p, struct bm_xfer_ctx *c, unsigned int len) argument 4434 struct drbd_peer_device *peer_device; local 4539 struct drbd_peer_device *peer_device; local 4649 struct drbd_peer_device *peer_device; local 4700 drbd_disconnected(struct drbd_peer_device *peer_device) argument 5117 struct drbd_peer_device *peer_device; local 5162 struct drbd_peer_device *peer_device; local 5214 struct drbd_peer_device *peer_device; local 5260 struct drbd_peer_device *peer_device; local 5296 struct drbd_peer_device *peer_device; local 5318 struct drbd_peer_device *peer_device; local 5355 struct drbd_peer_device *peer_device; local 5378 struct drbd_peer_device *peer_device; local 5435 struct drbd_peer_device *peer_device; local [all...] |
H A D | drbd_int.h | 104 #define __drbd_printk_peer_device(level, peer_device, fmt, args...) \ 105 dev_printk(level, disk_to_dev((peer_device)->device->vdisk), fmt, ## args) 416 struct drbd_peer_device *peer_device; member in struct:drbd_peer_request 1040 #define for_each_peer_device(peer_device, device) \ 1041 list_for_each_entry(peer_device, &device->peer_devices, peer_devices) 1043 #define for_each_peer_device_rcu(peer_device, device) \ 1044 list_for_each_entry_rcu(peer_device, &device->peer_devices, peer_devices) 1046 #define for_each_peer_device_safe(peer_device, tmp, device) \ 1047 list_for_each_entry_safe(peer_device, tmp, &device->peer_devices, peer_devices)
|