Lines Matching defs:device
125 static void __bm_print_lock_info(struct drbd_device *device, const char *func) in __bm_print_lock_info()
136 void drbd_bm_lock(struct drbd_device *device, char *why, enum bm_flag flags) in drbd_bm_lock()
163 void drbd_bm_unlock(struct drbd_device *device) in drbd_bm_unlock()
223 static void bm_page_lock_io(struct drbd_device *device, int page_nr) in bm_page_lock_io()
230 static void bm_page_unlock_io(struct drbd_device *device, int page_nr) in bm_page_unlock_io()
252 void drbd_bm_reset_al_hints(struct drbd_device *device) in drbd_bm_reset_al_hints()
266 void drbd_bm_mark_for_writeout(struct drbd_device *device, int page_nr) in drbd_bm_mark_for_writeout()
447 int drbd_bm_init(struct drbd_device *device) in drbd_bm_init()
463 sector_t drbd_bm_capacity(struct drbd_device *device) in drbd_bm_capacity()
472 void drbd_bm_cleanup(struct drbd_device *device) in drbd_bm_cleanup()
644 int drbd_bm_resize(struct drbd_device *device, sector_t capacity, int set_new_bits) in drbd_bm_resize()
768 unsigned long _drbd_bm_total_weight(struct drbd_device *device) in _drbd_bm_total_weight()
786 unsigned long drbd_bm_total_weight(struct drbd_device *device) in drbd_bm_total_weight()
797 size_t drbd_bm_words(struct drbd_device *device) in drbd_bm_words()
808 unsigned long drbd_bm_bits(struct drbd_device *device) in drbd_bm_bits()
822 void drbd_bm_merge_lel(struct drbd_device *device, size_t offset, size_t number, in drbd_bm_merge_lel()
871 void drbd_bm_get_lel(struct drbd_device *device, size_t offset, size_t number, in drbd_bm_get_lel()
908 void drbd_bm_set_all(struct drbd_device *device) in drbd_bm_set_all()
924 void drbd_bm_clear_all(struct drbd_device *device) in drbd_bm_clear_all()
954 struct drbd_device *device = ctx->device; in drbd_bm_endio() local
994 struct drbd_device *device = ctx->device; in bm_page_io_async() local
1044 static int bm_rw(struct drbd_device *device, const unsigned int flags, unsigned lazy_writeout_upper… in bm_rw()
1198 int drbd_bm_read(struct drbd_device *device) __must_hold(local) in drbd_bm_read()
1209 int drbd_bm_write(struct drbd_device *device) __must_hold(local) in drbd_bm_write()
1220 int drbd_bm_write_all(struct drbd_device *device) __must_hold(local) in drbd_bm_write_all()
1230 int drbd_bm_write_lazy(struct drbd_device *device, unsigned upper_idx) __must_hold(local) in drbd_bm_write_lazy()
1246 int drbd_bm_write_copy_pages(struct drbd_device *device) __must_hold(local) in drbd_bm_write_copy_pages()
1255 int drbd_bm_write_hinted(struct drbd_device *device) __must_hold(local) in drbd_bm_write_hinted()
1268 static unsigned long __bm_find_next(struct drbd_device *device, unsigned long bm_fo, in __bm_find_next()
1308 static unsigned long bm_find_next(struct drbd_device *device, in bm_find_next()
1329 unsigned long drbd_bm_find_next(struct drbd_device *device, unsigned long bm_fo) in drbd_bm_find_next()
1344 unsigned long _drbd_bm_find_next(struct drbd_device *device, unsigned long bm_fo) in _drbd_bm_find_next()
1350 unsigned long _drbd_bm_find_next_zero(struct drbd_device *device, unsigned long bm_fo) in _drbd_bm_find_next_zero()
1362 static int __bm_change_bits_to(struct drbd_device *device, const unsigned long s, in __bm_change_bits_to()
1411 static int bm_change_bits_to(struct drbd_device *device, const unsigned long s, in bm_change_bits_to()
1434 int drbd_bm_set_bits(struct drbd_device *device, const unsigned long s, const unsigned long e) in drbd_bm_set_bits()
1440 int drbd_bm_clear_bits(struct drbd_device *device, const unsigned long s, const unsigned long e) in drbd_bm_clear_bits()
1477 void _drbd_bm_set_bits(struct drbd_device *device, const unsigned long s, const unsigned long e) in _drbd_bm_set_bits()
1557 int drbd_bm_test_bit(struct drbd_device *device, const unsigned long bitnr) in drbd_bm_test_bit()
1588 int drbd_bm_count_bits(struct drbd_device *device, const unsigned long s, const unsigned long e) in drbd_bm_count_bits()
1643 int drbd_bm_e_weight(struct drbd_device *device, unsigned long enr) in drbd_bm_e_weight()