Lines Matching refs:to_alloc
945 resource_size_t avail = dax_region_avail_size(dax_region), to_alloc; in dev_dax_resize() local
962 to_alloc = size - dev_size; in dev_dax_resize()
963 if (dev_WARN_ONCE(dev, !alloc_is_aligned(dev_dax, to_alloc), in dev_dax_resize()
964 "resize of %pa misaligned\n", &to_alloc)) in dev_dax_resize()
975 return alloc_dev_dax_range(dev_dax, dax_region->res.start, to_alloc); in dev_dax_resize()
983 alloc = min(res->start - dax_region->res.start, to_alloc); in dev_dax_resize()
991 alloc = min(next->start - (res->end + 1), to_alloc); in dev_dax_resize()
995 alloc = min(region_res->end - res->end, to_alloc); in dev_dax_resize()
1009 to_alloc -= alloc; in dev_dax_resize()
1010 if (to_alloc) in dev_dax_resize()
1081 size_t to_alloc; in mapping_store() local
1097 to_alloc = range_len(&r); in mapping_store()
1098 if (alloc_is_aligned(dev_dax, to_alloc)) in mapping_store()
1099 rc = alloc_dev_dax_range(dev_dax, r.start, to_alloc); in mapping_store()