Home
last modified time | relevance | path

Searched refs:to_alloc (Results 1 - 11 of 11) sorted by relevance

/kernel/linux/linux-6.6/fs/ntfs3/
H A Dbitmap.c63 size_t to_alloc, size_t *prev_tail, size_t *b_pos, in wnd_scan()
94 end = wpos + to_alloc - *prev_tail; in wnd_scan()
104 if (free_len >= to_alloc) in wnd_scan()
987 size_t wnd_find(struct wnd_bitmap *wnd, size_t to_alloc, size_t hint, in wnd_find() argument
994 size_t to_alloc0 = to_alloc; in wnd_find()
1012 if (to_alloc > wnd->extent_max) in wnd_find()
1013 to_alloc = wnd->extent_max; in wnd_find()
1069 if (len >= to_alloc && hint + to_alloc <= max_alloc) { in wnd_find()
1075 if (len > to_alloc) in wnd_find()
62 wnd_scan(const void *buf, size_t wbit, u32 wpos, u32 wend, size_t to_alloc, size_t *prev_tail, size_t *b_pos, size_t *b_len) wnd_scan() argument
[all...]
H A Dattrib.c892 CLST hint, svcn, to_alloc, evcn1, next_svcn, asize, end, vcn0, alen; in attr_data_get_block() local
996 to_alloc = clen; in attr_data_get_block()
1005 /* Get frame aligned vcn and to_alloc. */ in attr_data_get_block()
1007 to_alloc = ((vcn0 + clen + clst_per_frame - 1) & cmask) - vcn; in attr_data_get_block()
1029 if (vcn + to_alloc > asize) in attr_data_get_block()
1030 to_alloc = asize - vcn; in attr_data_get_block()
1046 err = attr_allocate_clusters(sbi, run, vcn, hint + 1, to_alloc, NULL, in attr_data_get_block()
H A Dfile.c583 loff_t to_alloc = new_size - inode_get_bytes(inode); in ntfs_fallocate() local
585 if (to_alloc > 0 && in ntfs_fallocate()
586 (to_alloc >> cluster_bits) > in ntfs_fallocate()
H A Dntfs_fs.h845 size_t wnd_find(struct wnd_bitmap *wnd, size_t to_alloc, size_t hint,
/kernel/linux/linux-5.10/drivers/dax/
H A Dbus.c963 resource_size_t avail = dax_region_avail_size(dax_region), to_alloc; in dev_dax_resize() local
980 to_alloc = size - dev_size; in dev_dax_resize()
981 if (dev_WARN_ONCE(dev, !alloc_is_aligned(dev_dax, to_alloc), in dev_dax_resize()
982 "resize of %pa misaligned\n", &to_alloc)) in dev_dax_resize()
993 return alloc_dev_dax_range(dev_dax, dax_region->res.start, to_alloc); in dev_dax_resize()
1001 alloc = min(res->start - dax_region->res.start, to_alloc); in dev_dax_resize()
1009 alloc = min(next->start - (res->end + 1), to_alloc); in dev_dax_resize()
1013 alloc = min(region_res->end - res->end, to_alloc); in dev_dax_resize()
1027 to_alloc -= alloc; in dev_dax_resize()
1028 if (to_alloc) in dev_dax_resize()
1099 size_t to_alloc; mapping_store() local
[all...]
/kernel/linux/linux-6.6/drivers/dax/
H A Dbus.c995 resource_size_t avail = dax_region_avail_size(dax_region), to_alloc; in dev_dax_resize() local
1012 to_alloc = size - dev_size; in dev_dax_resize()
1013 if (dev_WARN_ONCE(dev, !alloc_is_aligned(dev_dax, to_alloc), in dev_dax_resize()
1014 "resize of %pa misaligned\n", &to_alloc)) in dev_dax_resize()
1025 return alloc_dev_dax_range(dev_dax, dax_region->res.start, to_alloc); in dev_dax_resize()
1033 alloc = min(res->start - dax_region->res.start, to_alloc); in dev_dax_resize()
1041 alloc = min(next->start - (res->end + 1), to_alloc); in dev_dax_resize()
1045 alloc = min(region_res->end - res->end, to_alloc); in dev_dax_resize()
1059 to_alloc -= alloc; in dev_dax_resize()
1060 if (to_alloc) in dev_dax_resize()
1131 size_t to_alloc; mapping_store() local
[all...]
/kernel/linux/linux-5.10/kernel/power/
H A Dsnapshot.c1906 unsigned int to_alloc = count_free_highmem_pages(); in alloc_highmem_pages() local
1908 if (to_alloc > nr_highmem) in alloc_highmem_pages()
1909 to_alloc = nr_highmem; in alloc_highmem_pages()
1911 nr_highmem -= to_alloc; in alloc_highmem_pages()
1912 while (to_alloc-- > 0) { in alloc_highmem_pages()
2287 unsigned int to_alloc; in prepare_highmem_image() local
2295 to_alloc = count_free_highmem_pages(); in prepare_highmem_image()
2296 if (to_alloc > *nr_highmem_p) in prepare_highmem_image()
2297 to_alloc = *nr_highmem_p; in prepare_highmem_image()
2299 *nr_highmem_p = to_alloc; in prepare_highmem_image()
[all...]
/kernel/linux/linux-6.6/kernel/power/
H A Dsnapshot.c2055 unsigned int to_alloc = count_free_highmem_pages(); in alloc_highmem_pages() local
2057 if (to_alloc > nr_highmem) in alloc_highmem_pages()
2058 to_alloc = nr_highmem; in alloc_highmem_pages()
2060 nr_highmem -= to_alloc; in alloc_highmem_pages()
2061 while (to_alloc-- > 0) { in alloc_highmem_pages()
2460 unsigned int to_alloc; in prepare_highmem_image() local
2468 to_alloc = count_free_highmem_pages(); in prepare_highmem_image()
2469 if (to_alloc > *nr_highmem_p) in prepare_highmem_image()
2470 to_alloc = *nr_highmem_p; in prepare_highmem_image()
2472 *nr_highmem_p = to_alloc; in prepare_highmem_image()
[all...]
/kernel/linux/linux-6.6/drivers/vfio/pci/mlx5/
H A Dmain.c69 unsigned int to_alloc = npages; in mlx5vf_add_migration_pages() local
87 to_alloc -= filled; in mlx5vf_add_migration_pages()
98 to_fill = min_t(unsigned int, to_alloc, in mlx5vf_add_migration_pages()
100 } while (to_alloc > 0); in mlx5vf_add_migration_pages()
/kernel/linux/linux-5.10/drivers/net/ethernet/brocade/bna/
H A 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()
/kernel/linux/linux-6.6/drivers/net/ethernet/brocade/bna/
H A 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()

Completed in 27 milliseconds