Lines Matching refs:wbits

505 	u32 wbits = 8 * sb->s_blocksize;  in wnd_rescan()  local
520 wbits = wnd->bits_last; in wnd_rescan()
533 if (wbits == wnd->free_bits[iw]) { in wnd_rescan()
535 prev_tail += wbits; in wnd_rescan()
536 wnd->total_zeroes += wbits; in wnd_rescan()
560 used = ntfs_bitmap_weight_le(bh->b_data, wbits); in wnd_rescan()
561 if (used < wbits) { in wnd_rescan()
562 frb = wbits - used; in wnd_rescan()
570 if (wbit + wbits > wnd->nbits) in wnd_rescan()
571 wbits = wnd->nbits - wbit; in wnd_rescan()
574 used = find_next_zero_bit_le(bh->b_data, wbits, wpos); in wnd_rescan()
584 if (wpos >= wbits) { in wnd_rescan()
590 frb = find_next_bit_le(bh->b_data, wbits, wpos); in wnd_rescan()
591 if (frb >= wbits) { in wnd_rescan()
604 } while (wpos < wbits); in wnd_rescan()
647 u32 wbits = blocksize * 8; in wnd_init() local
657 wnd->bits_last = nbits & (wbits - 1); in wnd_init()
659 wnd->bits_last = wbits; in wnd_init()
711 u32 wbits = 8 * sb->s_blocksize; in wnd_set_free() local
713 u32 wbit = bit & (wbits - 1); in wnd_set_free()
720 wbits = wnd->bits_last; in wnd_set_free()
722 tail = wbits - wbit; in wnd_set_free()
762 u32 wbits = 8 * sb->s_blocksize; in wnd_set_used() local
763 u32 wbit = bit & (wbits - 1); in wnd_set_used()
770 wbits = wnd->bits_last; in wnd_set_used()
772 tail = wbits - wbit; in wnd_set_used()
850 u32 wbits = 8 * sb->s_blocksize; in wnd_is_free_hlp() local
851 u32 wbit = bit & (wbits - 1); in wnd_is_free_hlp()
857 wbits = wnd->bits_last; in wnd_is_free_hlp()
859 tail = wbits - wbit; in wnd_is_free_hlp()
862 if (wbits != wnd->free_bits[iw]) { in wnd_is_free_hlp()
926 u32 wbits = 8 * sb->s_blocksize; in wnd_is_used() local
927 u32 wbit = bit & (wbits - 1); in wnd_is_used()
949 wbits = wnd->bits_last; in wnd_is_used()
951 tail = wbits - wbit; in wnd_is_used()
988 u32 wbits, wpos, wzbit, wzend; in wnd_find() local
1146 wbits = sb->s_blocksize * 8; in wnd_find()
1147 wpos = hint & (wbits - 1); in wnd_find()
1154 size_t t = max_alloc + wbits - 1; in wnd_find()
1177 wbits = wnd->bits_last; in wnd_find()
1179 size_t t = max_alloc & (wbits - 1); in wnd_find()
1182 wbits = t; in wnd_find()
1189 ebit = wbit + wbits; in wnd_find()
1233 if (wzend < wbits) { in wnd_find()
1235 max(wzend, wpos), wbits, in wnd_find()
1251 if (!wpos && fbits_valid && wnd->free_bits[iw] == wbits) { in wnd_find()
1253 if (prev_tail + wbits >= to_alloc) { in wnd_find()
1259 prev_tail += wbits; in wnd_find()
1274 fnd = wnd_scan(bh->b_data, wbit, wpos, wbits, to_alloc, in wnd_find()
1337 u32 wbits = blocksize * 8; in wnd_extend() local
1348 new_last = new_bits & (wbits - 1); in wnd_extend()
1350 new_last = wbits; in wnd_extend()
1366 b0 = old_bits & (wbits - 1); in wnd_extend()
1375 wbits = new_last; in wnd_extend()
1377 op = b0 + bits > wbits ? wbits - b0 : bits; in wnd_extend()
1391 frb = wbits - ntfs_bitmap_weight_le(bh->b_data, wbits); in wnd_extend()
1432 u32 wbits = 8 * sb->s_blocksize; in ntfs_trim_fs() local
1437 u32 wbit = lcn_from & (wbits - 1); in ntfs_trim_fs()
1451 CLST lcn_wnd = iw * wbits; in ntfs_trim_fs()
1461 wbits = wnd->bits_last; in ntfs_trim_fs()
1463 if (lcn_wnd + wbits > lcn_to) in ntfs_trim_fs()
1464 wbits = lcn_to - lcn_wnd; in ntfs_trim_fs()
1472 for (; wbit < wbits; wbit++) { in ntfs_trim_fs()