Searched refs:to_allocate (Results 1 – 4 of 4) sorted by relevance
/openbmc/qemu/block/ |
H A D | parallels.c | 256 int64_t i, pos, idx, to_allocate, first_free, host_off; in allocate_clusters() local 264 to_allocate = DIV_ROUND_UP(sector_num + *pnum, s->tracks) - idx; in allocate_clusters() 277 assert(idx < s->bat_size && idx + to_allocate <= s->bat_size); in allocate_clusters() 282 int64_t bytes = to_allocate * s->cluster_size; in allocate_clusters() 316 if (next_used - first_free < to_allocate) { in allocate_clusters() 317 to_allocate = next_used - first_free; in allocate_clusters() 318 *pnum = (idx + to_allocate) * s->tracks - sector_num; in allocate_clusters() 332 s->cluster_size * to_allocate, 0); in allocate_clusters() 349 int64_t nb_cow_sectors = to_allocate * s->tracks; in allocate_clusters() 368 ret = mark_used(bs, s->used_bmap, s->used_bmap_size, host_off, to_allocate); in allocate_clusters() [all …]
|
/openbmc/linux/fs/ntfs3/ |
H A D | attrib.c | 508 CLST to_allocate; in attr_set_size() local 524 to_allocate = new_alen - old_alen; in attr_set_size() 555 if (to_allocate > free) { in attr_set_size() 560 if (pre_alloc && to_allocate + pre_alloc > free) in attr_set_size() 567 if (!run_add_entry(run, vcn, SPARSE_LCN, to_allocate, in attr_set_size() 572 alen = to_allocate; in attr_set_size() 576 sbi, run, vcn, lcn, to_allocate, &pre_alloc, in attr_set_size() 590 if (to_allocate > alen) in attr_set_size() 591 to_allocate -= alen; in attr_set_size() 593 to_allocate = 0; in attr_set_size() [all …]
|
/openbmc/linux/drivers/nvdimm/ |
H A D | namespace_devs.c | 439 const resource_size_t to_allocate = n; in scan_allocate() local 469 to_allocate, &valid); in scan_allocate() 480 to_allocate, &valid); in scan_allocate() 491 to_allocate, &valid); in scan_allocate() 569 if (n == to_allocate) in scan_allocate()
|
/openbmc/linux/mm/ |
H A D | hugetlb.c | 639 int to_allocate = 0, i = 0; in allocate_file_region_entries() local 655 to_allocate = resv->adds_in_progress + regions_needed - in allocate_file_region_entries() 665 for (i = 0; i < to_allocate; i++) { in allocate_file_region_entries() 675 resv->region_cache_count += to_allocate; in allocate_file_region_entries()
|