Lines Matching refs:BITS_PER_BITMAP
21 #define BITS_PER_BITMAP (PAGE_SIZE * 8UL) macro
1408 bytes_per_bitmap = BITS_PER_BITMAP * ctl->unit; in offset_to_bitmap()
1565 if (entry->offset + BITS_PER_BITMAP * ctl->unit > offset) in tree_search_offset()
1575 if (entry->offset + BITS_PER_BITMAP * in tree_search_offset()
1629 u64 bytes_per_bg = BITS_PER_BITMAP * ctl->unit; in recalculate_thresholds()
1677 ASSERT(start + count <= BITS_PER_BITMAP); in __bitmap_clear_bits()
1700 ASSERT(start + count <= BITS_PER_BITMAP); in bitmap_set_bits()
1737 for_each_set_bit_from(i, bitmap_info->bitmap, BITS_PER_BITMAP) { in search_bitmap()
1743 BITS_PER_BITMAP, i); in search_bitmap()
1863 end = bitmap_info->offset + (u64)(BITS_PER_BITMAP * ctl->unit) - 1; in remove_from_bitmap()
1938 end = info->offset + (u64)(BITS_PER_BITMAP * ctl->unit); in add_bytes_to_bitmap()
1994 if (((BITS_PER_BITMAP * ctl->unit) >> 1) > block_group->key.offset) in use_bitmap()
2183 j = find_next_zero_bit(bitmap->bitmap, BITS_PER_BITMAP, i); in steal_from_bitmap_to_end()
2226 for_each_clear_bit_from(j, bitmap->bitmap, BITS_PER_BITMAP) { in steal_from_bitmap_to_front()
2810 for_each_set_bit_from(i, entry->bitmap, BITS_PER_BITMAP) { in btrfs_bitmap_cluster()
2812 BITS_PER_BITMAP, i); in btrfs_bitmap_cluster()
3286 offset += BITS_PER_BITMAP * ctl->unit; in trim_bitmaps()
3289 if (start >= offset + BITS_PER_BITMAP * ctl->unit) in trim_bitmaps()
3290 offset += BITS_PER_BITMAP * ctl->unit; in trim_bitmaps()