Lines Matching defs:Table
184 * PARAMETERS: Table - Pointer to raw table
185 * ParentNode - Where to load the table (scope)
186 * DdbHandle - Where to return the table handle.
190 * DESCRIPTION: Common function to Install and Load an ACPI table with a
191 * returned table handle.
206 /* Create an object to be the table handle */
214 /* Init the table handle */
233 * DESCRIPTION: Load an ACPI table from the RSDT/XSDT
265 /* Find the ACPI table in the RSDT/XSDT */
280 /* Table not found, return an Integer=0 and AE_OK */
296 * location within the namespace where the table will be loaded.
332 /* Load the table into the namespace */
334 ACPI_INFO (("Dynamic OEM Table Load:"));
434 * PARAMETERS: ObjDesc - Region or Buffer/Field where the table will be
441 * DESCRIPTION: Load an ACPI table from a field or operation region
459 ACPI_TABLE_HEADER *Table;
487 "Load table from Region %p\n", ObjDesc));
509 /* Get the table header first so we can get the table length */
527 /* Must have at least an ACPI table header */
535 * The original implementation simply mapped the table, with no copy.
537 * we must copy the table to a local buffer. For example, the memory
542 * We use the low-level operation region interface to read the table
550 /* Allocate a buffer for the table */
552 Table = ACPI_ALLOCATE (Length);
553 if (!Table)
558 /* Read the entire table */
561 ACPI_CAST_PTR (UINT8, Table));
564 ACPI_FREE (Table);
572 "Load table from Buffer or Field %p\n", ObjDesc));
574 /* Must have at least an ACPI table header */
581 /* Get the actual table length from the table header */
587 /* Table cannot extend beyond the buffer */
599 * Copy the table from the buffer because the buffer could be
602 Table = ACPI_ALLOCATE (Length);
603 if (!Table)
608 memcpy (Table, TableHeader, Length);
616 /* Install the new table into the local data structures */
618 ACPI_INFO (("Dynamic OEM Table Load:"));
620 Status = AcpiTbInstallAndLoadTable (ACPI_PTR_TO_PHYSADDR (Table),
621 ACPI_TABLE_ORIGIN_INTERNAL_VIRTUAL, Table, TRUE, &TableIndex);
625 /* Delete allocated table buffer */
627 ACPI_FREE (Table);
632 * Add the table to the namespace.
634 * Note: Load the table objects relative to the root of the namespace.
665 * PARAMETERS: DdbHandle - Handle to a previously loaded table
669 * DESCRIPTION: Unload an ACPI table
691 "Received request to unload an ACPI table"));
711 * DdbHandle must still be marked valid (table has not been previously
722 /* Get the table index from the DdbHandle */
727 * Release the interpreter lock so that the table lock won't have