Lines Matching full:object

21  *              object              - Object to be attached
22 * type - Type of object, or ACPI_TYPE_ANY if not
27 * DESCRIPTION: Record the given object as the value associated with the
28 * name whose acpi_handle is passed. If Object is NULL
38 union acpi_operand_object *object, acpi_object_type type) in acpi_ns_attach_object() argument
57 if (!object && (ACPI_TYPE_ANY != type)) { in acpi_ns_attach_object()
59 /* Null object */ in acpi_ns_attach_object()
62 "Null object, but type not ACPI_TYPE_ANY")); in acpi_ns_attach_object()
75 /* Check if this object is already attached */ in acpi_ns_attach_object()
77 if (node->object == object) { in acpi_ns_attach_object()
80 object, node)); in acpi_ns_attach_object()
85 /* If null object, we will just install it */ in acpi_ns_attach_object()
87 if (!object) { in acpi_ns_attach_object()
93 * If the source object is a namespace Node with an attached object, in acpi_ns_attach_object()
94 * we will use that (attached) object in acpi_ns_attach_object()
96 else if ((ACPI_GET_DESCRIPTOR_TYPE(object) == ACPI_DESC_TYPE_NAMED) && in acpi_ns_attach_object()
97 ((struct acpi_namespace_node *)object)->object) { in acpi_ns_attach_object()
102 obj_desc = ((struct acpi_namespace_node *)object)->object; in acpi_ns_attach_object()
103 object_type = ((struct acpi_namespace_node *)object)->type; in acpi_ns_attach_object()
107 * Otherwise, we will use the parameter object, but we must type in acpi_ns_attach_object()
111 obj_desc = (union acpi_operand_object *)object; in acpi_ns_attach_object()
121 /* Detach an existing attached object if present */ in acpi_ns_attach_object()
123 if (node->object) { in acpi_ns_attach_object()
130 * (if it is an internal object) in acpi_ns_attach_object()
143 /* Install the object at the front of the object list */ in acpi_ns_attach_object()
145 last_obj_desc->common.next_object = node->object; in acpi_ns_attach_object()
149 node->object = obj_desc; in acpi_ns_attach_object()
158 * PARAMETERS: node - A Namespace node whose object will be detached
162 * DESCRIPTION: Detach/delete an object associated with a namespace node.
163 * if the object is an allocated object, it is freed.
174 obj_desc = node->object; in acpi_ns_detach_object()
195 node->object = NULL; in acpi_ns_detach_object()
198 /* Unlink object from front of possible object list */ in acpi_ns_detach_object()
200 node->object = obj_desc->common.next_object; in acpi_ns_detach_object()
202 /* Handle possible 2-descriptor object */ in acpi_ns_detach_object()
204 if (node->object && in acpi_ns_detach_object()
205 (node->object->common.type != ACPI_TYPE_LOCAL_DATA)) { in acpi_ns_detach_object()
206 node->object = node->object->common.next_object; in acpi_ns_detach_object()
210 * Detach the object from any data objects (which are still held by in acpi_ns_detach_object()
224 ACPI_DEBUG_PRINT((ACPI_DB_NAMES, "Node %p [%4.4s] Object %p\n", in acpi_ns_detach_object()
227 /* Remove one reference on the object (and all subobjects) */ in acpi_ns_detach_object()
239 * RETURN: Current value of the object field from the Node whose
242 * DESCRIPTION: Obtain the object attached to a namespace node.
257 if (!node->object || in acpi_ns_get_attached_object()
258 ((ACPI_GET_DESCRIPTOR_TYPE(node->object) != ACPI_DESC_TYPE_OPERAND) in acpi_ns_get_attached_object()
259 && (ACPI_GET_DESCRIPTOR_TYPE(node->object) != in acpi_ns_get_attached_object()
261 || ((node->object)->common.type == ACPI_TYPE_LOCAL_DATA)) { in acpi_ns_get_attached_object()
265 return_PTR(node->object); in acpi_ns_get_attached_object()
274 * RETURN: Current value of the object field from the Node whose
277 * DESCRIPTION: Obtain a secondary object associated with a namespace node.
308 * DESCRIPTION: Low-level attach data. Create and attach a Data object.
323 obj_desc = node->object; in acpi_ns_attach_data()
334 /* Create an internal object for the data */ in acpi_ns_attach_data()
344 /* Install the data object */ in acpi_ns_attach_data()
349 node->object = data_desc; in acpi_ns_attach_data()
377 obj_desc = node->object; in acpi_ns_detach_data()
385 node->object = obj_desc->common.next_object; in acpi_ns_detach_data()
420 obj_desc = node->object; in acpi_ns_get_attached_data()