Lines Matching refs:bm_bits
97 unsigned long bm_bits; member
490 tmp = (b->bm_bits & BITS_PER_PAGE_MASK); in bm_clear_surplus()
526 tmp = (b->bm_bits & BITS_PER_PAGE_MASK); in bm_set_surplus()
558 unsigned long mask = (1UL << (b->bm_bits & BITS_PER_LONG_MASK)) -1; in bm_count_bits()
569 last_word = ((b->bm_bits - 1) & BITS_PER_PAGE_MASK) >> LN2_BPL; in bm_count_bits()
658 b->bm_bits = in drbd_bm_resize()
706 obits = b->bm_bits; in drbd_bm_resize()
714 b->bm_bits = bits; in drbd_bm_resize()
800 return b->bm_bits; in drbd_bm_bits()
905 b->bm_set = b->bm_bits; in drbd_bm_set_all()
1298 if (bm_fo > b->bm_bits) { in __bm_find_next()
1299 drbd_err(device, "bm_fo=%lu bm_bits=%lu\n", bm_fo, b->bm_bits); in __bm_find_next()
1302 while (bm_fo < b->bm_bits) { in __bm_find_next()
1317 if (bm_fo >= b->bm_bits) in __bm_find_next()
1393 if (e >= b->bm_bits) { in __bm_change_bits_to()
1395 s, e, b->bm_bits); in __bm_change_bits_to()
1396 e = b->bm_bits ? b->bm_bits -1 : 0; in __bm_change_bits_to()
1593 if (bitnr < b->bm_bits) { in drbd_bm_test_bit()
1597 } else if (bitnr == b->bm_bits) { in drbd_bm_test_bit()
1600 drbd_err(device, "bitnr=%lu > bm_bits=%lu\n", bitnr, b->bm_bits); in drbd_bm_test_bit()
1638 if (expect(bitnr < b->bm_bits)) in drbd_bm_count_bits()
1641 drbd_err(device, "bitnr=%lu bm_bits=%lu\n", bitnr, b->bm_bits); in drbd_bm_count_bits()