• Home
  • Raw
  • Download

Lines Matching refs:old

199 static int __release_resource(struct resource *old, bool release_child)  in __release_resource()  argument
203 p = &old->parent->child; in __release_resource()
208 if (tmp == old) { in __release_resource()
220 old->parent = NULL; in __release_resource()
296 int release_resource(struct resource *old) in release_resource() argument
301 retval = __release_resource(old, true); in release_resource()
579 static int __find_resource(struct resource *root, struct resource *old, in __find_resource() argument
593 tmp.start = (this == old) ? old->start : this->end + 1; in __find_resource()
598 tmp.end = (this == old) ? this->end : this->start - 1; in __find_resource()
628 if (this != old) in __find_resource()
655 static int reallocate_resource(struct resource *root, struct resource *old, in reallocate_resource() argument
660 struct resource new = *old; in reallocate_resource()
665 if ((err = __find_resource(root, old, &new, newsize, constraint))) in reallocate_resource()
668 if (resource_contains(&new, old)) { in reallocate_resource()
669 old->start = new.start; in reallocate_resource()
670 old->end = new.end; in reallocate_resource()
674 if (old->child) { in reallocate_resource()
679 if (resource_contains(old, &new)) { in reallocate_resource()
680 old->start = new.start; in reallocate_resource()
681 old->end = new.end; in reallocate_resource()
683 __release_resource(old, true); in reallocate_resource()
684 *old = new; in reallocate_resource()
685 conflict = __request_resource(root, old); in reallocate_resource()
918 int remove_resource(struct resource *old) in remove_resource() argument
923 retval = __release_resource(old, false); in remove_resource()