Lines Matching refs:first
757 struct resource *first, *next; in __insert_resource() local
759 for (;; parent = first) { in __insert_resource()
760 first = __request_resource(parent, new); in __insert_resource()
761 if (!first) in __insert_resource()
762 return first; in __insert_resource()
764 if (first == parent) in __insert_resource()
765 return first; in __insert_resource()
766 if (WARN_ON(first == new)) /* duplicated insertion */ in __insert_resource()
767 return first; in __insert_resource()
769 if ((first->start > new->start) || (first->end < new->end)) in __insert_resource()
771 if ((first->start == new->start) && (first->end == new->end)) in __insert_resource()
775 for (next = first; ; next = next->sibling) { in __insert_resource()
787 new->child = first; in __insert_resource()
790 for (next = first; next; next = next->sibling) in __insert_resource()
793 if (parent->child == first) { in __insert_resource()
797 while (next->sibling != first) in __insert_resource()