Lines Matching full:constraint
598 struct resource_constraint *constraint) in __find_resource() argument
621 resource_clip(&tmp, constraint->min, constraint->max); in __find_resource()
625 avail.start = ALIGN(tmp.start, constraint->align); in __find_resource()
630 alloc.start = constraint->alignf(constraint->alignf_data, &avail, in __find_resource()
631 size, constraint->align); in __find_resource()
656 struct resource_constraint *constraint) in find_resource() argument
658 return __find_resource(root, NULL, new, size, constraint); in find_resource()
669 * @constraint: the size and alignment constraints to be met.
673 struct resource_constraint *constraint) in reallocate_resource() argument
681 if ((err = __find_resource(root, old, &new, newsize, constraint))) in reallocate_resource()
732 struct resource_constraint constraint; in allocate_resource() local
737 constraint.min = min; in allocate_resource()
738 constraint.max = max; in allocate_resource()
739 constraint.align = align; in allocate_resource()
740 constraint.alignf = alignf; in allocate_resource()
741 constraint.alignf_data = alignf_data; in allocate_resource()
746 return reallocate_resource(root, new, size, &constraint); in allocate_resource()
750 err = find_resource(root, new, size, &constraint); in allocate_resource()