Lines Matching refs:first
770 struct resource *first, *next; in __insert_resource() local
772 for (;; parent = first) { in __insert_resource()
773 first = __request_resource(parent, new); in __insert_resource()
774 if (!first) in __insert_resource()
775 return first; in __insert_resource()
777 if (first == parent) in __insert_resource()
778 return first; in __insert_resource()
779 if (WARN_ON(first == new)) /* duplicated insertion */ in __insert_resource()
780 return first; in __insert_resource()
782 if ((first->start > new->start) || (first->end < new->end)) in __insert_resource()
784 if ((first->start == new->start) && (first->end == new->end)) in __insert_resource()
788 for (next = first; ; next = next->sibling) { in __insert_resource()
800 new->child = first; in __insert_resource()
803 for (next = first; next; next = next->sibling) in __insert_resource()
806 if (parent->child == first) { in __insert_resource()
810 while (next->sibling != first) in __insert_resource()