Lines Matching defs:node

19  * PARAMETERS:  name            - Name of the new node (4 char ACPI name)
21 * RETURN: New namespace node (Null on failure)
23 * DESCRIPTION: Create a namespace node
28 struct acpi_namespace_node *node;
35 node = acpi_os_acquire_object(acpi_gbl_namespace_cache);
36 if (!node) {
50 node->name.integer = name;
51 ACPI_SET_DESCRIPTOR_TYPE(node, ACPI_DESC_TYPE_NAMED);
52 return_PTR(node);
59 * PARAMETERS: node - Node to be deleted
63 * DESCRIPTION: Delete a namespace node. All node deletions must come through
66 * invoked before the node is deleted.
70 void acpi_ns_delete_node(struct acpi_namespace_node *node)
77 if (!node) {
83 acpi_ns_detach_object(node);
91 obj_desc = node->object;
97 obj_desc->data.handler(node, obj_desc->data.pointer);
105 /* Special case for the statically allocated root node */
107 if (node == acpi_gbl_root_node) {
111 /* Now we can delete the node */
113 (void)acpi_os_release_object(acpi_gbl_namespace_cache, node);
117 node, acpi_gbl_current_node_count));
124 * PARAMETERS: node - Node to be removed/deleted
128 * DESCRIPTION: Remove (unlink) and delete a namespace node
132 void acpi_ns_remove_node(struct acpi_namespace_node *node)
138 ACPI_FUNCTION_TRACE_PTR(ns_remove_node, node);
140 parent_node = node->parent;
145 /* Find the node that is the previous peer in the parent's child list */
147 while (next_node != node) {
156 prev_node->peer = node->peer;
162 parent_node->child = node->peer;
165 /* Delete the node and any attached objects */
167 acpi_ns_delete_node(node);
177 * node - The new Node to install
182 * DESCRIPTION: Initialize a new namespace node and install it amongst
192 struct acpi_namespace_node *node, /* New Child */
210 * A method is creating a new node that is not a child of the
222 node->peer = NULL;
223 node->parent = parent_node;
227 parent_node->child = node;
229 /* Add node to the end of the peer list */
235 child_node->peer = node;
240 node->owner_id = owner_id;
241 node->type = (u8) type;
245 acpi_ut_get_node_name(node),
246 acpi_ut_get_type_name(node->type), node, owner_id,
291 * Delete this child node and move on to the next child in the list.
292 * No need to unlink the node since we are deleting the entire branch.
343 /* Get the next node in this scope (NULL if none) */
348 /* Found a child node - detach any attached object */
352 /* Check if this node has any children */
356 * There is at least one child of this node,
357 * visit the node
365 * No more children of this parent node.
376 /* New "last child" is this parent node */
438 * Get the next child of this parent node. When child_node is NULL,
452 /* Found a matching child node - detach any attached object */
457 /* Check if this node has any children */
461 * There is at least one child of this node,
462 * visit the node
472 * No more children of this parent node.
482 /* New "last child" is this parent node */