Lines Matching refs:wbit
62 static size_t wnd_scan(const void *buf, size_t wbit, u32 wpos, u32 wend, in wnd_scan() argument
73 *b_pos = wbit - *prev_tail; in wnd_scan()
84 *b_pos = wbit - *prev_tail; in wnd_scan()
100 *b_pos = wbit + wpos - *prev_tail; in wnd_scan()
105 return wbit + wpos - *prev_tail; in wnd_scan()
508 size_t wpos, wbit, iw, vbo; in wnd_rescan() local
569 wbit = vbo * 8; in wnd_rescan()
571 if (wbit + wbits > wnd->nbits) in wnd_rescan()
572 wbits = wnd->nbits - wbit; in wnd_rescan()
578 wnd_add_free_ext(wnd, wbit + wpos - prev_tail, in wnd_rescan()
598 wnd_add_free_ext(wnd, wbit + wpos - prev_tail, in wnd_rescan()
716 u32 wbit = bit & (wbits - 1); in wnd_set_free() local
725 tail = wbits - wbit; in wnd_set_free()
736 ntfs_bitmap_clear_le(bh->b_data, wbit, op); in wnd_set_free()
747 wbit = 0; in wnd_set_free()
766 u32 wbit = bit & (wbits - 1); in wnd_set_used() local
775 tail = wbits - wbit; in wnd_set_used()
786 ntfs_bitmap_set_le(bh->b_data, wbit, op); in wnd_set_used()
796 wbit = 0; in wnd_set_used()
854 u32 wbit = bit & (wbits - 1); in wnd_is_free_hlp() local
862 tail = wbits - wbit; in wnd_is_free_hlp()
872 ret = are_bits_clear(bh->b_data, wbit, op); in wnd_is_free_hlp()
880 wbit = 0; in wnd_is_free_hlp()
930 u32 wbit = bit & (wbits - 1); in wnd_is_used() local
954 tail = wbits - wbit; in wnd_is_used()
964 ret = are_bits_set(bh->b_data, wbit, op); in wnd_is_used()
971 wbit = 0; in wnd_is_used()
993 size_t iw, prev_tail, nwnd, wbit, ebit, zbit, zend; in wnd_find() local
1164 wbit = iw << log2_bits; in wnd_find()
1168 b_pos = wbit - prev_tail; in wnd_find()
1192 ebit = wbit + wbits; in wnd_find()
1193 zbit = max(wnd->zone_bit, wbit); in wnd_find()
1200 wzbit = zbit - wbit; in wnd_find()
1201 wzend = zend - wbit; in wnd_find()
1223 fnd = wnd_scan(bh->b_data, wbit, wpos, in wnd_find()
1237 fnd = wnd_scan(bh->b_data, wbit, in wnd_find()
1257 fnd = wbit + wpos - prev_tail; in wnd_find()
1277 fnd = wnd_scan(bh->b_data, wbit, wpos, wbits, to_alloc, in wnd_find()
1440 u32 wbit = lcn_from & (wbits - 1); in ntfs_trim_fs() local
1453 for (; iw < wnd->nwnd; iw++, wbit = 0) { in ntfs_trim_fs()
1475 for (; wbit < wbits; wbit++) { in ntfs_trim_fs()
1476 if (!test_bit_le(wbit, bh->b_data)) { in ntfs_trim_fs()
1478 lcn = lcn_wnd + wbit; in ntfs_trim_fs()