Lines Matching refs:size_t
27 size_t key;
36 static struct buffer_head *wnd_map(struct wnd_bitmap *wnd, size_t iw);
37 static bool wnd_is_free_hlp(struct wnd_bitmap *wnd, size_t bit, size_t bits);
54 static inline u32 wnd_bits(const struct wnd_bitmap *wnd, size_t i) in wnd_bits()
67 static size_t wnd_scan(const ulong *buf, size_t wbit, u32 wpos, u32 wend, in wnd_scan()
68 size_t to_alloc, size_t *prev_tail, size_t *b_pos, in wnd_scan()
69 size_t *b_len) in wnd_scan()
72 size_t free_len; in wnd_scan()
146 static struct rb_node *rb_lookup(struct rb_root *root, size_t v) in rb_lookup()
175 size_t e_ckey = e->count.key; in rb_insert_count()
176 size_t e_skey = e->start.key; in rb_insert_count()
208 size_t e_skey = e->start.key; in rb_insert_start()
235 static void wnd_add_free_ext(struct wnd_bitmap *wnd, size_t bit, size_t len, in wnd_add_free_ext()
239 size_t ib, end_in = bit + len; in wnd_add_free_ext()
270 size_t next_end; in wnd_add_free_ext()
366 static void wnd_remove_free_ext(struct wnd_bitmap *wnd, size_t bit, size_t len) in wnd_remove_free_ext()
370 size_t end_in = bit + len; in wnd_remove_free_ext()
371 size_t end3, end, new_key, new_len, max_new_len; in wnd_remove_free_ext()
504 size_t prev_tail = 0; in wnd_rescan()
513 size_t wpos, wbit, iw, vbo; in wnd_rescan()
641 size_t zlen = wnd->zone_end - wnd->zone_bit; in wnd_rescan()
651 int wnd_init(struct wnd_bitmap *wnd, struct super_block *sb, size_t nbits) in wnd_init()
687 static struct buffer_head *wnd_map(struct wnd_bitmap *wnd, size_t iw) in wnd_map()
689 size_t vbo; in wnd_map()
716 int wnd_set_free(struct wnd_bitmap *wnd, size_t bit, size_t bits) in wnd_set_free()
720 size_t bits0 = bits; in wnd_set_free()
722 size_t iw = bit >> (sb->s_blocksize_bits + 3); in wnd_set_free()
769 int wnd_set_used(struct wnd_bitmap *wnd, size_t bit, size_t bits) in wnd_set_used()
773 size_t bits0 = bits; in wnd_set_used()
774 size_t iw = bit >> (sb->s_blocksize_bits + 3); in wnd_set_used()
823 static bool wnd_is_free_hlp(struct wnd_bitmap *wnd, size_t bit, size_t bits) in wnd_is_free_hlp()
826 size_t iw = bit >> (sb->s_blocksize_bits + 3); in wnd_is_free_hlp()
866 bool wnd_is_free(struct wnd_bitmap *wnd, size_t bit, size_t bits) in wnd_is_free()
870 size_t end; in wnd_is_free()
898 bool wnd_is_used(struct wnd_bitmap *wnd, size_t bit, size_t bits) in wnd_is_used()
902 size_t iw = bit >> (sb->s_blocksize_bits + 3); in wnd_is_used()
905 size_t end; in wnd_is_used()
961 size_t wnd_find(struct wnd_bitmap *wnd, size_t to_alloc, size_t hint, in wnd_find()
962 size_t flags, size_t *allocated) in wnd_find()
966 size_t fnd, max_alloc, b_len, b_pos; in wnd_find()
967 size_t iw, prev_tail, nwnd, wbit, ebit, zbit, zend; in wnd_find()
968 size_t to_alloc0 = to_alloc; in wnd_find()
978 size_t zeroes = wnd_zeroes(wnd); in wnd_find()
1042 size_t len = e->start.key + e->count.key - hint; in wnd_find()
1080 size_t op, max_check; in wnd_find()
1132 size_t t = max_alloc + wbits - 1; in wnd_find()
1157 size_t t = max_alloc & (wbits - 1); in wnd_find()
1273 size_t nextmax = hint + to_alloc; in wnd_find()
1312 int wnd_extend(struct wnd_bitmap *wnd, size_t new_bits) in wnd_extend()
1320 size_t bits, iw, new_wnd; in wnd_extend()
1321 size_t old_bits = wnd->nbits; in wnd_extend()
1353 size_t frb; in wnd_extend()
1398 void wnd_zone_set(struct wnd_bitmap *wnd, size_t lcn, size_t len) in wnd_zone_set()
1400 size_t zlen; in wnd_zone_set()
1422 size_t iw = lcn_from >> (sb->s_blocksize_bits + 3); in ntfs_trim_fs()