Lines Matching full:constraint
594 struct resource_constraint *constraint) in __find_resource() argument
617 resource_clip(&tmp, constraint->min, constraint->max); in __find_resource()
621 avail.start = ALIGN(tmp.start, constraint->align); in __find_resource()
626 alloc.start = constraint->alignf(constraint->alignf_data, &avail, in __find_resource()
627 size, constraint->align); in __find_resource()
652 struct resource_constraint *constraint) in find_resource() argument
654 return __find_resource(root, NULL, new, size, constraint); in find_resource()
665 * @constraint: the size and alignment constraints to be met.
669 struct resource_constraint *constraint) in reallocate_resource() argument
677 if ((err = __find_resource(root, old, &new, newsize, constraint))) in reallocate_resource()
728 struct resource_constraint constraint; in allocate_resource() local
733 constraint.min = min; in allocate_resource()
734 constraint.max = max; in allocate_resource()
735 constraint.align = align; in allocate_resource()
736 constraint.alignf = alignf; in allocate_resource()
737 constraint.alignf_data = alignf_data; in allocate_resource()
742 return reallocate_resource(root, new, size, &constraint); in allocate_resource()
746 err = find_resource(root, new, size, &constraint); in allocate_resource()