Lines Matching refs:drbd_bitmap
95 struct drbd_bitmap { struct
127 struct drbd_bitmap *b = device->bitmap; in __bm_print_lock_info() argument
138 struct drbd_bitmap *b = device->bitmap; in drbd_bm_lock()
165 struct drbd_bitmap *b = device->bitmap; in drbd_bm_unlock()
225 struct drbd_bitmap *b = device->bitmap; in bm_page_lock_io()
232 struct drbd_bitmap *b = device->bitmap; in bm_page_unlock_io()
268 struct drbd_bitmap *b = device->bitmap; in drbd_bm_mark_for_writeout()
308 static unsigned int bm_word_to_page_idx(struct drbd_bitmap *b, unsigned long long_nr) in bm_word_to_page_idx()
316 static unsigned int bm_bit_to_page_idx(struct drbd_bitmap *b, u64 bitnr) in bm_bit_to_page_idx()
324 static unsigned long *__bm_map_pidx(struct drbd_bitmap *b, unsigned int idx) in __bm_map_pidx()
330 static unsigned long *bm_map_pidx(struct drbd_bitmap *b, unsigned int idx) in bm_map_pidx()
390 static struct page **bm_realloc_pages(struct drbd_bitmap *b, unsigned long want) in bm_realloc_pages()
449 struct drbd_bitmap *b = device->bitmap; in drbd_bm_init()
451 b = kzalloc(sizeof(struct drbd_bitmap), GFP_KERNEL); in drbd_bm_init()
496 static int bm_clear_surplus(struct drbd_bitmap *b) in bm_clear_surplus()
533 static void bm_set_surplus(struct drbd_bitmap *b) in bm_set_surplus()
568 static unsigned long bm_count_bits(struct drbd_bitmap *b) in bm_count_bits()
596 static void bm_memset(struct drbd_bitmap *b, size_t offset, int c, size_t len) in bm_memset()
646 struct drbd_bitmap *b = device->bitmap; in drbd_bm_resize()
770 struct drbd_bitmap *b = device->bitmap; in _drbd_bm_total_weight()
799 struct drbd_bitmap *b = device->bitmap; in drbd_bm_words()
810 struct drbd_bitmap *b = device->bitmap; in drbd_bm_bits()
825 struct drbd_bitmap *b = device->bitmap; in drbd_bm_merge_lel()
874 struct drbd_bitmap *b = device->bitmap; in drbd_bm_get_lel()
910 struct drbd_bitmap *b = device->bitmap; in drbd_bm_set_all()
926 struct drbd_bitmap *b = device->bitmap; in drbd_bm_clear_all()
955 struct drbd_bitmap *b = device->bitmap; in drbd_bm_endio()
995 struct drbd_bitmap *b = device->bitmap; in bm_page_io_async()
1048 struct drbd_bitmap *b = device->bitmap; in bm_rw()
1272 struct drbd_bitmap *b = device->bitmap; in __bm_find_next()
1312 struct drbd_bitmap *b = device->bitmap; in bm_find_next()
1366 struct drbd_bitmap *b = device->bitmap; in __bm_change_bits_to()
1416 struct drbd_bitmap *b = device->bitmap; in bm_change_bits_to()
1448 static inline void bm_set_full_words_within_one_page(struct drbd_bitmap *b, in bm_set_full_words_within_one_page()
1488 struct drbd_bitmap *b = device->bitmap; in _drbd_bm_set_bits()
1561 struct drbd_bitmap *b = device->bitmap; in drbd_bm_test_bit()
1592 struct drbd_bitmap *b = device->bitmap; in drbd_bm_count_bits()
1646 struct drbd_bitmap *b = device->bitmap; in drbd_bm_e_weight()