Lines Matching refs:constraint
606 struct resource_constraint *constraint) in __find_resource() argument
629 resource_clip(&tmp, constraint->min, constraint->max); in __find_resource()
633 avail.start = ALIGN(tmp.start, constraint->align); in __find_resource()
638 alloc.start = constraint->alignf(constraint->alignf_data, &avail, in __find_resource()
639 size, constraint->align); in __find_resource()
664 struct resource_constraint *constraint) in find_resource() argument
666 return __find_resource(root, NULL, new, size, constraint); in find_resource()
681 struct resource_constraint *constraint) in reallocate_resource() argument
689 if ((err = __find_resource(root, old, &new, newsize, constraint))) in reallocate_resource()
740 struct resource_constraint constraint; in allocate_resource() local
745 constraint.min = min; in allocate_resource()
746 constraint.max = max; in allocate_resource()
747 constraint.align = align; in allocate_resource()
748 constraint.alignf = alignf; in allocate_resource()
749 constraint.alignf_data = alignf_data; in allocate_resource()
754 return reallocate_resource(root, new, size, &constraint); in allocate_resource()
758 err = find_resource(root, new, size, &constraint); in allocate_resource()