Lines Matching refs:bm_bits
97 unsigned long bm_bits; member
492 tmp = (b->bm_bits & BITS_PER_PAGE_MASK); in bm_clear_surplus()
528 tmp = (b->bm_bits & BITS_PER_PAGE_MASK); in bm_set_surplus()
560 unsigned long mask = (1UL << (b->bm_bits & BITS_PER_LONG_MASK)) -1; in bm_count_bits()
571 last_word = ((b->bm_bits - 1) & BITS_PER_PAGE_MASK) >> LN2_BPL; in bm_count_bits()
660 b->bm_bits = in drbd_bm_resize()
708 obits = b->bm_bits; in drbd_bm_resize()
716 b->bm_bits = bits; in drbd_bm_resize()
802 return b->bm_bits; in drbd_bm_bits()
907 b->bm_set = b->bm_bits; in drbd_bm_set_all()
1266 if (bm_fo > b->bm_bits) { in __bm_find_next()
1267 drbd_err(device, "bm_fo=%lu bm_bits=%lu\n", bm_fo, b->bm_bits); in __bm_find_next()
1270 while (bm_fo < b->bm_bits) { in __bm_find_next()
1285 if (bm_fo >= b->bm_bits) in __bm_find_next()
1361 if (e >= b->bm_bits) { in __bm_change_bits_to()
1363 s, e, b->bm_bits); in __bm_change_bits_to()
1364 e = b->bm_bits ? b->bm_bits -1 : 0; in __bm_change_bits_to()
1561 if (bitnr < b->bm_bits) { in drbd_bm_test_bit()
1565 } else if (bitnr == b->bm_bits) { in drbd_bm_test_bit()
1568 drbd_err(device, "bitnr=%lu > bm_bits=%lu\n", bitnr, b->bm_bits); in drbd_bm_test_bit()
1606 if (expect(bitnr < b->bm_bits)) in drbd_bm_count_bits()
1609 drbd_err(device, "bitnr=%lu bm_bits=%lu\n", bitnr, b->bm_bits); in drbd_bm_count_bits()