• Home
  • Raw
  • Download

Lines Matching refs:parent

18 	struct hieralloc_header * parent;  member
53 assert(!header->nextSibling || header->nextSibling->parent == header->parent); in check_header()
55 assert(!header->prevSibling || header->prevSibling->parent == header->parent); in check_header()
82 static void add_to_parent(hieralloc_header_t * parent, hieralloc_header_t * header) in add_to_parent() argument
84 assert(NULL == header->parent); in add_to_parent()
88 if (parent->child) in add_to_parent()
96 parent->child->prevSibling = header; in add_to_parent()
98 header->nextSibling = parent->child; in add_to_parent()
100 header->parent = parent; in add_to_parent()
101 parent->child = header; in add_to_parent()
102 parent->childCount++; in add_to_parent()
105 assert(!header->nextSibling || header->nextSibling->parent == header->parent); in add_to_parent()
107 assert(!header->prevSibling || header->prevSibling->parent == header->parent); in add_to_parent()
113 hieralloc_header_t * parent = header->parent; in remove_from_parent() local
116 assert(!header->nextSibling || header->nextSibling->parent == header->parent); in remove_from_parent()
118 assert(!header->prevSibling || header->prevSibling->parent == header->parent); in remove_from_parent()
134 assert(parent->child == header); in remove_from_parent()
135 parent->child = header->nextSibling; in remove_from_parent()
140 header->parent = NULL; in remove_from_parent()
141 parent->childCount--; in remove_from_parent()
151 ptr->parent = ptr->child = ptr->prevSibling = ptr->nextSibling = NULL; in hieralloc_allocate()
159 hieralloc_header_t * parent = NULL; in hieralloc_allocate() local
161 parent = &hieralloc_global_header; in hieralloc_allocate()
163 parent = get_header(context); in hieralloc_allocate()
164 add_to_parent(parent, ptr); in hieralloc_allocate()
184 hieralloc_header_t * parent = header->parent; in hieralloc_reallocate() local
186 if (get_header(context) != get_header(ptr)->parent) in hieralloc_reallocate()
189 parent = get_header(context); in hieralloc_reallocate()
190 add_to_parent(parent, header); in hieralloc_reallocate()
207 parent->child = header; in hieralloc_reallocate()
212 child->parent = header; in hieralloc_reallocate()
253 add_to_parent(header->parent, current); in hieralloc_free()
324 return header->parent + 1; in hieralloc_parent()
367 …char * ret = (char *)hieralloc_reallocate(header->parent + 1, str, sizeof(char) * (len + appendLen… in _hieralloc_strlendup_append()
525 if (header->parent) in hieralloc_report_lineage()
526 hieralloc_report_lineage(header->parent + 1, file, tab + 2); in hieralloc_report_lineage()
530 …ize, header->childCount, header->refCount, header->name, header->parent ? header->parent + 1 : NUL… in hieralloc_report_lineage()