Lines Matching refs:Object
167 * Object - Object to be attached
168 * Type - Type of object, or ACPI_TYPE_ANY if not
173 * DESCRIPTION: Record the given object as the value associated with the
174 * name whose ACPI_HANDLE is passed. If Object is NULL
186 ACPI_OPERAND_OBJECT *Object,
208 if (!Object && (ACPI_TYPE_ANY != Type))
210 /* Null object */
213 "Null object, but type not ACPI_TYPE_ANY"));
226 /* Check if this object is already attached */
228 if (Node->Object == Object)
232 Object, Node));
237 /* If null object, we will just install it */
239 if (!Object)
246 * If the source object is a namespace Node with an attached object,
247 * we will use that (attached) object
249 else if ((ACPI_GET_DESCRIPTOR_TYPE (Object) == ACPI_DESC_TYPE_NAMED) &&
250 ((ACPI_NAMESPACE_NODE *) Object)->Object)
256 ObjDesc = ((ACPI_NAMESPACE_NODE *) Object)->Object;
257 ObjectType = ((ACPI_NAMESPACE_NODE *) Object)->Type;
261 * Otherwise, we will use the parameter object, but we must type
266 ObjDesc = (ACPI_OPERAND_OBJECT *) Object;
276 /* Detach an existing attached object if present */
278 if (Node->Object)
287 * (if it is an internal object)
301 /* Install the object at the front of the object list */
303 LastObjDesc->Common.NextObject = Node->Object;
307 Node->Object = ObjDesc;
317 * PARAMETERS: Node - A Namespace node whose object will be detached
321 * DESCRIPTION: Detach/delete an object associated with a namespace node.
322 * if the object is an allocated object, it is freed.
337 ObjDesc = Node->Object;
362 Node->Object = NULL;
365 /* Unlink object from front of possible object list */
367 Node->Object = ObjDesc->Common.NextObject;
369 /* Handle possible 2-descriptor object */
371 if (Node->Object &&
372 (Node->Object->Common.Type != ACPI_TYPE_LOCAL_DATA))
374 Node->Object = Node->Object->Common.NextObject;
378 * Detach the object from any data objects (which are still held by
392 ACPI_DEBUG_PRINT ((ACPI_DB_NAMES, "Node %p [%4.4s] Object %p\n",
395 /* Remove one reference on the object (and all subobjects) */
408 * RETURN: Current value of the object field from the Node whose
411 * DESCRIPTION: Obtain the object attached to a namespace node.
428 if (!Node->Object ||
429 ((ACPI_GET_DESCRIPTOR_TYPE (Node->Object) != ACPI_DESC_TYPE_OPERAND) &&
430 (ACPI_GET_DESCRIPTOR_TYPE (Node->Object) != ACPI_DESC_TYPE_NAMED)) ||
431 ((Node->Object)->Common.Type == ACPI_TYPE_LOCAL_DATA))
436 return_PTR (Node->Object);
446 * RETURN: Current value of the object field from the Node whose
449 * DESCRIPTION: Obtain a secondary object associated with a namespace node.
482 * DESCRIPTION: Low-level attach data. Create and attach a Data object.
500 ObjDesc = Node->Object;
513 /* Create an internal object for the data */
524 /* Install the data object */
532 Node->Object = DataDesc;
563 ObjDesc = Node->Object;
575 Node->Object = ObjDesc->Common.NextObject;
614 ObjDesc = Node->Object;