Lines Matching refs:drbd_bitmap
83 struct drbd_bitmap { struct
115 struct drbd_bitmap *b = device->bitmap; in __bm_print_lock_info() argument
126 struct drbd_bitmap *b = device->bitmap; in drbd_bm_lock()
153 struct drbd_bitmap *b = device->bitmap; in drbd_bm_unlock()
213 struct drbd_bitmap *b = device->bitmap; in bm_page_lock_io()
220 struct drbd_bitmap *b = device->bitmap; in bm_page_unlock_io()
256 struct drbd_bitmap *b = device->bitmap; in drbd_bm_mark_for_writeout()
296 static unsigned int bm_word_to_page_idx(struct drbd_bitmap *b, unsigned long long_nr) in bm_word_to_page_idx()
304 static unsigned int bm_bit_to_page_idx(struct drbd_bitmap *b, u64 bitnr) in bm_bit_to_page_idx()
312 static unsigned long *__bm_map_pidx(struct drbd_bitmap *b, unsigned int idx) in __bm_map_pidx()
318 static unsigned long *bm_map_pidx(struct drbd_bitmap *b, unsigned int idx) in bm_map_pidx()
378 static struct page **bm_realloc_pages(struct drbd_bitmap *b, unsigned long want) in bm_realloc_pages()
435 struct drbd_bitmap *b = device->bitmap; in drbd_bm_init()
437 b = kzalloc(sizeof(struct drbd_bitmap), GFP_KERNEL); in drbd_bm_init()
482 static int bm_clear_surplus(struct drbd_bitmap *b) in bm_clear_surplus()
519 static void bm_set_surplus(struct drbd_bitmap *b) in bm_set_surplus()
554 static unsigned long bm_count_bits(struct drbd_bitmap *b) in bm_count_bits()
582 static void bm_memset(struct drbd_bitmap *b, size_t offset, int c, size_t len) in bm_memset()
632 struct drbd_bitmap *b = device->bitmap; in drbd_bm_resize()
756 struct drbd_bitmap *b = device->bitmap; in _drbd_bm_total_weight()
785 struct drbd_bitmap *b = device->bitmap; in drbd_bm_words()
796 struct drbd_bitmap *b = device->bitmap; in drbd_bm_bits()
811 struct drbd_bitmap *b = device->bitmap; in drbd_bm_merge_lel()
860 struct drbd_bitmap *b = device->bitmap; in drbd_bm_get_lel()
896 struct drbd_bitmap *b = device->bitmap; in drbd_bm_set_all()
912 struct drbd_bitmap *b = device->bitmap; in drbd_bm_clear_all()
941 struct drbd_bitmap *b = device->bitmap; in drbd_bm_endio()
994 struct drbd_bitmap *b = device->bitmap; in bm_page_io_async()
1068 struct drbd_bitmap *b = device->bitmap; in bm_rw()
1292 struct drbd_bitmap *b = device->bitmap; in __bm_find_next()
1332 struct drbd_bitmap *b = device->bitmap; in bm_find_next()
1386 struct drbd_bitmap *b = device->bitmap; in __bm_change_bits_to()
1436 struct drbd_bitmap *b = device->bitmap; in bm_change_bits_to()
1468 static inline void bm_set_full_words_within_one_page(struct drbd_bitmap *b, in bm_set_full_words_within_one_page()
1508 struct drbd_bitmap *b = device->bitmap; in _drbd_bm_set_bits()
1581 struct drbd_bitmap *b = device->bitmap; in drbd_bm_test_bit()
1612 struct drbd_bitmap *b = device->bitmap; in drbd_bm_count_bits()
1666 struct drbd_bitmap *b = device->bitmap; in drbd_bm_e_weight()