Lines Matching refs:bits
37 static bool wnd_is_free_hlp(struct wnd_bitmap *wnd, size_t bit, size_t bits);
709 int wnd_set_free(struct wnd_bitmap *wnd, size_t bit, size_t bits) in wnd_set_free() argument
719 for (; iw < wnd->nwnd && bits; iw++, bit += op, bits -= op, wbit = 0) { in wnd_set_free()
723 op = min_t(u32, wbits - wbit, bits); in wnd_set_free()
751 int wnd_set_used(struct wnd_bitmap *wnd, size_t bit, size_t bits) in wnd_set_used() argument
761 for (; iw < wnd->nwnd && bits; iw++, bit += op, bits -= op, wbit = 0) { in wnd_set_used()
765 op = min_t(u32, wbits - wbit, bits); in wnd_set_used()
799 int wnd_set_used_safe(struct wnd_bitmap *wnd, size_t bit, size_t bits, in wnd_set_used_safe() argument
806 for (i = 0; i < bits; i++) { in wnd_set_used_safe()
833 static bool wnd_is_free_hlp(struct wnd_bitmap *wnd, size_t bit, size_t bits) in wnd_is_free_hlp() argument
841 for (; iw < wnd->nwnd && bits; iw++, bits -= op, wbit = 0) { in wnd_is_free_hlp()
845 op = min_t(u32, wbits - wbit, bits); in wnd_is_free_hlp()
870 bool wnd_is_free(struct wnd_bitmap *wnd, size_t bit, size_t bits) in wnd_is_free() argument
888 if (bit < end && bit + bits <= end) in wnd_is_free()
892 ret = wnd_is_free_hlp(wnd, bit, bits); in wnd_is_free()
902 bool wnd_is_used(struct wnd_bitmap *wnd, size_t bit, size_t bits) in wnd_is_used() argument
917 end = bit + bits; in wnd_is_used()
927 for (; iw < wnd->nwnd && bits; iw++, bits -= op, wbit = 0) { in wnd_is_used()
931 op = min_t(u32, wbits - wbit, bits); in wnd_is_used()
1314 size_t bits, iw, new_wnd; in wnd_extend() local
1340 bits = new_bits - old_bits; in wnd_extend()
1343 for (iw = old_bits >> (sb->s_blocksize_bits + 3); bits; iw += 1) { in wnd_extend()
1352 op = b0 + bits > wbits ? wbits - b0 : bits; in wnd_extend()
1376 bits -= op; in wnd_extend()
1531 unsigned int ntfs_bitmap_weight_le(const void *bitmap, int bits) in ntfs_bitmap_weight_le() argument
1534 unsigned int k, lim = bits / BITS_PER_LONG; in ntfs_bitmap_weight_le()
1540 if (bits % BITS_PER_LONG) { in ntfs_bitmap_weight_le()
1542 BITMAP_LAST_WORD_MASK(bits)); in ntfs_bitmap_weight_le()