Lines Matching defs:device

118 static void __bm_print_lock_info(struct drbd_device *device, const char *func)  in __bm_print_lock_info()
129 void drbd_bm_lock(struct drbd_device *device, char *why, enum bm_flag flags) in drbd_bm_lock()
156 void drbd_bm_unlock(struct drbd_device *device) in drbd_bm_unlock()
216 static void bm_page_lock_io(struct drbd_device *device, int page_nr) in bm_page_lock_io()
223 static void bm_page_unlock_io(struct drbd_device *device, int page_nr) in bm_page_unlock_io()
254 void drbd_bm_mark_for_writeout(struct drbd_device *device, int page_nr) in drbd_bm_mark_for_writeout()
442 int drbd_bm_init(struct drbd_device *device) in drbd_bm_init()
458 sector_t drbd_bm_capacity(struct drbd_device *device) in drbd_bm_capacity()
467 void drbd_bm_cleanup(struct drbd_device *device) in drbd_bm_cleanup()
635 int drbd_bm_resize(struct drbd_device *device, sector_t capacity, int set_new_bits) in drbd_bm_resize()
761 unsigned long _drbd_bm_total_weight(struct drbd_device *device) in _drbd_bm_total_weight()
779 unsigned long drbd_bm_total_weight(struct drbd_device *device) in drbd_bm_total_weight()
790 size_t drbd_bm_words(struct drbd_device *device) in drbd_bm_words()
801 unsigned long drbd_bm_bits(struct drbd_device *device) in drbd_bm_bits()
815 void drbd_bm_merge_lel(struct drbd_device *device, size_t offset, size_t number, in drbd_bm_merge_lel()
864 void drbd_bm_get_lel(struct drbd_device *device, size_t offset, size_t number, in drbd_bm_get_lel()
901 void drbd_bm_set_all(struct drbd_device *device) in drbd_bm_set_all()
917 void drbd_bm_clear_all(struct drbd_device *device) in drbd_bm_clear_all()
947 struct drbd_device *device = ctx->device; in drbd_bm_endio() local
996 struct drbd_device *device = ctx->device; in bm_page_io_async() local
1046 static int bm_rw(struct drbd_device *device, const unsigned int flags, unsigned lazy_writeout_upper… in bm_rw()
1175 int drbd_bm_read(struct drbd_device *device) __must_hold(local) in drbd_bm_read()
1186 int drbd_bm_write(struct drbd_device *device) __must_hold(local) in drbd_bm_write()
1197 int drbd_bm_write_all(struct drbd_device *device) __must_hold(local) in drbd_bm_write_all()
1207 int drbd_bm_write_lazy(struct drbd_device *device, unsigned upper_idx) __must_hold(local) in drbd_bm_write_lazy()
1223 int drbd_bm_write_copy_pages(struct drbd_device *device) __must_hold(local) in drbd_bm_write_copy_pages()
1232 int drbd_bm_write_hinted(struct drbd_device *device) __must_hold(local) in drbd_bm_write_hinted()
1245 static unsigned long __bm_find_next(struct drbd_device *device, unsigned long bm_fo, in __bm_find_next()
1285 static unsigned long bm_find_next(struct drbd_device *device, in bm_find_next()
1306 unsigned long drbd_bm_find_next(struct drbd_device *device, unsigned long bm_fo) in drbd_bm_find_next()
1321 unsigned long _drbd_bm_find_next(struct drbd_device *device, unsigned long bm_fo) in _drbd_bm_find_next()
1327 unsigned long _drbd_bm_find_next_zero(struct drbd_device *device, unsigned long bm_fo) in _drbd_bm_find_next_zero()
1339 static int __bm_change_bits_to(struct drbd_device *device, const unsigned long s, in __bm_change_bits_to()
1388 static int bm_change_bits_to(struct drbd_device *device, const unsigned long s, in bm_change_bits_to()
1411 int drbd_bm_set_bits(struct drbd_device *device, const unsigned long s, const unsigned long e) in drbd_bm_set_bits()
1417 int drbd_bm_clear_bits(struct drbd_device *device, const unsigned long s, const unsigned long e) in drbd_bm_clear_bits()
1451 void _drbd_bm_set_bits(struct drbd_device *device, const unsigned long s, const unsigned long e) in _drbd_bm_set_bits()
1531 int drbd_bm_test_bit(struct drbd_device *device, const unsigned long bitnr) in drbd_bm_test_bit()
1562 int drbd_bm_count_bits(struct drbd_device *device, const unsigned long s, const unsigned long e) in drbd_bm_count_bits()
1617 int drbd_bm_e_weight(struct drbd_device *device, unsigned long enr) in drbd_bm_e_weight()