Lines Matching refs:first
746 struct resource *first, *next; in __insert_resource() local
748 for (;; parent = first) { in __insert_resource()
749 first = __request_resource(parent, new); in __insert_resource()
750 if (!first) in __insert_resource()
751 return first; in __insert_resource()
753 if (first == parent) in __insert_resource()
754 return first; in __insert_resource()
755 if (WARN_ON(first == new)) /* duplicated insertion */ in __insert_resource()
756 return first; in __insert_resource()
758 if ((first->start > new->start) || (first->end < new->end)) in __insert_resource()
760 if ((first->start == new->start) && (first->end == new->end)) in __insert_resource()
764 for (next = first; ; next = next->sibling) { in __insert_resource()
776 new->child = first; in __insert_resource()
779 for (next = first; next; next = next->sibling) in __insert_resource()
782 if (parent->child == first) { in __insert_resource()
786 while (next->sibling != first) in __insert_resource()