Lines Matching refs:old
213 static int __release_resource(struct resource *old, bool release_child) in __release_resource() argument
217 p = &old->parent->child; in __release_resource()
222 if (tmp == old) { in __release_resource()
234 old->parent = NULL; in __release_resource()
310 int release_resource(struct resource *old) in release_resource() argument
315 retval = __release_resource(old, true); in release_resource()
592 static int __find_resource(struct resource *root, struct resource *old, in __find_resource() argument
606 tmp.start = (this == old) ? old->start : this->end + 1; in __find_resource()
611 tmp.end = (this == old) ? this->end : this->start - 1; in __find_resource()
641 if (this != old) in __find_resource()
668 static int reallocate_resource(struct resource *root, struct resource *old, in reallocate_resource() argument
673 struct resource new = *old; in reallocate_resource()
678 if ((err = __find_resource(root, old, &new, newsize, constraint))) in reallocate_resource()
681 if (resource_contains(&new, old)) { in reallocate_resource()
682 old->start = new.start; in reallocate_resource()
683 old->end = new.end; in reallocate_resource()
687 if (old->child) { in reallocate_resource()
692 if (resource_contains(old, &new)) { in reallocate_resource()
693 old->start = new.start; in reallocate_resource()
694 old->end = new.end; in reallocate_resource()
696 __release_resource(old, true); in reallocate_resource()
697 *old = new; in reallocate_resource()
698 conflict = __request_resource(root, old); in reallocate_resource()
924 int remove_resource(struct resource *old) in remove_resource() argument
929 retval = __release_resource(old, false); in remove_resource()