Lines Matching refs:wbits
505 u32 wbits = 8 * sb->s_blocksize; in wnd_rescan() local
521 wbits = wnd->bits_last; in wnd_rescan()
534 if (wbits == wnd->free_bits[iw]) { in wnd_rescan()
536 prev_tail += wbits; in wnd_rescan()
537 wnd->total_zeroes += wbits; in wnd_rescan()
563 used = bitmap_weight(buf, wbits); in wnd_rescan()
564 if (used < wbits) { in wnd_rescan()
565 frb = wbits - used; in wnd_rescan()
573 if (wbit + wbits > wnd->nbits) in wnd_rescan()
574 wbits = wnd->nbits - wbit; in wnd_rescan()
577 used = find_next_zero_bit(buf, wbits, wpos); in wnd_rescan()
587 if (wpos >= wbits) { in wnd_rescan()
593 frb = find_next_bit(buf, wbits, wpos); in wnd_rescan()
594 if (frb >= wbits) { in wnd_rescan()
607 } while (wpos < wbits); in wnd_rescan()
650 u32 wbits = blocksize * 8; in wnd_init() local
660 wnd->bits_last = nbits & (wbits - 1); in wnd_init()
662 wnd->bits_last = wbits; in wnd_init()
714 u32 wbits = 8 * sb->s_blocksize; in wnd_set_free() local
716 u32 wbit = bit & (wbits - 1); in wnd_set_free()
724 wbits = wnd->bits_last; in wnd_set_free()
726 tail = wbits - wbit; in wnd_set_free()
768 u32 wbits = 8 * sb->s_blocksize; in wnd_set_used() local
769 u32 wbit = bit & (wbits - 1); in wnd_set_used()
777 wbits = wnd->bits_last; in wnd_set_used()
779 tail = wbits - wbit; in wnd_set_used()
820 u32 wbits = 8 * sb->s_blocksize; in wnd_is_free_hlp() local
821 u32 wbit = bit & (wbits - 1); in wnd_is_free_hlp()
827 wbits = wnd->bits_last; in wnd_is_free_hlp()
829 tail = wbits - wbit; in wnd_is_free_hlp()
832 if (wbits != wnd->free_bits[iw]) { in wnd_is_free_hlp()
896 u32 wbits = 8 * sb->s_blocksize; in wnd_is_used() local
897 u32 wbit = bit & (wbits - 1); in wnd_is_used()
919 wbits = wnd->bits_last; in wnd_is_used()
921 tail = wbits - wbit; in wnd_is_used()
958 u32 wbits, wpos, wzbit, wzend; in wnd_find() local
1117 wbits = sb->s_blocksize * 8; in wnd_find()
1118 wpos = hint & (wbits - 1); in wnd_find()
1125 size_t t = max_alloc + wbits - 1; in wnd_find()
1148 wbits = wnd->bits_last; in wnd_find()
1150 size_t t = max_alloc & (wbits - 1); in wnd_find()
1153 wbits = t; in wnd_find()
1160 ebit = wbit + wbits; in wnd_find()
1205 if (wzend < wbits) { in wnd_find()
1207 max(wzend, wpos), wbits, in wnd_find()
1223 if (!wpos && fbits_valid && wnd->free_bits[iw] == wbits) { in wnd_find()
1225 if (prev_tail + wbits >= to_alloc) { in wnd_find()
1231 prev_tail += wbits; in wnd_find()
1248 fnd = wnd_scan(buf, wbit, wpos, wbits, to_alloc, &prev_tail, in wnd_find()
1311 u32 wbits = blocksize * 8; in wnd_extend() local
1322 new_last = new_bits & (wbits - 1); in wnd_extend()
1324 new_last = wbits; in wnd_extend()
1340 b0 = old_bits & (wbits - 1); in wnd_extend()
1350 wbits = new_last; in wnd_extend()
1352 op = b0 + bits > wbits ? wbits - b0 : bits; in wnd_extend()
1367 frb = wbits - bitmap_weight(buf, wbits); in wnd_extend()
1408 u32 wbits = 8 * sb->s_blocksize; in ntfs_trim_fs() local
1413 u32 wbit = lcn_from & (wbits - 1); in ntfs_trim_fs()
1428 CLST lcn_wnd = iw * wbits; in ntfs_trim_fs()
1438 wbits = wnd->bits_last; in ntfs_trim_fs()
1440 if (lcn_wnd + wbits > lcn_to) in ntfs_trim_fs()
1441 wbits = lcn_to - lcn_wnd; in ntfs_trim_fs()
1451 for (; wbit < wbits; wbit++) { in ntfs_trim_fs()