Lines Matching full:table
3 * Module Name: tbdata - Table manager data structure functions
178 * PARAMETERS: TableDesc - Table 1 descriptor to be compared
179 * TableIndex - Index of table 2 to be compared
183 * DESCRIPTION: This function compares a table with another table that has
184 * already been installed in the root table list.
195 ACPI_TABLE_HEADER *Table; in AcpiTbCompareTables() local
201 &Table, &TableLength, &TableFlags); in AcpiTbCompareTables()
208 * Check for a table match on the entire table length, in AcpiTbCompareTables()
212 memcmp (TableDesc->Pointer, Table, TableLength)) ? in AcpiTbCompareTables()
215 /* Release the acquired table */ in AcpiTbCompareTables()
217 AcpiTbReleaseTable (Table, TableLength, TableFlags); in AcpiTbCompareTables()
226 * PARAMETERS: TableDesc - Table descriptor
227 * Address - Physical address of the table
228 * Flags - Allocation flags of the table
229 * Table - Pointer to the table
233 * DESCRIPTION: Initialize a new table descriptor
242 ACPI_TABLE_HEADER *Table) in AcpiTbInitTableDescriptor() argument
246 * Initialize the table descriptor. Set the pointer to NULL for external in AcpiTbInitTableDescriptor()
247 * tables, since the table is not fully mapped at this time. in AcpiTbInitTableDescriptor()
251 TableDesc->Length = Table->Length; in AcpiTbInitTableDescriptor()
253 ACPI_MOVE_32_TO_32 (TableDesc->Signature.Ascii, Table->Signature); in AcpiTbInitTableDescriptor()
260 TableDesc->Pointer = Table; in AcpiTbInitTableDescriptor()
275 * PARAMETERS: TableDesc - Table descriptor
276 * TablePtr - Where table is returned
277 * TableLength - Where table length is returned
278 * TableFlags - Where table allocation flags are returned
282 * DESCRIPTION: Acquire an ACPI table. It can be used for tables not
294 ACPI_TABLE_HEADER *Table = NULL; in AcpiTbAcquireTable() local
301 Table = AcpiOsMapMemory (TableDesc->Address, TableDesc->Length); in AcpiTbAcquireTable()
307 Table = TableDesc->Pointer; in AcpiTbAcquireTable()
315 /* Table is not valid yet */ in AcpiTbAcquireTable()
317 if (!Table) in AcpiTbAcquireTable()
324 *TablePtr = Table; in AcpiTbAcquireTable()
335 * PARAMETERS: Table - Pointer for the table
336 * TableLength - Length for the table
337 * TableFlags - Allocation flags for the table
341 * DESCRIPTION: Release a table. The inverse of AcpiTbAcquireTable().
347 ACPI_TABLE_HEADER *Table, in AcpiTbReleaseTable() argument
356 AcpiOsUnmapMemory (Table, TableLength); in AcpiTbReleaseTable()
372 * PARAMETERS: TableDesc - Table descriptor to be acquired
373 * Address - Address of the table
374 * Flags - Allocation flags of the table
375 * Table - Pointer to the table (required for virtual
380 * DESCRIPTION: This function validates the table header to obtain the length
381 * of a table and fills the table descriptor to make its state as
382 * "INSTALLED". Such a table descriptor is only used for verified
392 ACPI_TABLE_HEADER *Table) in AcpiTbAcquireTempTable() argument
401 /* Get the length of the full table from the header */ in AcpiTbAcquireTempTable()
403 if (!Table) in AcpiTbAcquireTempTable()
405 Table = AcpiOsMapMemory (Address, sizeof (ACPI_TABLE_HEADER)); in AcpiTbAcquireTempTable()
406 if (!Table) in AcpiTbAcquireTempTable()
419 if (!Table) in AcpiTbAcquireTempTable()
428 /* Table is not valid yet */ in AcpiTbAcquireTempTable()
433 AcpiTbInitTableDescriptor (TableDesc, Address, Flags, Table); in AcpiTbAcquireTempTable()
436 AcpiOsUnmapMemory (Table, sizeof (ACPI_TABLE_HEADER)); in AcpiTbAcquireTempTable()
447 * PARAMETERS: TableDesc - Table descriptor to be released
473 * PARAMETERS: TableDesc - Table descriptor
477 * DESCRIPTION: This function is called to validate the table, the returned
478 * table descriptor is in "VALIDATED" state.
492 /* Validate the table if necessary */ in AcpiTbValidateTable()
512 * PARAMETERS: TableDesc - Table descriptor
516 * DESCRIPTION: Invalidate one internal ACPI table, this is the inverse of
529 /* Table must be validated */ in AcpiTbInvalidateTable()
561 * PARAMETERS: TableDesc - Table descriptor
565 * DESCRIPTION: This function is called to validate the table, the returned
566 * table descriptor is in "VALIDATED" state.
578 * Only validates the header of the table. in AcpiTbValidateTempTable()
584 * table length obtaining from the table header. in AcpiTbValidateTempTable()
597 * PARAMETERS: TableDesc - Table descriptor
598 * TableIndex - Where the table index is returned
602 * DESCRIPTION: Avoid installing duplicated tables. However table override and
603 * user aided dynamic table load is allowed, thus comparing the
604 * address of the table is not sufficient, and checking the entire
605 * table content is required.
620 /* Check if table is already registered */ in AcpiTbCheckDuplication()
632 * Check for a table match on the entire table length, in AcpiTbCheckDuplication()
641 * Note: the current mechanism does not unregister a table if it is in AcpiTbCheckDuplication()
643 * but the table remains in the root table list. in AcpiTbCheckDuplication()
647 * in just keeping the table in case it is needed again. in AcpiTbCheckDuplication()
650 * machines with many table load/unload operations), tables will in AcpiTbCheckDuplication()
652 * root table list should be reused when empty. in AcpiTbCheckDuplication()
657 /* Table is still loaded, this is an error */ in AcpiTbCheckDuplication()
678 * PARAMETERS: TableDesc - Table descriptor
679 * Signature - Table signature to verify
680 * TableIndex - Where the table index is returned
684 * DESCRIPTION: This function is called to validate and verify the table, the
685 * returned table descriptor is in "VALIDATED" state.
703 /* Validate the table */ in AcpiTbVerifyTempTable()
717 "Invalid signature 0x%X for ACPI table, expected [%s]", in AcpiTbVerifyTempTable()
732 " Attempted table install failed", in AcpiTbVerifyTempTable()
751 " Table is already loaded", in AcpiTbVerifyTempTable()
780 * DESCRIPTION: Expand the size of global table array
801 ACPI_ERROR ((AE_INFO, "Resize of Root Table Array is not allowed")); in AcpiTbResizeRootTableList()
805 /* Increase the Table Array size */ in AcpiTbResizeRootTableList()
821 ACPI_ERROR ((AE_INFO, "Could not allocate new root table array")); in AcpiTbResizeRootTableList()
825 /* Copy and free the previous table array */ in AcpiTbResizeRootTableList()
860 * PARAMETERS: TableIndex - Where table index is returned
861 * TableDesc - Where table descriptor is returned
863 * RETURN: Status and table index/descriptor.
865 * DESCRIPTION: Allocate a new ACPI table entry to the global table list
878 /* Ensure that there is room for the table in the Root Table List */ in AcpiTbGetNextTableDescriptor()
938 * Delete the root table array if allocated locally. Array cannot be in AcpiTbTerminate()
961 * PARAMETERS: TableIndex - Table index
965 * DESCRIPTION: Delete all namespace objects created when this table was loaded.
988 /* The table index does not exist */ in AcpiTbDeleteNamespaceByOwner()
994 /* Get the owner ID for this table, used to delete namespace nodes */ in AcpiTbDeleteNamespaceByOwner()
1022 * PARAMETERS: TableIndex - Table index
1056 * PARAMETERS: TableIndex - Table index
1091 * PARAMETERS: TableIndex - Table index
1092 * OwnerId - Where the table OwnerId is returned
1096 * DESCRIPTION: returns OwnerId for the ACPI table
1127 * PARAMETERS: TableIndex - Index into the root table
1129 * RETURN: Table Loaded Flag
1157 * PARAMETERS: TableIndex - Table index
1158 * IsLoaded - TRUE if table is loaded, FALSE otherwise
1162 * DESCRIPTION: Sets the table loaded flag to either TRUE or FALSE.
1195 * PARAMETERS: TableIndex - Table index
1196 * ParentNode - Where table index is returned
1200 * DESCRIPTION: Load an ACPI table
1209 ACPI_TABLE_HEADER *Table; in AcpiTbLoadTable() local
1218 * Note: Now table is "INSTALLED", it must be validated before in AcpiTbLoadTable()
1221 Status = AcpiGetTableByIndex (TableIndex, &Table); in AcpiTbLoadTable()
1236 * that may have been loaded by this table. in AcpiTbLoadTable()
1244 /* Invoke table handler */ in AcpiTbLoadTable()
1246 AcpiTbNotifyTable (ACPI_TABLE_EVENT_LOAD, Table); in AcpiTbLoadTable()
1255 * PARAMETERS: Address - Physical address of the table
1256 * Flags - Allocation flags of the table
1257 * Table - Pointer to the table (required for
1261 * TableIndex - Where table index is returned
1265 * DESCRIPTION: Install and load an ACPI table
1273 ACPI_TABLE_HEADER *Table, in AcpiTbInstallAndLoadTable() argument
1284 /* Install the table and load it into the namespace */ in AcpiTbInstallAndLoadTable()
1286 Status = AcpiTbInstallStandardTable (Address, Flags, Table, TRUE, in AcpiTbInstallAndLoadTable()
1305 * PARAMETERS: TableIndex - Table index
1309 * DESCRIPTION: Unload an ACPI table
1318 ACPI_TABLE_HEADER *Table; in AcpiTbUnloadTable() local
1324 /* Ensure the table is still loaded */ in AcpiTbUnloadTable()
1331 /* Invoke table handler */ in AcpiTbUnloadTable()
1333 Status = AcpiGetTableByIndex (TableIndex, &Table); in AcpiTbUnloadTable()
1336 AcpiTbNotifyTable (ACPI_TABLE_EVENT_UNLOAD, Table); in AcpiTbUnloadTable()
1339 /* Delete the portion of the namespace owned by this table */ in AcpiTbUnloadTable()
1357 * PARAMETERS: Event - Table event
1358 * Table - Validated table pointer
1362 * DESCRIPTION: Notify a table event to the users.
1369 void *Table) in AcpiTbNotifyTable() argument
1371 /* Invoke table handler if present */ in AcpiTbNotifyTable()
1375 (void) AcpiGbl_TableHandler (Event, Table, in AcpiTbNotifyTable()