Lines Matching refs:BITS_PER_BITMAP

32 #define BITS_PER_BITMAP		(PAGE_SIZE * 8UL)  macro
698 u64 bytes_per_bg = BITS_PER_BITMAP * ctl->unit; in recalculate_thresholds()
1578 bytes_per_bitmap = BITS_PER_BITMAP * ctl->unit; in offset_to_bitmap()
1792 if (entry->offset + BITS_PER_BITMAP * ctl->unit > offset) in tree_search_offset()
1806 if (entry->offset + BITS_PER_BITMAP * in tree_search_offset()
1888 ASSERT(end <= BITS_PER_BITMAP); in bitmap_clear_bits()
1901 if (end < BITS_PER_BITMAP && test_bit(end, info->bitmap)) in bitmap_clear_bits()
1924 ASSERT(end <= BITS_PER_BITMAP); in btrfs_bitmap_set_bits()
1941 if (end < BITS_PER_BITMAP && test_bit(end, info->bitmap)) in btrfs_bitmap_set_bits()
1980 for_each_set_bit_from(i, bitmap_info->bitmap, BITS_PER_BITMAP) { in search_bitmap()
1986 BITS_PER_BITMAP, i); in search_bitmap()
2160 end = bitmap_info->offset + (u64)(BITS_PER_BITMAP * ctl->unit) - 1; in remove_from_bitmap()
2248 end = info->offset + (u64)(BITS_PER_BITMAP * ctl->unit); in add_bytes_to_bitmap()
2302 if (((BITS_PER_BITMAP * ctl->unit) >> 1) > block_group->length) in use_bitmap()
2514 j = find_next_zero_bit(bitmap->bitmap, BITS_PER_BITMAP, i); in steal_from_bitmap_to_end()
2558 for_each_clear_bit_from(j, bitmap->bitmap, BITS_PER_BITMAP) { in steal_from_bitmap_to_front()
3353 for_each_set_bit_from(i, entry->bitmap, BITS_PER_BITMAP) { in btrfs_bitmap_cluster()
3355 BITS_PER_BITMAP, i); in btrfs_bitmap_cluster()
3996 offset += BITS_PER_BITMAP * ctl->unit; in trim_bitmaps()
4044 div64_u64_rem(end, BITS_PER_BITMAP * ctl->unit, &rem); in btrfs_trim_block_group()