Lines Matching full:constraint
671 struct resource_constraint *constraint) in __find_resource_space() argument
675 resource_alignf alignf = constraint->alignf; in __find_resource_space()
695 resource_clip(&tmp, constraint->min, constraint->max); in __find_resource_space()
699 avail.start = ALIGN(tmp.start, constraint->align); in __find_resource_space()
705 alloc.start = alignf(constraint->alignf_data, in __find_resource_space()
706 &avail, size, constraint->align); in __find_resource_space()
734 * @constraint: The range and alignment constraints to be met
745 struct resource_constraint *constraint) in find_resource_space() argument
747 return __find_resource_space(root, NULL, new, size, constraint); in find_resource_space()
759 * @constraint: the memory range and alignment constraints to be met.
763 struct resource_constraint *constraint) in reallocate_resource() argument
771 if ((err = __find_resource_space(root, old, &new, newsize, constraint))) in reallocate_resource()
819 struct resource_constraint constraint; in allocate_resource() local
821 constraint.min = min; in allocate_resource()
822 constraint.max = max; in allocate_resource()
823 constraint.align = align; in allocate_resource()
824 constraint.alignf = alignf; in allocate_resource()
825 constraint.alignf_data = alignf_data; in allocate_resource()
830 return reallocate_resource(root, new, size, &constraint); in allocate_resource()
834 err = find_resource_space(root, new, size, &constraint); in allocate_resource()