• Home
  • Raw
  • Download

Lines Matching full:child

54  * masks will be updated to reflect the loss of the child.
76 struct toptree *child, *tmp; in toptree_free() local
80 toptree_for_each_child_safe(child, tmp, cand) in toptree_free()
81 toptree_free(child); in toptree_free()
102 struct toptree *child; in toptree_update_mask() local
105 list_for_each_entry(child, &cand->children, sibling) in toptree_update_mask()
106 cpumask_or(&cand->mask, &cand->mask, &child->mask); in toptree_update_mask()
114 * @target: Pointer to the node to which @cand will added as a child
135 * toptree_move_children - Move all child nodes of a node to a new place
139 * Take all child nodes of @cand and move them using toptree_move.
143 struct toptree *child, *tmp; in toptree_move_children() local
145 toptree_for_each_child_safe(child, tmp, cand) in toptree_move_children()
146 toptree_move(child, target); in toptree_move_children()
159 struct toptree *child, *tmp, *cand_copy; in toptree_unify() local
166 toptree_for_each_child_safe(child, tmp, cand) { in toptree_unify()
169 if (!cpumask_empty(&child->mask)) { in toptree_unify()
170 tmpchild = toptree_get_child(cand_copy, child->id); in toptree_unify()
171 toptree_move_children(child, tmpchild); in toptree_unify()
173 toptree_free(child); in toptree_unify()
178 toptree_for_each_child(child, cand) in toptree_unify()
179 toptree_unify(child); in toptree_unify()
228 * toptree_get_child - Access a tree node's child by its ID
229 * @cand: Pointer to tree node whose child is to access
230 * @id: The desired child's ID
232 * @cand's children are searched for a child with matching ID.
233 * If no match can be found, a new child with the desired ID
238 struct toptree *child; in toptree_get_child() local
240 toptree_for_each_child(child, cand) in toptree_get_child()
241 if (child->id == id) in toptree_get_child()
242 return child; in toptree_get_child()
243 child = toptree_alloc(cand->level-1, id); in toptree_get_child()
244 toptree_insert(child, cand); in toptree_get_child()
245 return child; in toptree_get_child()
259 struct toptree *child, *tmp; in toptree_first() local
265 list_for_each_entry(child, &context->children, sibling) { in toptree_first()
266 tmp = toptree_first(child, level); in toptree_first()