Home
last modified time | relevance | path

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

/linux-6.15/fs/ntfs3/
H A Dbitmap.c104 if (free_len >= to_alloc) in wnd_scan()
966 size_t to_alloc0 = to_alloc; in wnd_find()
1041 if (len >= to_alloc && hint + to_alloc <= max_alloc) { in wnd_find()
1047 if (len > to_alloc) in wnd_find()
1048 len = to_alloc; in wnd_find()
1052 to_alloc = len; in wnd_find()
1072 to_alloc = e->count.key; in wnd_find()
1074 to_alloc = e->count.key; in wnd_find()
1196 wzbit, to_alloc, in wnd_find()
1284 to_alloc = b_len; in wnd_find()
[all …]
H A Dfile.c723 loff_t to_alloc = new_size - inode_get_bytes(inode); in ntfs_fallocate() local
725 if (to_alloc > 0 && in ntfs_fallocate()
726 (to_alloc >> cluster_bits) > in ntfs_fallocate()
H A Dattrib.c896 CLST hint, svcn, to_alloc, evcn1, next_svcn, asize, end, vcn0, alen; in attr_data_get_block() local
1015 to_alloc = clen; in attr_data_get_block()
1026 to_alloc = ((vcn0 + clen + clst_per_frame - 1) & cmask) - vcn; in attr_data_get_block()
1048 if (vcn + to_alloc > asize) in attr_data_get_block()
1049 to_alloc = asize - vcn; in attr_data_get_block()
1065 err = attr_allocate_clusters(sbi, run, vcn, hint + 1, to_alloc, NULL, in attr_data_get_block()
H A Dntfs_fs.h847 size_t wnd_find(struct wnd_bitmap *wnd, size_t to_alloc, size_t hint,
/linux-6.15/drivers/dax/
H A Dbus.c1041 to_alloc = size - dev_size; in dev_dax_resize()
1042 if (dev_WARN_ONCE(dev, !alloc_is_aligned(dev_dax, to_alloc), in dev_dax_resize()
1043 "resize of %pa misaligned\n", &to_alloc)) in dev_dax_resize()
1070 alloc = min(next->start - (res->end + 1), to_alloc); in dev_dax_resize()
1074 alloc = min(region_res->end - res->end, to_alloc); in dev_dax_resize()
1088 to_alloc -= alloc; in dev_dax_resize()
1089 if (to_alloc) in dev_dax_resize()
1170 size_t to_alloc; in mapping_store() local
1191 to_alloc = range_len(&r); in mapping_store()
1192 if (alloc_is_aligned(dev_dax, to_alloc)) in mapping_store()
[all …]
/linux-6.15/drivers/gpu/drm/xe/tests/
H A Dxe_bo.c450 u64 ram, ram_and_swap, purgeable = 0, alloced, to_alloc, limit; in shrink_test_run_device() local
474 to_alloc = ram * 2; in shrink_test_run_device()
477 if (to_alloc > ram_and_swap) in shrink_test_run_device()
478 purgeable = to_alloc - ram_and_swap; in shrink_test_run_device()
483 for (alloced = 0; alloced < to_alloc; alloced += XE_BO_SHRINK_SIZE) { in shrink_test_run_device()
/linux-6.15/kernel/power/
H A Dsnapshot.c2049 unsigned int to_alloc = count_free_highmem_pages(); in alloc_highmem_pages() local
2051 if (to_alloc > nr_highmem) in alloc_highmem_pages()
2052 to_alloc = nr_highmem; in alloc_highmem_pages()
2054 nr_highmem -= to_alloc; in alloc_highmem_pages()
2055 while (to_alloc-- > 0) { in alloc_highmem_pages()
2454 unsigned int to_alloc; in prepare_highmem_image() local
2462 to_alloc = count_free_highmem_pages(); in prepare_highmem_image()
2463 if (to_alloc > *nr_highmem_p) in prepare_highmem_image()
2464 to_alloc = *nr_highmem_p; in prepare_highmem_image()
2466 *nr_highmem_p = to_alloc; in prepare_highmem_image()
[all …]
/linux-6.15/drivers/vfio/pci/virtio/
H A Dmigrate.c67 unsigned int to_alloc = npages; in virtiovf_add_migration_pages() local
86 to_alloc -= filled; in virtiovf_add_migration_pages()
96 to_fill = min_t(unsigned int, to_alloc, in virtiovf_add_migration_pages()
98 } while (to_alloc > 0); in virtiovf_add_migration_pages()
/linux-6.15/drivers/vfio/pci/mlx5/
H A Dcmd.c421 unsigned int to_alloc = npages; in mlx5vf_add_migration_pages() local
440 to_alloc -= filled; in mlx5vf_add_migration_pages()
451 to_fill = min_t(unsigned int, to_alloc, in mlx5vf_add_migration_pages()
453 } while (to_alloc > 0); in mlx5vf_add_migration_pages()
/linux-6.15/drivers/net/ethernet/brocade/bna/
H A Dbnad.c473 u32 to_alloc; in bnad_rxq_post() local
475 to_alloc = BNA_QE_FREE_CNT(rcb, rcb->q_depth); in bnad_rxq_post()
476 if (!(to_alloc >> BNAD_RXQ_REFILL_THRESHOLD_SHIFT)) in bnad_rxq_post()
480 bnad_rxq_refill_skb(bnad, rcb, to_alloc); in bnad_rxq_post()
482 bnad_rxq_refill_page(bnad, rcb, to_alloc); in bnad_rxq_post()