Lines Matching refs:old

209 static int __release_resource(struct resource *old, bool release_child)  in __release_resource()  argument
213 p = &old->parent->child; in __release_resource()
218 if (tmp == old) { in __release_resource()
230 old->parent = NULL; in __release_resource()
306 int release_resource(struct resource *old) in release_resource() argument
311 retval = __release_resource(old, true); in release_resource()
668 static int __find_resource_space(struct resource *root, struct resource *old, in __find_resource_space() argument
682 tmp.start = (this == old) ? old->start : this->end + 1; in __find_resource_space()
687 tmp.end = (this == old) ? this->end : this->start - 1; in __find_resource_space()
721 if (this != old) in __find_resource_space()
760 static int reallocate_resource(struct resource *root, struct resource *old, in reallocate_resource() argument
765 struct resource new = *old; in reallocate_resource()
770 if ((err = __find_resource_space(root, old, &new, newsize, constraint))) in reallocate_resource()
773 if (resource_contains(&new, old)) { in reallocate_resource()
774 old->start = new.start; in reallocate_resource()
775 old->end = new.end; in reallocate_resource()
779 if (old->child) { in reallocate_resource()
784 if (resource_contains(old, &new)) { in reallocate_resource()
785 old->start = new.start; in reallocate_resource()
786 old->end = new.end; in reallocate_resource()
788 __release_resource(old, true); in reallocate_resource()
789 *old = new; in reallocate_resource()
790 conflict = __request_resource(root, old); in reallocate_resource()
1017 int remove_resource(struct resource *old) in remove_resource() argument
1022 retval = __release_resource(old, false); in remove_resource()