Lines Matching refs:drbd_peer_device

69 struct drbd_peer_device;
130 extern void INFO_bm_xfer_stats(struct drbd_peer_device *peer_device,
323 struct drbd_peer_device *peer_device;
545 struct drbd_peer_device *peer_device;
548 int (*io_fn)(struct drbd_device *device, struct drbd_peer_device *peer_device);
735 struct drbd_peer_device { struct
945 static inline struct drbd_peer_device *first_peer_device(struct drbd_device *device) in first_peer_device()
947 return list_first_entry_or_null(&device->peer_devices, struct drbd_peer_device, peer_devices); in first_peer_device()
950 static inline struct drbd_peer_device *
1018 extern int drbd_send_uuids(struct drbd_peer_device *);
1019 extern int drbd_send_uuids_skip_initial_sync(struct drbd_peer_device *);
1020 extern void drbd_gen_and_send_sync_uuid(struct drbd_peer_device *);
1021 extern int drbd_send_sizes(struct drbd_peer_device *, int trigger_reply, enum dds_flags flags);
1022 extern int drbd_send_state(struct drbd_peer_device *, union drbd_state s);
1023 extern int drbd_send_current_state(struct drbd_peer_device *);
1024 extern int drbd_send_sync_param(struct drbd_peer_device *);
1027 extern int drbd_send_ack(struct drbd_peer_device *, enum drbd_packet,
1029 extern void drbd_send_ack_rp(struct drbd_peer_device *, enum drbd_packet,
1031 extern void drbd_send_ack_dp(struct drbd_peer_device *, enum drbd_packet,
1033 extern int drbd_send_ack_ex(struct drbd_peer_device *, enum drbd_packet,
1035 extern int drbd_send_out_of_sync(struct drbd_peer_device *, struct drbd_request *);
1036 extern int drbd_send_block(struct drbd_peer_device *, enum drbd_packet,
1038 extern int drbd_send_dblock(struct drbd_peer_device *, struct drbd_request *req);
1039 extern int drbd_send_drequest(struct drbd_peer_device *, int cmd,
1041 extern int drbd_send_drequest_csum(struct drbd_peer_device *, sector_t sector,
1044 extern int drbd_send_ov_request(struct drbd_peer_device *, sector_t sector, int size);
1046 extern int drbd_send_bitmap(struct drbd_device *device, struct drbd_peer_device *peer_device);
1047 extern void drbd_send_sr_reply(struct drbd_peer_device *, enum drbd_state_rv retcode);
1049 extern int drbd_send_rs_deallocated(struct drbd_peer_device *, struct drbd_peer_request *);
1070 int (*io_fn)(struct drbd_device *, struct drbd_peer_device *),
1073 struct drbd_peer_device *peer_device);
1075 int (*io_fn)(struct drbd_device *, struct drbd_peer_device *),
1077 struct drbd_peer_device *peer_device);
1079 int (*io_fn)(struct drbd_device *, struct drbd_peer_device *),
1081 struct drbd_peer_device *peer_device);
1083 struct drbd_peer_device *peer_device) __must_hold(local);
1085 struct drbd_peer_device *peer_device) __must_hold(local);
1295 struct drbd_peer_device *peer_device) __must_hold(local);
1298 struct drbd_peer_device *peer_device) __must_hold(local);
1303 struct drbd_peer_device *peer_device) __must_hold(local);
1305 struct drbd_peer_device *peer_device) __must_hold(local);
1436 extern int drbd_resync_finished(struct drbd_peer_device *peer_device);
1442 extern void drbd_ov_out_of_sync_found(struct drbd_peer_device *peer_device,
1446 extern void drbd_rs_controller_reset(struct drbd_peer_device *peer_device);
1448 static inline void ov_out_of_sync_print(struct drbd_peer_device *peer_device) in ov_out_of_sync_print()
1492 extern bool drbd_rs_should_slow_down(struct drbd_peer_device *peer_device, sector_t sector,
1496 extern struct drbd_peer_request *drbd_alloc_peer_req(struct drbd_peer_device *, u64,
1504 extern struct page *drbd_alloc_pages(struct drbd_peer_device *, unsigned int, bool);
1507 extern int drbd_connected(struct drbd_peer_device *);
1548 extern int drbd_try_rs_begin_io(struct drbd_peer_device *peer_device, sector_t sector);
1551 extern void drbd_rs_failed_io(struct drbd_peer_device *peer_device,
1553 extern void drbd_advance_rs_marks(struct drbd_peer_device *peer_device, unsigned long still_to_go);
1556 extern int __drbd_change_sync(struct drbd_peer_device *peer_device, sector_t sector, int size,
1601 struct drbd_peer_device *,
1880 extern void *drbd_prepare_command(struct drbd_peer_device *, struct drbd_socket *);
1884 extern int drbd_send_command(struct drbd_peer_device *, struct drbd_socket *,
1890 extern int drbd_send_state_req(struct drbd_peer_device *, union drbd_state, union drbd_state);
1951 static inline void inc_rs_pending(struct drbd_peer_device *peer_device) in inc_rs_pending()
1958 static inline int __dec_rs_pending(struct drbd_peer_device *peer_device) in __dec_rs_pending()