Lines Matching refs:old
187 static int __release_resource(struct resource *old, bool release_child) in __release_resource() argument
191 p = &old->parent->child; in __release_resource()
196 if (tmp == old) { in __release_resource()
208 old->parent = NULL; in __release_resource()
284 int release_resource(struct resource *old) in release_resource() argument
289 retval = __release_resource(old, true); in release_resource()
566 static int __find_resource(struct resource *root, struct resource *old, in __find_resource() argument
580 tmp.start = (this == old) ? old->start : this->end + 1; in __find_resource()
585 tmp.end = (this == old) ? this->end : this->start - 1; in __find_resource()
615 if (this != old) in __find_resource()
642 static int reallocate_resource(struct resource *root, struct resource *old, in reallocate_resource() argument
647 struct resource new = *old; in reallocate_resource()
652 if ((err = __find_resource(root, old, &new, newsize, constraint))) in reallocate_resource()
655 if (resource_contains(&new, old)) { in reallocate_resource()
656 old->start = new.start; in reallocate_resource()
657 old->end = new.end; in reallocate_resource()
661 if (old->child) { in reallocate_resource()
666 if (resource_contains(old, &new)) { in reallocate_resource()
667 old->start = new.start; in reallocate_resource()
668 old->end = new.end; in reallocate_resource()
670 __release_resource(old, true); in reallocate_resource()
671 *old = new; in reallocate_resource()
672 conflict = __request_resource(root, old); in reallocate_resource()
898 int remove_resource(struct resource *old) in remove_resource() argument
903 retval = __release_resource(old, false); in remove_resource()