Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/dax/
Dbus.c944 resource_size_t avail = dax_region_avail_size(dax_region), to_alloc; in dev_dax_resize() local
961 to_alloc = size - dev_size; in dev_dax_resize()
962 if (dev_WARN_ONCE(dev, !alloc_is_aligned(dev_dax, to_alloc), in dev_dax_resize()
963 "resize of %pa misaligned\n", &to_alloc)) in dev_dax_resize()
974 return alloc_dev_dax_range(dev_dax, dax_region->res.start, to_alloc); in dev_dax_resize()
982 alloc = min(res->start - dax_region->res.start, to_alloc); in dev_dax_resize()
990 alloc = min(next->start - (res->end + 1), to_alloc); in dev_dax_resize()
994 alloc = min(region_res->end - res->end, to_alloc); in dev_dax_resize()
1008 to_alloc -= alloc; in dev_dax_resize()
1009 if (to_alloc) in dev_dax_resize()
[all …]
/kernel/linux/linux-5.10/kernel/power/
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-5.10/drivers/net/ethernet/brocade/bna/
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()