Searched refs:wnd (Results 1 – 6 of 6) sorted by relevance
/linux-6.1.9/fs/ntfs3/ |
D | bitmap.c | 35 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 run_close(&wnd->run); in wnd_close() 130 node = rb_first(&wnd->start_tree); in wnd_close() 134 rb_erase(node, &wnd->start_tree); in wnd_close() 230 static void wnd_add_free_ext(struct wnd_bitmap *wnd, size_t bit, size_t len, in wnd_add_free_ext() argument 239 if (wnd->count >= NTFS_MAX_WND_EXTENTS && in wnd_add_free_ext() [all …]
|
D | fsntfs.c | 364 struct wnd_bitmap *wnd = &sbi->used.bitmap; in ntfs_look_for_free_space() local 366 down_write_nested(&wnd->rw_lock, BITMAP_MUTEX_CLUSTERS); in ntfs_look_for_free_space() 368 zlen = wnd_zone_len(wnd); in ntfs_look_for_free_space() 375 zlen = wnd_zone_len(wnd); in ntfs_look_for_free_space() 384 lcn = wnd_zone_bit(wnd); in ntfs_look_for_free_space() 387 wnd_zone_set(wnd, lcn + alen, zlen - alen); in ntfs_look_for_free_space() 389 err = wnd_set_used(wnd, lcn, alen); in ntfs_look_for_free_space() 403 if (lcn >= wnd->nbits) in ntfs_look_for_free_space() 406 alen = wnd_find(wnd, len, lcn, BITMAP_FIND_MARK_AS_USED, &alcn); in ntfs_look_for_free_space() 411 zlen = wnd_zone_len(wnd); in ntfs_look_for_free_space() [all …]
|
D | ntfs_fs.h | 817 void wnd_close(struct wnd_bitmap *wnd); 818 static inline size_t wnd_zeroes(const struct wnd_bitmap *wnd) in wnd_zeroes() argument 820 return wnd->total_zeroes; in wnd_zeroes() 822 int wnd_init(struct wnd_bitmap *wnd, struct super_block *sb, size_t nbits); 823 int wnd_set_free(struct wnd_bitmap *wnd, size_t bit, size_t bits); 824 int wnd_set_used(struct wnd_bitmap *wnd, size_t bit, size_t bits); 825 bool wnd_is_free(struct wnd_bitmap *wnd, size_t bit, size_t bits); 826 bool wnd_is_used(struct wnd_bitmap *wnd, size_t bit, size_t bits); 831 size_t wnd_find(struct wnd_bitmap *wnd, size_t to_alloc, size_t hint, 833 int wnd_extend(struct wnd_bitmap *wnd, size_t new_bits); [all …]
|
D | run.c | 1055 struct wnd_bitmap *wnd; in run_unpack_ex() local 1068 wnd = &sbi->used.bitmap; in run_unpack_ex() 1084 down_read_nested(&wnd->rw_lock, BITMAP_MUTEX_CLUSTERS); in run_unpack_ex() 1086 ok = wnd_is_used(wnd, lcn, len); in run_unpack_ex() 1087 up_read(&wnd->rw_lock); in run_unpack_ex() 1094 if (down_write_trylock(&wnd->rw_lock)) { in run_unpack_ex() 1100 if (wnd_is_free(wnd, lcn + i, 1)) { in run_unpack_ex() 1105 err = wnd_set_used(wnd, lcn_f, len_f); in run_unpack_ex() 1113 err = wnd_set_used(wnd, lcn_f, len_f); in run_unpack_ex() 1115 up_write(&wnd->rw_lock); in run_unpack_ex()
|
D | super.c | 496 struct wnd_bitmap *wnd = &sbi->used.bitmap; in ntfs_statfs() local 500 buf->f_blocks = wnd->nbits; in ntfs_statfs() 502 buf->f_bfree = buf->f_bavail = wnd_zeroes(wnd); in ntfs_statfs()
|
/linux-6.1.9/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
D | chtls_io.c | 1343 unsigned int wnd = tp->rcv_wnd; in chtls_select_window() local 1345 wnd = max_t(unsigned int, wnd, tcp_full_space(sk)); in chtls_select_window() 1346 wnd = max_t(unsigned int, MIN_RCV_WND, wnd); in chtls_select_window() 1348 if (wnd > MAX_RCV_WND) in chtls_select_window() 1349 wnd = MAX_RCV_WND; in chtls_select_window() 1357 if (wnd > tp->rcv_wnd) { in chtls_select_window() 1358 tp->rcv_wup -= wnd - tp->rcv_wnd; in chtls_select_window() 1359 tp->rcv_wnd = wnd; in chtls_select_window()
|