Lines Matching refs:alloc
780 struct resource *alloc; in alloc_dev_dax_range() local
799 alloc = __request_region(res, start, size, dev_name(dev), 0); in alloc_dev_dax_range()
800 if (!alloc) { in alloc_dev_dax_range()
819 .start = alloc->start, in alloc_dev_dax_range()
820 .end = alloc->end, in alloc_dev_dax_range()
825 &alloc->start, &alloc->end); in alloc_dev_dax_range()
968 resource_size_t alloc = 0; in dev_dax_resize() local
1001 alloc = min(res->start - dax_region->res.start, to_alloc); in dev_dax_resize()
1002 rc = alloc_dev_dax_range(dev_dax, dax_region->res.start, alloc); in dev_dax_resize()
1006 alloc = 0; in dev_dax_resize()
1009 alloc = min(next->start - (res->end + 1), to_alloc); in dev_dax_resize()
1012 if (!alloc && !next && res->end < region_res->end) in dev_dax_resize()
1013 alloc = min(region_res->end - res->end, to_alloc); in dev_dax_resize()
1015 if (!alloc) in dev_dax_resize()
1019 rc = adjust_dev_dax_range(dev_dax, res, resource_size(res) + alloc); in dev_dax_resize()
1022 rc = alloc_dev_dax_range(dev_dax, res->end + 1, alloc); in dev_dax_resize()
1027 to_alloc -= alloc; in dev_dax_resize()