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;
201 &Table, &TableLength, &TableFlags);
208 * Check for a table match on the entire table length,
212 memcmp (TableDesc->Pointer, Table, TableLength)) ?
215 /* Release the acquired table */
217 AcpiTbReleaseTable (Table, TableLength, TableFlags);
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)
246 * Initialize the table descriptor. Set the pointer to NULL for external
247 * tables, since the table is not fully mapped at this time.
251 TableDesc->Length = Table->Length;
253 ACPI_MOVE_32_TO_32 (TableDesc->Signature.Ascii, Table->Signature);
260 TableDesc->Pointer = Table;
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;
301 Table = AcpiOsMapMemory (TableDesc->Address, TableDesc->Length);
307 Table = TableDesc->Pointer;
315 /* Table is not valid yet */
317 if (!Table)
324 *TablePtr = Table;
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,
356 AcpiOsUnmapMemory (Table, TableLength);
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)
401 /* Get the length of the full table from the header */
403 if (!Table)
405 Table = AcpiOsMapMemory (Address, sizeof (ACPI_TABLE_HEADER));
406 if (!Table)
419 if (!Table)
428 /* Table is not valid yet */
433 AcpiTbInitTableDescriptor (TableDesc, Address, Flags, Table);
436 AcpiOsUnmapMemory (Table, sizeof (ACPI_TABLE_HEADER));
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 */
512 * PARAMETERS: TableDesc - Table descriptor
516 * DESCRIPTION: Invalidate one internal ACPI table, this is the inverse of
529 /* Table must be validated */
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.
584 * table length obtaining from the table header.
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 */
632 * Check for a table match on the entire table length,
641 * Note: the current mechanism does not unregister a table if it is
643 * but the table remains in the root table list.
647 * in just keeping the table in case it is needed again.
650 * machines with many table load/unload operations), tables will
652 * root table list should be reused when empty.
657 /* Table is still loaded, this is an error */
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 */
717 "Invalid signature 0x%X for ACPI table, expected [%s]",
732 " Attempted table install failed",
751 " Table is already loaded",
780 * DESCRIPTION: Expand the size of global table array
801 ACPI_ERROR ((AE_INFO, "Resize of Root Table Array is not allowed"));
805 /* Increase the Table Array size */
821 ACPI_ERROR ((AE_INFO, "Could not allocate new root table array"));
825 /* Copy and free the previous table array */
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 */
938 * Delete the root table array if allocated locally. Array cannot be
961 * PARAMETERS: TableIndex - Table index
965 * DESCRIPTION: Delete all namespace objects created when this table was loaded.
988 /* The table index does not exist */
994 /* Get the owner ID for this table, used to delete namespace nodes */
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;
1218 * Note: Now table is "INSTALLED", it must be validated before
1221 Status = AcpiGetTableByIndex (TableIndex, &Table);
1236 * that may have been loaded by this table.
1244 /* Invoke table handler */
1246 AcpiTbNotifyTable (ACPI_TABLE_EVENT_LOAD, Table);
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,
1284 /* Install the table and load it into the namespace */
1286 Status = AcpiTbInstallStandardTable (Address, Flags, Table, TRUE,
1305 * PARAMETERS: TableIndex - Table index
1309 * DESCRIPTION: Unload an ACPI table
1318 ACPI_TABLE_HEADER *Table;
1324 /* Ensure the table is still loaded */
1331 /* Invoke table handler */
1333 Status = AcpiGetTableByIndex (TableIndex, &Table);
1336 AcpiTbNotifyTable (ACPI_TABLE_EVENT_UNLOAD, Table);
1339 /* Delete the portion of the namespace owned by this table */
1357 * PARAMETERS: Event - Table event
1358 * Table - Validated table pointer
1362 * DESCRIPTION: Notify a table event to the users.
1369 void *Table)
1371 /* Invoke table handler if present */
1375 (void) AcpiGbl_TableHandler (Event, Table,