• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/acpi/acpica/

Lines Matching refs:object

3  * Module Name: utobject - ACPI object create/delete/size/cache routines
72 * Type - ACPI Type of the new object
74 * RETURN: A new internal object, null on failure
76 * DESCRIPTION: Create and initialize a new internal object.
78 * NOTE: We always allocate the worst-case object descriptor because
81 * the most memory efficient, but the efficiency of the object
93 union acpi_operand_object *object;
99 /* Allocate the raw object descriptor */
101 object =
104 if (!object) {
113 /* These types require a secondary object */
119 acpi_ut_delete_object_desc(object);
126 /* Link the second object to the first */
128 object->common.next_object = second_object;
132 /* All others have no secondary object */
136 /* Save the object type in the object descriptor */
138 object->common.type = (u8) type;
142 object->common.reference_count = 1;
146 return_PTR(object);
155 * RETURN: Pointer to a new Package object, null on failure
157 * DESCRIPTION: Create a fully initialized package object
168 /* Create a new Package object */
197 * RETURN: Pointer to a new Integer object, null on failure
199 * DESCRIPTION: Create an initialized integer object
209 /* Create and initialize a new integer object */
226 * RETURN: Pointer to a new Buffer object, null on failure
228 * DESCRIPTION: Create a fully initialized buffer object
239 /* Create a new Buffer object */
261 /* Complete buffer object initialization */
280 * RETURN: Pointer to a new String object
282 * DESCRIPTION: Create a fully initialized string object
293 /* Create a new String object */
312 /* Complete string object initialization */
328 * RETURN: TRUE if object is valid, FALSE otherwise
334 u8 acpi_ut_valid_internal_object(void *object)
341 if (!object) {
348 switch (ACPI_GET_DESCRIPTOR_TYPE(object)) {
351 /* The object appears to be a valid union acpi_operand_object */
358 object, acpi_ut_get_descriptor_name(object)));
373 * RETURN: Pointer to newly allocated object descriptor. Null on error
375 * DESCRIPTION: Allocate a new object descriptor. Gracefully handle
383 union acpi_operand_object *object;
387 object = acpi_os_acquire_object(acpi_gbl_operand_cache);
388 if (!object) {
390 "Could not allocate an object descriptor"));
397 memset(object, 0, sizeof(union acpi_operand_object));
398 ACPI_SET_DESCRIPTOR_TYPE(object, ACPI_DESC_TYPE_OPERAND);
401 object, (u32) sizeof(union acpi_operand_object)));
403 return_PTR(object);
410 * PARAMETERS: Object - An Acpi internal object to be deleted
414 * DESCRIPTION: Free an ACPI object descriptor or add it to the object cache
418 void acpi_ut_delete_object_desc(union acpi_operand_object *object)
420 ACPI_FUNCTION_TRACE_PTR(ut_delete_object_desc, object);
424 if (ACPI_GET_DESCRIPTOR_TYPE(object) != ACPI_DESC_TYPE_OPERAND) {
426 "%p is not an ACPI Operand object [%s]", object,
427 acpi_ut_get_descriptor_name(object)));
431 (void)acpi_os_release_object(acpi_gbl_operand_cache, object);
439 * PARAMETERS: internal_object - An ACPI operand object
445 * contain a simple object for return to an external user.
447 * The length includes the object structure plus any additional
463 * Handle a null object (Could be a uninitialized package
471 /* Start with the length of the Acpi object */
477 /* Object is a named object (reference), just return the length */
484 * The final length depends on the object type
485 * Strings and Buffers are packed right up against the parent object and
514 * Get the actual length of the full pathname to this object.
515 * The reference will be converted to the pathname to the object
535 "Cannot convert to external object - "
536 "unsupported Reference Class [%s] 0x%X in object %p",
547 ACPI_ERROR((AE_INFO, "Cannot convert to external object - "
548 "unsupported type [%s] 0x%X in object %p",
556 * Account for the space required by the object rounded up to the next
557 * multiple of the machine word size. This keeps each object aligned
590 * Simple object - just get the size (Null object/entry is handled
605 /* Package object - nothing much to do here, let the walk handle it */
625 * PARAMETERS: internal_object - An ACPI internal object
631 * contain a package object for return to an external user.
675 * PARAMETERS: internal_object - An ACPI internal object
681 * contain an object for return to an API user.