Lines Matching refs:drbd_peer_device
69 struct drbd_peer_device;
130 extern void INFO_bm_xfer_stats(struct drbd_peer_device *peer_device,
319 struct drbd_peer_device *peer_device;
543 struct drbd_peer_device *peer_device;
546 int (*io_fn)(struct drbd_device *device, struct drbd_peer_device *peer_device);
733 struct drbd_peer_device { struct
942 static inline struct drbd_peer_device *first_peer_device(struct drbd_device *device) in first_peer_device()
944 return list_first_entry_or_null(&device->peer_devices, struct drbd_peer_device, peer_devices); in first_peer_device()
947 static inline struct drbd_peer_device *
1015 extern int drbd_send_uuids(struct drbd_peer_device *);
1016 extern int drbd_send_uuids_skip_initial_sync(struct drbd_peer_device *);
1017 extern void drbd_gen_and_send_sync_uuid(struct drbd_peer_device *);
1018 extern int drbd_send_sizes(struct drbd_peer_device *, int trigger_reply, enum dds_flags flags);
1019 extern int drbd_send_state(struct drbd_peer_device *, union drbd_state s);
1020 extern int drbd_send_current_state(struct drbd_peer_device *);
1021 extern int drbd_send_sync_param(struct drbd_peer_device *);
1024 extern int drbd_send_ack(struct drbd_peer_device *, enum drbd_packet,
1026 extern void drbd_send_ack_rp(struct drbd_peer_device *, enum drbd_packet,
1028 extern void drbd_send_ack_dp(struct drbd_peer_device *, enum drbd_packet,
1030 extern int drbd_send_ack_ex(struct drbd_peer_device *, enum drbd_packet,
1032 extern int drbd_send_out_of_sync(struct drbd_peer_device *, struct drbd_request *);
1033 extern int drbd_send_block(struct drbd_peer_device *, enum drbd_packet,
1035 extern int drbd_send_dblock(struct drbd_peer_device *, struct drbd_request *req);
1036 extern int drbd_send_drequest(struct drbd_peer_device *, int cmd,
1038 extern int drbd_send_drequest_csum(struct drbd_peer_device *, sector_t sector,
1041 extern int drbd_send_ov_request(struct drbd_peer_device *, sector_t sector, int size);
1043 extern int drbd_send_bitmap(struct drbd_device *device, struct drbd_peer_device *peer_device);
1044 extern void drbd_send_sr_reply(struct drbd_peer_device *, enum drbd_state_rv retcode);
1046 extern int drbd_send_rs_deallocated(struct drbd_peer_device *, struct drbd_peer_request *);
1067 int (*io_fn)(struct drbd_device *, struct drbd_peer_device *),
1070 struct drbd_peer_device *peer_device);
1072 int (*io_fn)(struct drbd_device *, struct drbd_peer_device *),
1074 struct drbd_peer_device *peer_device);
1076 int (*io_fn)(struct drbd_device *, struct drbd_peer_device *),
1078 struct drbd_peer_device *peer_device);
1080 struct drbd_peer_device *peer_device) __must_hold(local);
1082 struct drbd_peer_device *peer_device) __must_hold(local);
1292 struct drbd_peer_device *peer_device) __must_hold(local);
1295 struct drbd_peer_device *peer_device) __must_hold(local);
1300 struct drbd_peer_device *peer_device) __must_hold(local);
1302 struct drbd_peer_device *peer_device) __must_hold(local);
1429 extern int drbd_resync_finished(struct drbd_peer_device *peer_device);
1435 extern void drbd_ov_out_of_sync_found(struct drbd_peer_device *peer_device,
1439 extern void drbd_rs_controller_reset(struct drbd_peer_device *peer_device);
1441 static inline void ov_out_of_sync_print(struct drbd_peer_device *peer_device) in ov_out_of_sync_print()
1483 extern bool drbd_rs_should_slow_down(struct drbd_peer_device *peer_device, sector_t sector,
1487 extern struct drbd_peer_request *drbd_alloc_peer_req(struct drbd_peer_device *, u64,
1495 extern struct page *drbd_alloc_pages(struct drbd_peer_device *, unsigned int, bool);
1497 extern int drbd_connected(struct drbd_peer_device *);
1538 extern int drbd_try_rs_begin_io(struct drbd_peer_device *peer_device, sector_t sector);
1541 extern void drbd_rs_failed_io(struct drbd_peer_device *peer_device,
1543 extern void drbd_advance_rs_marks(struct drbd_peer_device *peer_device, unsigned long still_to_go);
1546 extern int __drbd_change_sync(struct drbd_peer_device *peer_device, sector_t sector, int size,
1591 struct drbd_peer_device *,
1870 extern void *drbd_prepare_command(struct drbd_peer_device *, struct drbd_socket *);
1874 extern int drbd_send_command(struct drbd_peer_device *, struct drbd_socket *,
1880 extern int drbd_send_state_req(struct drbd_peer_device *, union drbd_state, union drbd_state);
1941 static inline void inc_rs_pending(struct drbd_peer_device *peer_device) in inc_rs_pending()
1948 static inline int __dec_rs_pending(struct drbd_peer_device *peer_device) in __dec_rs_pending()