Searched refs:to_alloc (Results 1 – 6 of 6) 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() 976 size_t wnd_find(struct wnd_bitmap *wnd, size_t to_alloc, size_t hint, in wnd_find() argument 983 size_t to_alloc0 = to_alloc; in wnd_find() 1001 if (to_alloc > wnd->extent_max) in wnd_find() 1002 to_alloc = wnd->extent_max; in wnd_find() 1058 if (len >= to_alloc && hint + to_alloc <= max_alloc) { in wnd_find() 1064 if (len > to_alloc) in wnd_find() 1065 len = to_alloc; in wnd_find() [all …]
|
| /linux/drivers/gpu/drm/xe/tests/ |
| H A D | xe_bo.c | 447 u64 ram, ram_and_swap, purgeable = 0, alloced, to_alloc, limit; in shrink_test_run_device() local 471 to_alloc = ram * 2; in shrink_test_run_device() 474 if (to_alloc > ram_and_swap) in shrink_test_run_device() 475 purgeable = to_alloc - ram_and_swap; in shrink_test_run_device() 480 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/kernel/power/ |
| H A D | snapshot.c | 2047 unsigned int to_alloc = count_free_highmem_pages(); in alloc_highmem_pages() local 2049 if (to_alloc > nr_highmem) in alloc_highmem_pages() 2050 to_alloc = nr_highmem; in alloc_highmem_pages() 2052 nr_highmem -= to_alloc; in alloc_highmem_pages() 2053 while (to_alloc-- > 0) { in alloc_highmem_pages() 2451 unsigned int to_alloc; in prepare_highmem_image() local 2459 to_alloc = count_free_highmem_pages(); in prepare_highmem_image() 2460 if (to_alloc > *nr_highmem_p) in prepare_highmem_image() 2461 to_alloc = *nr_highmem_p; in prepare_highmem_image() 2463 *nr_highmem_p = to_alloc; in prepare_highmem_image() [all …]
|
| /linux/io_uring/ |
| H A D | zcrx.c | 1034 netmem_ref *netmems, unsigned to_alloc) in io_zcrx_ring_refill() argument 1044 entries = min_t(unsigned, entries, to_alloc); in io_zcrx_ring_refill() 1076 netmem_ref *netmems, unsigned to_alloc) in io_zcrx_refill_slow() argument 1083 for (allocated = 0; allocated < to_alloc; allocated++) { in io_zcrx_refill_slow() 1098 unsigned to_alloc = PP_ALLOC_CACHE_REFILL; in io_pp_zc_alloc_netmems() local 1105 allocated = io_zcrx_ring_refill(pp, ifq, netmems, to_alloc); in io_pp_zc_alloc_netmems() 1109 allocated = io_zcrx_refill_slow(pp, ifq, netmems, to_alloc); in io_pp_zc_alloc_netmems()
|
| /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()
|