Lines Matching refs:constraint
559 struct resource_constraint *constraint) in __find_resource() argument
582 resource_clip(&tmp, constraint->min, constraint->max); in __find_resource()
586 avail.start = ALIGN(tmp.start, constraint->align); in __find_resource()
591 alloc.start = constraint->alignf(constraint->alignf_data, &avail, in __find_resource()
592 size, constraint->align); in __find_resource()
616 struct resource_constraint *constraint) in find_resource() argument
618 return __find_resource(root, NULL, new, size, constraint); in find_resource()
633 struct resource_constraint *constraint) in reallocate_resource() argument
641 if ((err = __find_resource(root, old, &new, newsize, constraint))) in reallocate_resource()
692 struct resource_constraint constraint; in allocate_resource() local
697 constraint.min = min; in allocate_resource()
698 constraint.max = max; in allocate_resource()
699 constraint.align = align; in allocate_resource()
700 constraint.alignf = alignf; in allocate_resource()
701 constraint.alignf_data = alignf_data; in allocate_resource()
706 return reallocate_resource(root, new, size, &constraint); in allocate_resource()
710 err = find_resource(root, new, size, &constraint); in allocate_resource()