Home
last modified time | relevance | path

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

/Linux-v6.6/fs/ntfs3/
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 kfree(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 …]
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 …]
Dntfs_fs.h826 void wnd_close(struct wnd_bitmap *wnd);
827 static inline size_t wnd_zeroes(const struct wnd_bitmap *wnd) in wnd_zeroes() argument
829 return wnd->total_zeroes; in wnd_zeroes()
831 int wnd_init(struct wnd_bitmap *wnd, struct super_block *sb, size_t nbits);
832 int wnd_set_free(struct wnd_bitmap *wnd, size_t bit, size_t bits);
833 int wnd_set_used(struct wnd_bitmap *wnd, size_t bit, size_t bits);
834 int wnd_set_used_safe(struct wnd_bitmap *wnd, size_t bit, size_t bits,
836 bool wnd_is_free(struct wnd_bitmap *wnd, size_t bit, size_t bits);
837 bool wnd_is_used(struct wnd_bitmap *wnd, size_t bit, size_t bits);
842 size_t wnd_find(struct wnd_bitmap *wnd, size_t to_alloc, size_t hint,
[all …]
Drun.c1058 struct wnd_bitmap *wnd; in run_unpack_ex() local
1071 wnd = &sbi->used.bitmap; in run_unpack_ex()
1087 down_read_nested(&wnd->rw_lock, BITMAP_MUTEX_CLUSTERS); in run_unpack_ex()
1089 ok = wnd_is_used(wnd, lcn, len); in run_unpack_ex()
1090 up_read(&wnd->rw_lock); in run_unpack_ex()
1097 if (down_write_trylock(&wnd->rw_lock)) { in run_unpack_ex()
1100 err = wnd_set_used_safe(wnd, lcn, len, &done); in run_unpack_ex()
1101 up_write(&wnd->rw_lock); in run_unpack_ex()
Dsuper.c660 struct wnd_bitmap *wnd = &sbi->used.bitmap; in ntfs_statfs() local
664 buf->f_blocks = wnd->nbits; in ntfs_statfs()
666 buf->f_bfree = buf->f_bavail = wnd_zeroes(wnd); in ntfs_statfs()
/Linux-v6.6/drivers/net/ethernet/chelsio/inline_crypto/chtls/
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()