Lines Matching refs:alloc
847 struct resource *alloc; in alloc_dev_dax_range() local
861 alloc = __request_region(res, start, size, dev_name(dev), 0); in alloc_dev_dax_range()
862 if (!alloc) in alloc_dev_dax_range()
868 __release_region(res, alloc->start, resource_size(alloc)); in alloc_dev_dax_range()
878 .start = alloc->start, in alloc_dev_dax_range()
879 .end = alloc->end, in alloc_dev_dax_range()
884 &alloc->start, &alloc->end); in alloc_dev_dax_range()
1029 resource_size_t alloc = 0; in dev_dax_resize() local
1062 alloc = min(res->start - dax_region->res.start, to_alloc); in dev_dax_resize()
1063 rc = alloc_dev_dax_range(dev_dax, dax_region->res.start, alloc); in dev_dax_resize()
1067 alloc = 0; in dev_dax_resize()
1070 alloc = min(next->start - (res->end + 1), to_alloc); in dev_dax_resize()
1073 if (!alloc && !next && res->end < region_res->end) in dev_dax_resize()
1074 alloc = min(region_res->end - res->end, to_alloc); in dev_dax_resize()
1076 if (!alloc) in dev_dax_resize()
1080 rc = adjust_dev_dax_range(dev_dax, res, resource_size(res) + alloc); in dev_dax_resize()
1083 rc = alloc_dev_dax_range(dev_dax, res->end + 1, alloc); in dev_dax_resize()
1088 to_alloc -= alloc; in dev_dax_resize()