Lines Matching refs:constraint
570 struct resource_constraint *constraint) in __find_resource() argument
593 resource_clip(&tmp, constraint->min, constraint->max); in __find_resource()
597 avail.start = ALIGN(tmp.start, constraint->align); in __find_resource()
602 alloc.start = constraint->alignf(constraint->alignf_data, &avail, in __find_resource()
603 size, constraint->align); in __find_resource()
627 struct resource_constraint *constraint) in find_resource() argument
629 return __find_resource(root, NULL, new, size, constraint); in find_resource()
644 struct resource_constraint *constraint) in reallocate_resource() argument
652 if ((err = __find_resource(root, old, &new, newsize, constraint))) in reallocate_resource()
703 struct resource_constraint constraint; in allocate_resource() local
708 constraint.min = min; in allocate_resource()
709 constraint.max = max; in allocate_resource()
710 constraint.align = align; in allocate_resource()
711 constraint.alignf = alignf; in allocate_resource()
712 constraint.alignf_data = alignf_data; in allocate_resource()
717 return reallocate_resource(root, new, size, &constraint); in allocate_resource()
721 err = find_resource(root, new, size, &constraint); in allocate_resource()