Lines Matching refs:child_node
240 struct acpi_namespace_node *child_node; in acpi_ns_install_node() local
261 child_node = parent_node->child; in acpi_ns_install_node()
262 if (!child_node) { in acpi_ns_install_node()
274 …while (acpi_ns_compare_names (acpi_ut_get_node_name (child_node), acpi_ut_get_node_name (node)) < … in acpi_ns_install_node()
275 if (child_node->flags & ANOBJ_END_OF_PEER_LIST) { in acpi_ns_install_node()
278 child_node->flags &= ~ANOBJ_END_OF_PEER_LIST; in acpi_ns_install_node()
282 child_node->peer = node; in acpi_ns_install_node()
293 previous_child_node = child_node; in acpi_ns_install_node()
294 child_node = child_node->peer; in acpi_ns_install_node()
307 node->peer = child_node; in acpi_ns_install_node()
313 node->peer = child_node; in acpi_ns_install_node()
318 while (!(child_node->flags & ANOBJ_END_OF_PEER_LIST)) { in acpi_ns_install_node()
319 child_node = child_node->peer; in acpi_ns_install_node()
322 child_node->peer = node; in acpi_ns_install_node()
326 child_node->flags &= ~ANOBJ_END_OF_PEER_LIST; in acpi_ns_install_node()
372 struct acpi_namespace_node *child_node; in acpi_ns_delete_children() local
387 child_node = parent_node->child; in acpi_ns_delete_children()
388 if (!child_node) { in acpi_ns_delete_children()
398 next_node = child_node->peer; in acpi_ns_delete_children()
399 flags = child_node->flags; in acpi_ns_delete_children()
403 if (child_node->child) { in acpi_ns_delete_children()
405 parent_node, child_node)); in acpi_ns_delete_children()
413 child_node, acpi_gbl_current_node_count)); in acpi_ns_delete_children()
418 acpi_ns_detach_object (child_node); in acpi_ns_delete_children()
424 node = child_node; in acpi_ns_delete_children()
431 if (child_node->reference_count != 1) { in acpi_ns_delete_children()
433 child_node->reference_count, child_node)); in acpi_ns_delete_children()
438 ACPI_MEM_FREE (child_node); in acpi_ns_delete_children()
442 child_node = next_node; in acpi_ns_delete_children()
472 struct acpi_namespace_node *child_node = NULL; in acpi_ns_delete_namespace_subtree() local
490 child_node = acpi_ns_get_next_node (ACPI_TYPE_ANY, parent_node, in acpi_ns_delete_namespace_subtree()
491 child_node); in acpi_ns_delete_namespace_subtree()
492 if (child_node) { in acpi_ns_delete_namespace_subtree()
495 acpi_ns_detach_object (child_node); in acpi_ns_delete_namespace_subtree()
499 if (acpi_ns_get_next_node (ACPI_TYPE_ANY, child_node, 0)) { in acpi_ns_delete_namespace_subtree()
505 parent_node = child_node; in acpi_ns_delete_namespace_subtree()
506 child_node = 0; in acpi_ns_delete_namespace_subtree()
524 child_node = parent_node; in acpi_ns_delete_namespace_subtree()
608 struct acpi_namespace_node *child_node; in acpi_ns_delete_namespace_by_owner() local
618 child_node = NULL; in acpi_ns_delete_namespace_by_owner()
631 child_node = acpi_ns_get_next_node (ACPI_TYPE_ANY, parent_node, child_node); in acpi_ns_delete_namespace_by_owner()
638 if (child_node) { in acpi_ns_delete_namespace_by_owner()
639 if (child_node->owner_id == owner_id) { in acpi_ns_delete_namespace_by_owner()
642 acpi_ns_detach_object (child_node); in acpi_ns_delete_namespace_by_owner()
647 if (acpi_ns_get_next_node (ACPI_TYPE_ANY, child_node, NULL)) { in acpi_ns_delete_namespace_by_owner()
653 parent_node = child_node; in acpi_ns_delete_namespace_by_owner()
654 child_node = NULL; in acpi_ns_delete_namespace_by_owner()
656 else if (child_node->owner_id == owner_id) { in acpi_ns_delete_namespace_by_owner()
657 deletion_node = child_node; in acpi_ns_delete_namespace_by_owner()
674 child_node = parent_node; in acpi_ns_delete_namespace_by_owner()