Lines Matching refs:old
236 static int __release_resource(struct resource *old) in __release_resource() argument
240 p = &old->parent->child; in __release_resource()
245 if (tmp == old) { in __release_resource()
247 old->parent = NULL; in __release_resource()
323 int release_resource(struct resource *old) in release_resource() argument
328 retval = __release_resource(old); in release_resource()
556 static int __find_resource(struct resource *root, struct resource *old, in __find_resource() argument
570 tmp.start = (this == old) ? old->start : this->end + 1; in __find_resource()
575 tmp.end = (this == old) ? this->end : this->start - 1; in __find_resource()
604 if (this != old) in __find_resource()
631 static int reallocate_resource(struct resource *root, struct resource *old, in reallocate_resource() argument
636 struct resource new = *old; in reallocate_resource()
641 if ((err = __find_resource(root, old, &new, newsize, constraint))) in reallocate_resource()
644 if (resource_contains(&new, old)) { in reallocate_resource()
645 old->start = new.start; in reallocate_resource()
646 old->end = new.end; in reallocate_resource()
650 if (old->child) { in reallocate_resource()
655 if (resource_contains(old, &new)) { in reallocate_resource()
656 old->start = new.start; in reallocate_resource()
657 old->end = new.end; in reallocate_resource()
659 __release_resource(old); in reallocate_resource()
660 *old = new; in reallocate_resource()
661 conflict = __request_resource(root, old); in reallocate_resource()