Lines Matching refs:to_alloc
944 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()
1080 size_t to_alloc; in mapping_store() local
1096 to_alloc = range_len(&r); in mapping_store()
1097 if (alloc_is_aligned(dev_dax, to_alloc)) in mapping_store()
1098 rc = alloc_dev_dax_range(dev_dax, r.start, to_alloc); in mapping_store()