Home
last modified time | relevance | path

Searched refs:wnd (Results 1 – 7 of 7) sorted by relevance

/linux/fs/ntfs3/
H A Dbitmap.c35 static int wnd_rescan(struct wnd_bitmap *wnd);
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);
123 void wnd_close(struct wnd_bitmap *wnd) in wnd_close() argument
127 kvfree(wnd->free_bits); in wnd_close()
128 wnd->free_bits = NULL; in wnd_close()
129 run_close(&wnd->run); in wnd_close()
131 node = rb_first(&wnd->start_tree); in wnd_close()
135 rb_erase(node, &wnd->start_tree); in wnd_close()
231 static void wnd_add_free_ext(struct wnd_bitmap *wnd, size_t bit, size_t len, in wnd_add_free_ext() argument
[all …]
H A Dfsntfs.c360 struct wnd_bitmap *wnd = &sbi->used.bitmap; in ntfs_look_for_free_space() local
362 down_write_nested(&wnd->rw_lock, BITMAP_MUTEX_CLUSTERS); in ntfs_look_for_free_space()
364 zlen = wnd_zone_len(wnd); in ntfs_look_for_free_space()
371 zlen = wnd_zone_len(wnd); in ntfs_look_for_free_space()
380 lcn = wnd_zone_bit(wnd); in ntfs_look_for_free_space()
383 wnd_zone_set(wnd, lcn + alen, zlen - alen); in ntfs_look_for_free_space()
385 err = wnd_set_used(wnd, lcn, alen); in ntfs_look_for_free_space()
399 if (lcn >= wnd->nbits) in ntfs_look_for_free_space()
402 alen = wnd_find(wnd, len, lcn, BITMAP_FIND_MARK_AS_USED, &alcn); in ntfs_look_for_free_space()
407 zlen = wnd_zone_len(wnd); in ntfs_look_for_free_space()
[all …]
H A Dntfs_fs.h836 void wnd_close(struct wnd_bitmap *wnd);
837 static inline size_t wnd_zeroes(const struct wnd_bitmap *wnd) in wnd_zeroes() argument
839 return wnd->total_zeroes; in wnd_zeroes()
841 int wnd_init(struct wnd_bitmap *wnd, struct super_block *sb, size_t nbits);
842 int wnd_set_free(struct wnd_bitmap *wnd, size_t bit, size_t bits);
843 int wnd_set_used(struct wnd_bitmap *wnd, size_t bit, size_t bits);
844 int wnd_set_used_safe(struct wnd_bitmap *wnd, size_t bit, size_t bits,
846 bool wnd_is_free(struct wnd_bitmap *wnd, size_t bit, size_t bits);
847 bool wnd_is_used(struct wnd_bitmap *wnd, size_t bit, size_t bits);
852 size_t wnd_find(struct wnd_bitmap *wnd, size_t to_alloc, size_t hint,
[all …]
H A Drun.c1060 struct wnd_bitmap *wnd; in run_unpack_ex() local
1073 wnd = &sbi->used.bitmap; in run_unpack_ex()
1089 down_read_nested(&wnd->rw_lock, BITMAP_MUTEX_CLUSTERS); in run_unpack_ex()
1090 zone = max(wnd->zone_bit, lcn) < min(wnd->zone_end, lcn + len); in run_unpack_ex()
1092 ok = !zone && wnd_is_used(wnd, lcn, len); in run_unpack_ex()
1093 up_read(&wnd->rw_lock); in run_unpack_ex()
1100 if (!down_write_trylock(&wnd->rw_lock)) in run_unpack_ex()
1108 wnd_zone_set(wnd, 0, 0); in run_unpack_ex()
1112 err = wnd_set_used_safe(wnd, lcn, len, &done); in run_unpack_ex()
1124 up_write(&wnd->rw_lock); in run_unpack_ex()
H A Dsuper.c666 struct wnd_bitmap *wnd = &sbi->used.bitmap; in ntfs_statfs() local
670 buf->f_blocks = wnd->nbits; in ntfs_statfs()
672 buf->f_bfree = buf->f_bavail = wnd_zeroes(wnd); in ntfs_statfs()
/linux/fs/smb/client/compress/
H A Dlz77.c51 static __always_inline u32 lz77_match_len(const void *wnd, const void *cur, const void *end) in lz77_match_len() argument
58 diff = lz77_read64(cur) ^ lz77_read64(wnd); in lz77_match_len()
61 wnd += LZ77_STEP_SIZE; in lz77_match_len()
72 while (cur < end && lz77_read8(cur++) == lz77_read8(wnd++)) in lz77_match_len()
154 const void *wnd; in lz77_compress() local
158 wnd = src + htable[hash]; in lz77_compress()
160 dist = srcp - wnd; in lz77_compress()
163 len = lz77_match_len(wnd, srcp, end); in lz77_compress()
/linux/drivers/net/ethernet/chelsio/inline_crypto/chtls/
H A Dchtls_io.c1256 unsigned int wnd = tp->rcv_wnd; in chtls_select_window() local
1258 wnd = max_t(unsigned int, wnd, tcp_full_space(sk)); in chtls_select_window()
1259 wnd = max_t(unsigned int, MIN_RCV_WND, wnd); in chtls_select_window()
1261 if (wnd > MAX_RCV_WND) in chtls_select_window()
1262 wnd = MAX_RCV_WND; in chtls_select_window()
1270 if (wnd > tp->rcv_wnd) { in chtls_select_window()
1271 tp->rcv_wup -= wnd - tp->rcv_wnd; in chtls_select_window()
1272 tp->rcv_wnd = wnd; in chtls_select_window()