Lines Matching refs:node
69 struct acpi_namespace_node *node; in acpi_ns_create_node() local
75 node = ACPI_MEM_CALLOCATE (sizeof (struct acpi_namespace_node)); in acpi_ns_create_node()
76 if (!node) { in acpi_ns_create_node()
82 node->name.integer = name; in acpi_ns_create_node()
83 node->reference_count = 1; in acpi_ns_create_node()
84 ACPI_SET_DESCRIPTOR_TYPE (node, ACPI_DESC_TYPE_NAMED); in acpi_ns_create_node()
86 return_PTR (node); in acpi_ns_create_node()
104 struct acpi_namespace_node *node) in acpi_ns_delete_node() argument
111 ACPI_FUNCTION_TRACE_PTR ("ns_delete_node", node); in acpi_ns_delete_node()
114 parent_node = acpi_ns_get_parent_node (node); in acpi_ns_delete_node()
121 while (next_node != node) { in acpi_ns_delete_node()
154 acpi_ns_detach_object (node); in acpi_ns_delete_node()
155 ACPI_MEM_FREE (node); in acpi_ns_delete_node()
236 struct acpi_namespace_node *node, /* New Child*/ in acpi_ns_install_node() argument
263 parent_node->child = node; in acpi_ns_install_node()
264 node->flags |= ANOBJ_END_OF_PEER_LIST; in acpi_ns_install_node()
265 node->peer = parent_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()
282 child_node->peer = node; in acpi_ns_install_node()
286 node->flags |= ANOBJ_END_OF_PEER_LIST; in acpi_ns_install_node()
287 node->peer = parent_node; in acpi_ns_install_node()
299 if (!(node->flags & ANOBJ_END_OF_PEER_LIST)) { in acpi_ns_install_node()
307 node->peer = child_node; in acpi_ns_install_node()
308 previous_child_node->peer = node; in acpi_ns_install_node()
313 node->peer = child_node; in acpi_ns_install_node()
314 parent_node->child = node; in acpi_ns_install_node()
322 child_node->peer = node; in acpi_ns_install_node()
327 node->flags |= ANOBJ_END_OF_PEER_LIST; in acpi_ns_install_node()
328 node->peer = parent_node; in acpi_ns_install_node()
334 node->owner_id = owner_id; in acpi_ns_install_node()
335 node->type = (u8) type; in acpi_ns_install_node()
339 acpi_ut_get_node_name (node), acpi_ut_get_type_name (node->type), node, owner_id, in acpi_ns_install_node()
347 while ((node = acpi_ns_get_parent_node (node)) != NULL) { in acpi_ns_install_node()
348 node->reference_count++; in acpi_ns_install_node()
374 struct acpi_namespace_node *node; in acpi_ns_delete_children() local
424 node = child_node; in acpi_ns_delete_children()
425 while ((node = acpi_ns_get_parent_node (node)) != NULL) { in acpi_ns_delete_children()
426 node->reference_count--; in acpi_ns_delete_children()
553 struct acpi_namespace_node *node) in acpi_ns_remove_reference() argument
566 this_node = node; in acpi_ns_remove_reference()