Lines Matching refs:to_alloc
965 resource_size_t avail = dax_region_avail_size(dax_region), to_alloc; in dev_dax_resize() local
982 to_alloc = size - dev_size; in dev_dax_resize()
983 if (dev_WARN_ONCE(dev, !alloc_is_aligned(dev_dax, to_alloc), in dev_dax_resize()
984 "resize of %pa misaligned\n", &to_alloc)) in dev_dax_resize()
995 return alloc_dev_dax_range(dev_dax, dax_region->res.start, to_alloc); in dev_dax_resize()
1003 alloc = min(res->start - dax_region->res.start, to_alloc); in dev_dax_resize()
1011 alloc = min(next->start - (res->end + 1), to_alloc); in dev_dax_resize()
1015 alloc = min(region_res->end - res->end, to_alloc); in dev_dax_resize()
1029 to_alloc -= alloc; in dev_dax_resize()
1030 if (to_alloc) in dev_dax_resize()
1101 size_t to_alloc; in mapping_store() local
1117 to_alloc = range_len(&r); in mapping_store()
1118 if (alloc_is_aligned(dev_dax, to_alloc)) in mapping_store()
1119 rc = alloc_dev_dax_range(dev_dax, r.start, to_alloc); in mapping_store()