Lines Matching refs:wbits

506 	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()
561 used = ntfs_bitmap_weight_le(bh->b_data, wbits); in wnd_rescan()
562 if (used < wbits) { in wnd_rescan()
563 frb = wbits - used; in wnd_rescan()
571 if (wbit + wbits > wnd->nbits) in wnd_rescan()
572 wbits = wnd->nbits - wbit; in wnd_rescan()
575 used = find_next_zero_bit_le(bh->b_data, wbits, wpos); in wnd_rescan()
585 if (wpos >= wbits) { in wnd_rescan()
591 frb = find_next_bit_le(bh->b_data, wbits, wpos); in wnd_rescan()
592 if (frb >= wbits) { in wnd_rescan()
605 } while (wpos < wbits); in wnd_rescan()
648 u32 wbits = blocksize * 8; in wnd_init() local
658 wnd->bits_last = nbits & (wbits - 1); in wnd_init()
660 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()
723 wbits = wnd->bits_last; in wnd_set_free()
725 tail = wbits - wbit; in wnd_set_free()
765 u32 wbits = 8 * sb->s_blocksize; in wnd_set_used() local
766 u32 wbit = bit & (wbits - 1); in wnd_set_used()
773 wbits = wnd->bits_last; in wnd_set_used()
775 tail = wbits - wbit; in wnd_set_used()
853 u32 wbits = 8 * sb->s_blocksize; in wnd_is_free_hlp() local
854 u32 wbit = bit & (wbits - 1); in wnd_is_free_hlp()
860 wbits = wnd->bits_last; in wnd_is_free_hlp()
862 tail = wbits - wbit; in wnd_is_free_hlp()
865 if (wbits != wnd->free_bits[iw]) { in wnd_is_free_hlp()
929 u32 wbits = 8 * sb->s_blocksize; in wnd_is_used() local
930 u32 wbit = bit & (wbits - 1); in wnd_is_used()
952 wbits = wnd->bits_last; in wnd_is_used()
954 tail = wbits - wbit; in wnd_is_used()
991 u32 wbits, wpos, wzbit, wzend; in wnd_find() local
1149 wbits = sb->s_blocksize * 8; in wnd_find()
1150 wpos = hint & (wbits - 1); in wnd_find()
1157 size_t t = max_alloc + wbits - 1; in wnd_find()
1180 wbits = wnd->bits_last; in wnd_find()
1182 size_t t = max_alloc & (wbits - 1); in wnd_find()
1185 wbits = t; in wnd_find()
1192 ebit = wbit + wbits; in wnd_find()
1236 if (wzend < wbits) { in wnd_find()
1238 max(wzend, wpos), wbits, in wnd_find()
1254 if (!wpos && fbits_valid && wnd->free_bits[iw] == wbits) { in wnd_find()
1256 if (prev_tail + wbits >= to_alloc) { in wnd_find()
1262 prev_tail += wbits; in wnd_find()
1277 fnd = wnd_scan(bh->b_data, wbit, wpos, wbits, to_alloc, in wnd_find()
1340 u32 wbits = blocksize * 8; in wnd_extend() local
1351 new_last = new_bits & (wbits - 1); in wnd_extend()
1353 new_last = wbits; in wnd_extend()
1369 b0 = old_bits & (wbits - 1); in wnd_extend()
1378 wbits = new_last; in wnd_extend()
1380 op = b0 + bits > wbits ? wbits - b0 : bits; in wnd_extend()
1394 frb = wbits - ntfs_bitmap_weight_le(bh->b_data, wbits); in wnd_extend()
1435 u32 wbits = 8 * sb->s_blocksize; in ntfs_trim_fs() local
1440 u32 wbit = lcn_from & (wbits - 1); in ntfs_trim_fs()
1454 CLST lcn_wnd = iw * wbits; in ntfs_trim_fs()
1464 wbits = wnd->bits_last; in ntfs_trim_fs()
1466 if (lcn_wnd + wbits > lcn_to) in ntfs_trim_fs()
1467 wbits = lcn_to - lcn_wnd; in ntfs_trim_fs()
1475 for (; wbit < wbits; wbit++) { in ntfs_trim_fs()