Lines Matching refs:to_alloc
1024 resource_size_t avail = dax_region_avail_size(dax_region), to_alloc; in dev_dax_resize() local
1041 to_alloc = size - dev_size; in dev_dax_resize()
1042 if (dev_WARN_ONCE(dev, !alloc_is_aligned(dev_dax, to_alloc), in dev_dax_resize()
1043 "resize of %pa misaligned\n", &to_alloc)) in dev_dax_resize()
1054 return alloc_dev_dax_range(dev_dax, dax_region->res.start, to_alloc); in dev_dax_resize()
1062 alloc = min(res->start - dax_region->res.start, to_alloc); in dev_dax_resize()
1070 alloc = min(next->start - (res->end + 1), to_alloc); in dev_dax_resize()
1074 alloc = min(region_res->end - res->end, to_alloc); in dev_dax_resize()
1088 to_alloc -= alloc; in dev_dax_resize()
1089 if (to_alloc) in dev_dax_resize()
1170 size_t to_alloc; in mapping_store() local
1191 to_alloc = range_len(&r); in mapping_store()
1192 if (alloc_is_aligned(dev_dax, to_alloc)) in mapping_store()
1193 rc = alloc_dev_dax_range(dev_dax, r.start, to_alloc); in mapping_store()