Searched refs:to_alloc (Results 1 – 7 of 7) sorted by relevance
| /linux/fs/ntfs3/ |
| H A D | bitmap.c | 63 size_t to_alloc, size_t *prev_tail, size_t *b_pos, in wnd_scan() argument 94 end = wpos + to_alloc - *prev_tail; in wnd_scan() 104 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() 984 if (to_alloc > wnd->extent_max) in wnd_find() 985 to_alloc = wnd->extent_max; 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() [all …]
|
| H A D | file.c | 727 loff_t to_alloc = new_size - inode_get_bytes(inode); in ntfs_fallocate() local 729 if (to_alloc > 0 && in ntfs_fallocate() 730 (to_alloc >> cluster_bits) > in ntfs_fallocate()
|
| /linux/drivers/dax/ |
| H A D | bus.c | 1024 resource_size_t avail = dax_region_avail_size(dax_region), to_alloc; in dev_dax_resize() local 1041 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() 1054 return alloc_dev_dax_range(dev_dax, dax_region->res.start, to_alloc); in dev_dax_resize() 1062 alloc = min(res->start - dax_region->res.start, 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() [all …]
|
| /linux/drivers/gpu/drm/xe/tests/ |
| H A D | xe_bo.c | 452 u64 ram, ram_and_swap, purgeable = 0, alloced, to_alloc, limit; in shrink_test_run_device() local 476 to_alloc = ram * 2; in shrink_test_run_device() 479 if (to_alloc > ram_and_swap) in shrink_test_run_device() 480 purgeable = to_alloc - ram_and_swap; in shrink_test_run_device() 485 for (alloced = 0; alloced < to_alloc; alloced += XE_BO_SHRINK_SIZE) { in shrink_test_run_device()
|
| /linux/drivers/md/dm-pcache/ |
| H A D | cache_req.c | 42 u32 allocated = 0, to_alloc; in cache_data_alloc() local 48 to_alloc = key->len - allocated; in cache_data_alloc() 60 if (seg_remain > to_alloc) { in cache_data_alloc() 62 cache_pos_advance(head_pos, to_alloc); in cache_data_alloc() 63 allocated += to_alloc; in cache_data_alloc()
|
| /linux/drivers/vfio/pci/virtio/ |
| H A D | migrate.c | 66 unsigned int to_alloc = npages; in virtiovf_add_migration_pages() local 85 to_alloc -= filled; in virtiovf_add_migration_pages() 95 to_fill = min_t(unsigned int, to_alloc, in virtiovf_add_migration_pages() 97 } while (to_alloc > 0); in virtiovf_add_migration_pages()
|
| /linux/drivers/net/ethernet/brocade/bna/ |
| H A D | bnad.c | 473 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()
|