Lines Matching refs:to_alloc
935 resource_size_t avail = dax_region_avail_size(dax_region), to_alloc; in dev_dax_resize() local
952 to_alloc = size - dev_size; in dev_dax_resize()
953 if (dev_WARN_ONCE(dev, !alloc_is_aligned(dev_dax, to_alloc), in dev_dax_resize()
954 "resize of %pa misaligned\n", &to_alloc)) in dev_dax_resize()
965 return alloc_dev_dax_range(dev_dax, dax_region->res.start, to_alloc); in dev_dax_resize()
973 alloc = min(res->start - dax_region->res.start, to_alloc); in dev_dax_resize()
981 alloc = min(next->start - (res->end + 1), to_alloc); in dev_dax_resize()
985 alloc = min(region_res->end - res->end, to_alloc); in dev_dax_resize()
999 to_alloc -= alloc; in dev_dax_resize()
1000 if (to_alloc) in dev_dax_resize()
1071 size_t to_alloc; in mapping_store() local
1087 to_alloc = range_len(&r); in mapping_store()
1088 if (alloc_is_aligned(dev_dax, to_alloc)) in mapping_store()
1089 rc = alloc_dev_dax_range(dev_dax, r.start, to_alloc); in mapping_store()