Lines Matching defs:unit

1437 static inline unsigned long offset_to_bit(u64 bitmap_start, u32 unit,
1442 return (unsigned long)(div_u64(offset, unit));
1445 static inline unsigned long bytes_to_bits(u64 bytes, u32 unit)
1447 return (unsigned long)(div_u64(bytes, unit));
1456 bytes_per_bitmap = BITS_PER_BITMAP * ctl->unit;
1613 if (entry->offset + BITS_PER_BITMAP * ctl->unit > offset)
1624 ctl->unit > offset)
1687 u64 bytes_per_bg = BITS_PER_BITMAP * ctl->unit;
1705 bitmap_bytes = ctl->total_bitmaps * ctl->unit;
1725 start = offset_to_bit(info->offset, ctl->unit, offset);
1726 count = bytes_to_bits(bytes, ctl->unit);
1733 if (info->max_extent_size > ctl->unit)
1764 start = offset_to_bit(info->offset, ctl->unit, offset);
1765 count = bytes_to_bits(bytes, ctl->unit);
1812 i = offset_to_bit(bitmap_info->offset, ctl->unit,
1814 bits = bytes_to_bits(*bytes, ctl->unit);
1834 *offset = (u64)(i * ctl->unit) + bitmap_info->offset;
1835 *bytes = (u64)(found_bits) * ctl->unit;
1839 *bytes = (u64)(max_bits) * ctl->unit;
1933 bytes -= (rs - re) * ctl->unit;
1987 end = bitmap_info->offset + (u64)(BITS_PER_BITMAP * ctl->unit) - 1;
1996 search_bytes = ctl->unit;
2042 search_bytes = ctl->unit;
2075 end = info->offset + (u64)(BITS_PER_BITMAP * ctl->unit);
2135 if (((BITS_PER_BITMAP * ctl->unit) >> 1) > block_group->length)
2350 i = offset_to_bit(bitmap->offset, ctl->unit, end);
2354 bytes = (j - i) * ctl->unit;
2395 i = offset_to_bit(bitmap->offset, ctl->unit, info->offset) - 1;
2407 bytes = (i + 1) * ctl->unit;
2409 bytes = (i - prev_j) * ctl->unit;
2688 ctl->unit = fs_info->sectorsize;
3093 i = offset_to_bit(entry->offset, ctl->unit,
3095 want_bits = bytes_to_bits(bytes, ctl->unit);
3096 min_bits = bytes_to_bits(min_bytes, ctl->unit);
3122 entry->max_extent_size = (u64)max_bits * ctl->unit;
3133 if (cluster->max_size < found_bits * ctl->unit)
3134 cluster->max_size = found_bits * ctl->unit;
3141 cluster->window_start = start * ctl->unit + entry->offset;
3148 total_found * ctl->unit, 1);
3737 offset += BITS_PER_BITMAP * ctl->unit;
3783 div64_u64_rem(end, BITS_PER_BITMAP * ctl->unit, &rem);
4102 bit_bytes = ctl->unit;