Lines Matching full:constraint
595 struct resource_constraint *constraint) in __find_resource() argument
618 resource_clip(&tmp, constraint->min, constraint->max); in __find_resource()
622 avail.start = ALIGN(tmp.start, constraint->align); in __find_resource()
627 alloc.start = constraint->alignf(constraint->alignf_data, &avail, in __find_resource()
628 size, constraint->align); in __find_resource()
653 struct resource_constraint *constraint) in find_resource() argument
655 return __find_resource(root, NULL, new, size, constraint); in find_resource()
666 * @constraint: the size and alignment constraints to be met.
670 struct resource_constraint *constraint) in reallocate_resource() argument
678 if ((err = __find_resource(root, old, &new, newsize, constraint))) in reallocate_resource()
729 struct resource_constraint constraint; in allocate_resource() local
734 constraint.min = min; in allocate_resource()
735 constraint.max = max; in allocate_resource()
736 constraint.align = align; in allocate_resource()
737 constraint.alignf = alignf; in allocate_resource()
738 constraint.alignf_data = alignf_data; in allocate_resource()
743 return reallocate_resource(root, new, size, &constraint); in allocate_resource()
747 err = find_resource(root, new, size, &constraint); in allocate_resource()