Lines Matching refs:drbd_device

67 struct drbd_device;
88 _drbd_insert_fault(struct drbd_device *device, unsigned int type);
91 drbd_insert_fault(struct drbd_device *device, unsigned int type) { in drbd_insert_fault()
191 struct drbd_device *device;
196 extern int drbd_wait_misc(struct drbd_device *, struct drbd_interval *);
203 struct drbd_device *device;
546 int (*io_fn)(struct drbd_device *device, struct drbd_peer_device *peer_device);
547 void (*done)(struct drbd_device *device, int rv);
735 struct drbd_device *device;
743 struct drbd_device { struct
901 struct drbd_device *device; argument
932 struct drbd_device *device;
937 static inline struct drbd_device *minor_to_device(unsigned int minor) in minor_to_device()
939 return (struct drbd_device *)idr_find(&drbd_devices, minor); in minor_to_device()
942 static inline struct drbd_peer_device *first_peer_device(struct drbd_device *device) in first_peer_device()
980 static inline unsigned int device_to_minor(struct drbd_device *device) in device_to_minor()
996 extern void drbd_init_set_defaults(struct drbd_device *device);
1043 extern int drbd_send_bitmap(struct drbd_device *device, struct drbd_peer_device *peer_device);
1047 extern void drbd_backing_dev_free(struct drbd_device *device, struct drbd_backing_dev *ldev);
1048 extern void drbd_device_cleanup(struct drbd_device *device);
1049 extern void drbd_print_uuids(struct drbd_device *device, const char *text);
1050 extern void drbd_queue_unplug(struct drbd_device *device);
1053 extern void drbd_md_write(struct drbd_device *device, void *buffer);
1054 extern void drbd_md_sync(struct drbd_device *device);
1055 extern int drbd_md_read(struct drbd_device *device, struct drbd_backing_dev *bdev);
1056 extern void drbd_uuid_set(struct drbd_device *device, int idx, u64 val) __must_hold(local);
1057 extern void _drbd_uuid_set(struct drbd_device *device, int idx, u64 val) __must_hold(local);
1058 extern void drbd_uuid_new_current(struct drbd_device *device) __must_hold(local);
1059 extern void drbd_uuid_set_bm(struct drbd_device *device, u64 val) __must_hold(local);
1060 extern void drbd_uuid_move_history(struct drbd_device *device) __must_hold(local);
1061 extern void __drbd_uuid_set(struct drbd_device *device, int idx, u64 val) __must_hold(local);
1062 extern void drbd_md_set_flag(struct drbd_device *device, int flags) __must_hold(local);
1063 extern void drbd_md_clear_flag(struct drbd_device *device, int flags)__must_hold(local);
1065 extern void drbd_md_mark_dirty(struct drbd_device *device);
1066 extern void drbd_queue_bitmap_io(struct drbd_device *device,
1067 int (*io_fn)(struct drbd_device *, struct drbd_peer_device *),
1068 void (*done)(struct drbd_device *, int),
1071 extern int drbd_bitmap_io(struct drbd_device *device,
1072 int (*io_fn)(struct drbd_device *, struct drbd_peer_device *),
1075 extern int drbd_bitmap_io_from_worker(struct drbd_device *device,
1076 int (*io_fn)(struct drbd_device *, struct drbd_peer_device *),
1079 extern int drbd_bmio_set_n_write(struct drbd_device *device,
1081 extern int drbd_bmio_clear_n_write(struct drbd_device *device,
1273 extern int drbd_bm_init(struct drbd_device *device);
1274 extern int drbd_bm_resize(struct drbd_device *device, sector_t sectors, int set_new_bits);
1275 extern void drbd_bm_cleanup(struct drbd_device *device);
1276 extern void drbd_bm_set_all(struct drbd_device *device);
1277 extern void drbd_bm_clear_all(struct drbd_device *device);
1280 struct drbd_device *device, unsigned long s, unsigned long e);
1282 struct drbd_device *device, unsigned long s, unsigned long e);
1284 struct drbd_device *device, const unsigned long s, const unsigned long e);
1287 extern void _drbd_bm_set_bits(struct drbd_device *device,
1289 extern int drbd_bm_test_bit(struct drbd_device *device, unsigned long bitnr);
1290 extern int drbd_bm_e_weight(struct drbd_device *device, unsigned long enr);
1291 extern int drbd_bm_read(struct drbd_device *device,
1293 extern void drbd_bm_mark_for_writeout(struct drbd_device *device, int page_nr);
1294 extern int drbd_bm_write(struct drbd_device *device,
1296 extern void drbd_bm_reset_al_hints(struct drbd_device *device) __must_hold(local);
1297 extern int drbd_bm_write_hinted(struct drbd_device *device) __must_hold(local);
1298 extern int drbd_bm_write_lazy(struct drbd_device *device, unsigned upper_idx) __must_hold(local);
1299 extern int drbd_bm_write_all(struct drbd_device *device,
1301 extern int drbd_bm_write_copy_pages(struct drbd_device *device,
1303 extern size_t drbd_bm_words(struct drbd_device *device);
1304 extern unsigned long drbd_bm_bits(struct drbd_device *device);
1305 extern sector_t drbd_bm_capacity(struct drbd_device *device);
1308 extern unsigned long drbd_bm_find_next(struct drbd_device *device, unsigned long bm_fo);
1310 extern unsigned long _drbd_bm_find_next(struct drbd_device *device, unsigned long bm_fo);
1311 extern unsigned long _drbd_bm_find_next_zero(struct drbd_device *device, unsigned long bm_fo);
1312 extern unsigned long _drbd_bm_total_weight(struct drbd_device *device);
1313 extern unsigned long drbd_bm_total_weight(struct drbd_device *device);
1315 extern void drbd_bm_merge_lel(struct drbd_device *device, size_t offset,
1318 extern void drbd_bm_get_lel(struct drbd_device *device, size_t offset,
1321 extern void drbd_bm_lock(struct drbd_device *device, char *why, enum bm_flag flags);
1322 extern void drbd_bm_unlock(struct drbd_device *device);
1369 extern void drbd_delete_device(struct drbd_device *device);
1385 extern void __drbd_make_request(struct drbd_device *, struct bio *);
1392 extern void drbd_suspend_io(struct drbd_device *device);
1393 extern void drbd_resume_io(struct drbd_device *device);
1395 extern sector_t drbd_new_dev_size(struct drbd_device *, struct drbd_backing_dev *, sector_t, int);
1406 drbd_determine_dev_size(struct drbd_device *, enum dds_flags, struct resize_parms *) __must_hold(lo…
1407 extern void resync_after_online_grow(struct drbd_device *);
1408 extern void drbd_reconsider_queue_parameters(struct drbd_device *device,
1410 extern enum drbd_state_rv drbd_set_role(struct drbd_device *device,
1416 extern int drbd_khelper(struct drbd_device *device, char *cmd);
1424 enum drbd_ret_code drbd_resync_after_valid(struct drbd_device *device, int o_minor);
1425 void drbd_resync_after_changed(struct drbd_device *device);
1426 extern void drbd_start_resync(struct drbd_device *device, enum drbd_conns side);
1427 extern void resume_next_sg(struct drbd_device *device);
1428 extern void suspend_other_sg(struct drbd_device *device);
1431 extern void *drbd_md_get_buffer(struct drbd_device *device, const char *intent);
1432 extern void drbd_md_put_buffer(struct drbd_device *device);
1433 extern int drbd_md_sync_page_io(struct drbd_device *device,
1437 extern void wait_until_done_or_force_detached(struct drbd_device *device,
1443 struct drbd_device *device = peer_device->device; in ov_out_of_sync_print()
1477 extern int drbd_issue_discard_or_zero_out(struct drbd_device *device,
1482 extern bool drbd_rs_c_min_rate_throttle(struct drbd_device *device);
1486 extern int drbd_free_peer_reqs(struct drbd_device *, struct list_head *);
1491 extern void __drbd_free_peer_req(struct drbd_device *, struct drbd_peer_request *,
1496 extern void _drbd_clear_done_ee(struct drbd_device *device, struct list_head *to_be_freed);
1500 void drbd_set_my_capacity(struct drbd_device *device, sector_t size);
1505 static inline void drbd_submit_bio_noacct(struct drbd_device *device, in drbd_submit_bio_noacct()
1530 extern bool drbd_al_begin_io_prepare(struct drbd_device *device, struct drbd_interval *i);
1531 extern int drbd_al_begin_io_nonblock(struct drbd_device *device, struct drbd_interval *i);
1532 extern void drbd_al_begin_io_commit(struct drbd_device *device);
1533 extern bool drbd_al_begin_io_fastpath(struct drbd_device *device, struct drbd_interval *i);
1534 extern void drbd_al_begin_io(struct drbd_device *device, struct drbd_interval *i);
1535 extern void drbd_al_complete_io(struct drbd_device *device, struct drbd_interval *i);
1536 extern void drbd_rs_complete_io(struct drbd_device *device, sector_t sector);
1537 extern int drbd_rs_begin_io(struct drbd_device *device, sector_t sector);
1539 extern void drbd_rs_cancel_all(struct drbd_device *device);
1540 extern int drbd_rs_del_all(struct drbd_device *device);
1554 extern void drbd_al_shrink(struct drbd_device *device);
1555 extern int drbd_al_initialize(struct drbd_device *, void *);
1572 void drbd_bcast_event(struct drbd_device *device, const struct sib_info *sib);
1581 struct drbd_device *,
1594 extern void notify_helper(enum drbd_notification_type, struct drbd_device *,
1623 static inline union drbd_state drbd_read_state(struct drbd_device *device) in drbd_read_state()
1644 static inline void __drbd_chk_io_error_(struct drbd_device *device, in __drbd_chk_io_error_()
1708 static inline void drbd_chk_io_error_(struct drbd_device *device, in drbd_chk_io_error_()
1839 drbd_device_post_work(struct drbd_device *device, int work_bit) in drbd_device_post_work()
1920 static inline void inc_ap_pending(struct drbd_device *device) in inc_ap_pending()
1926 static inline int __dec_ap_pending(struct drbd_device *device) in __dec_ap_pending()
1962 static inline void inc_unacked(struct drbd_device *device) in inc_unacked()
1968 static inline int __dec_unacked(struct drbd_device *device) in __dec_unacked()
1974 static inline int __sub_unacked(struct drbd_device *device, int n) in __sub_unacked()
2009 static inline void put_ldev(struct drbd_device *device) in put_ldev()
2036 static inline int _get_ldev_if_state(struct drbd_device *device, enum drbd_disk_state mins) in _get_ldev_if_state()
2051 extern int _get_ldev_if_state(struct drbd_device *device, enum drbd_disk_state mins);
2057 static inline int drbd_get_max_buffers(struct drbd_device *device) in drbd_get_max_buffers()
2070 static inline int drbd_state_is_stable(struct drbd_device *device) in drbd_state_is_stable()
2140 static inline int drbd_suspended(struct drbd_device *device) in drbd_suspended()
2147 static inline bool may_inc_ap_bio(struct drbd_device *device) in may_inc_ap_bio()
2173 static inline bool inc_ap_bio_cond(struct drbd_device *device) in inc_ap_bio_cond()
2186 static inline void inc_ap_bio(struct drbd_device *device) in inc_ap_bio()
2199 static inline void dec_ap_bio(struct drbd_device *device) in dec_ap_bio()
2220 static inline bool verify_can_do_stop_sector(struct drbd_device *device) in verify_can_do_stop_sector()
2226 static inline int drbd_set_ed_uuid(struct drbd_device *device, u64 val) in drbd_set_ed_uuid()
2233 static inline int drbd_queue_order_type(struct drbd_device *device) in drbd_queue_order_type()