Home
last modified time | relevance | path

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

/Linux-v5.15/fs/ntfs3/
Dbitmap.c68 size_t to_alloc, size_t *prev_tail, size_t *b_pos, in wnd_scan() argument
99 end = wpos + to_alloc - *prev_tail; in wnd_scan()
109 if (free_len >= to_alloc) in wnd_scan()
959 size_t wnd_find(struct wnd_bitmap *wnd, size_t to_alloc, size_t hint, in wnd_find() argument
966 size_t to_alloc0 = to_alloc; in wnd_find()
985 if (to_alloc > wnd->extent_max) in wnd_find()
986 to_alloc = wnd->extent_max; in wnd_find()
1042 if (len >= to_alloc && hint + to_alloc <= max_alloc) { in wnd_find()
1048 if (len > to_alloc) in wnd_find()
1049 len = to_alloc; in wnd_find()
[all …]
Dattrib.c816 CLST hint, svcn, to_alloc, evcn1, next_svcn, asize, end; in attr_data_get_block() local
865 to_alloc = (clen + clst_per_frame - 1) & ~(clst_per_frame - 1); in attr_data_get_block()
867 if (vcn + to_alloc > asize) in attr_data_get_block()
868 to_alloc = asize - vcn; in attr_data_get_block()
908 to_alloc = (clen + clst_per_frame - 1) & in attr_data_get_block()
932 sbi, run, vcn, hint + 1, to_alloc, NULL, 0, len, in attr_data_get_block()
Dntfs_fs.h825 size_t wnd_find(struct wnd_bitmap *wnd, size_t to_alloc, size_t hint,
/Linux-v5.15/drivers/dax/
Dbus.c935 resource_size_t avail = dax_region_avail_size(dax_region), to_alloc; in dev_dax_resize() local
952 to_alloc = size - dev_size; in dev_dax_resize()
953 if (dev_WARN_ONCE(dev, !alloc_is_aligned(dev_dax, to_alloc), in dev_dax_resize()
954 "resize of %pa misaligned\n", &to_alloc)) in dev_dax_resize()
965 return alloc_dev_dax_range(dev_dax, dax_region->res.start, to_alloc); in dev_dax_resize()
973 alloc = min(res->start - dax_region->res.start, to_alloc); in dev_dax_resize()
981 alloc = min(next->start - (res->end + 1), to_alloc); in dev_dax_resize()
985 alloc = min(region_res->end - res->end, to_alloc); in dev_dax_resize()
999 to_alloc -= alloc; in dev_dax_resize()
1000 if (to_alloc) in dev_dax_resize()
[all …]
/Linux-v5.15/kernel/power/
Dsnapshot.c1955 unsigned int to_alloc = count_free_highmem_pages(); in alloc_highmem_pages() local
1957 if (to_alloc > nr_highmem) in alloc_highmem_pages()
1958 to_alloc = nr_highmem; in alloc_highmem_pages()
1960 nr_highmem -= to_alloc; in alloc_highmem_pages()
1961 while (to_alloc-- > 0) { in alloc_highmem_pages()
2336 unsigned int to_alloc; in prepare_highmem_image() local
2344 to_alloc = count_free_highmem_pages(); in prepare_highmem_image()
2345 if (to_alloc > *nr_highmem_p) in prepare_highmem_image()
2346 to_alloc = *nr_highmem_p; in prepare_highmem_image()
2348 *nr_highmem_p = to_alloc; in prepare_highmem_image()
[all …]
/Linux-v5.15/drivers/net/ethernet/brocade/bna/
Dbnad.c472 u32 to_alloc; in bnad_rxq_post() local
474 to_alloc = BNA_QE_FREE_CNT(rcb, rcb->q_depth); in bnad_rxq_post()
475 if (!(to_alloc >> BNAD_RXQ_REFILL_THRESHOLD_SHIFT)) in bnad_rxq_post()
479 bnad_rxq_refill_skb(bnad, rcb, to_alloc); in bnad_rxq_post()
481 bnad_rxq_refill_page(bnad, rcb, to_alloc); in bnad_rxq_post()