Lines Matching refs:first
633 struct resource *first, *next; in __insert_resource() local
635 for (;; parent = first) { in __insert_resource()
636 first = __request_resource(parent, new); in __insert_resource()
637 if (!first) in __insert_resource()
638 return first; in __insert_resource()
640 if (first == parent) in __insert_resource()
641 return first; in __insert_resource()
642 if (WARN_ON(first == new)) /* duplicated insertion */ in __insert_resource()
643 return first; in __insert_resource()
645 if ((first->start > new->start) || (first->end < new->end)) in __insert_resource()
647 if ((first->start == new->start) && (first->end == new->end)) in __insert_resource()
651 for (next = first; ; next = next->sibling) { in __insert_resource()
663 new->child = first; in __insert_resource()
666 for (next = first; next; next = next->sibling) in __insert_resource()
669 if (parent->child == first) { in __insert_resource()
673 while (next->sibling != first) in __insert_resource()