Lines Matching defs:Table
169 ACPI_TABLE_HEADER **Table);
173 ACPI_TABLE_HEADER *Table);
210 * PARAMETERS: Filename - Table filename
212 * ReturnListHead - Where table list is returned
230 ACPI_TABLE_HEADER *Table = NULL;
260 /* We must have at least one ACPI table header */
273 " %s: File does not appear to contain a valid AML table\n",
283 /* Get one entire ACPI table */
286 Filename, File, GetOnlyAmlTables, &Table);
303 /* Print table header for iASL/disassembler only */
307 AcpiTbPrintTableHeader (0, Table);
310 /* Allocate and link a table descriptor */
315 AcpiOsFree (Table);
320 TableDesc->Table = Table;
323 /* Link at the end of the local table list */
337 /* Add the local table list to the end of the global list */
364 * PARAMETERS: Filename - File where table is located
367 * ReturnTable - Where a pointer to the table is returned
371 * DESCRIPTION: Read the next ACPI table from a file. Implements support
388 ACPI_TABLE_HEADER *Table;
396 /* Get the table header to examine signature and length */
398 * Special handling for the CDAT table (both the Length field
400 * (The table header is non-standard).
426 /* Validate the table signature/header (limited ASCII chars) */
429 * Table must be an AML table (DSDT/SSDT).
435 " %s: Table [%4.4s] is not an AML table - ignoring\n",
443 * Special handling for the CDAT table (both the Length field
455 /* Allocate a buffer for the entire table */
457 Table = AcpiOsAllocate ((ACPI_SIZE) TableLength);
458 if (!Table)
463 /* Read the entire ACPI table, including header */
466 Count = fread (Table, 1, TableLength, File);
469 * Checks for data table headers happen later in the execution. Only verify
480 * Note: CDAT is special cased here because the table does
485 Status = AcpiUtVerifyCdatChecksum ((ACPI_TABLE_CDAT *) Table, TableLength);
488 Status = AcpiUtVerifyChecksum (Table, TableLength);
493 Status = AcCheckTextModeCorruption (Table);
500 *ReturnTable = Table;
505 AcpiOsFree (Table);
561 * following checks on what would be the table header:
563 * 2) There must be enough room in the file to hold entire table
567 * expect/compare the file size to be equal to the table length. 12/2015.
589 /* Determine the type of table header */
600 /* Read a potential table header */
616 "Could not read entire table header: Actual %u, Requested %u\n",
633 "\nTable appears to be a CDAT table, which has no signature.\n"
634 "If this is in fact a CDAT table, use the -ds option on the\n"
635 "command line to specify the table type (signature):\n"
641 /* Validate table length against bytes remaining in the file */
646 /* Standard ACPI table header */
650 fprintf (stderr, "Table [%4.4s] is too long for file - "
659 /* Special header for CDAT table */
661 fprintf (stderr, "Table [CDAT] is too long for file - "
668 /* For CDAT table, there are no ASCII fields in the header, we are done */
709 "Table header for [%4.4s] has invalid ASCII character(s)",
719 * PARAMETERS: Table - Table buffer starting with table header
723 * DESCRIPTION: Check table for text mode file corruption where all linefeed
731 ACPI_TABLE_HEADER *Table)
735 UINT8 *Buffer = ACPI_CAST_PTR (UINT8, Table);
738 /* Scan entire table to determine if each LF has been prefixed with a CR */
740 for (i = 1; i < Table->Length; i++)
746 /* The LF does not have a preceding CR, table not corrupted */
767 * Entire table scanned, each CR is part of a CR/LF pair --
768 * meaning that the table was treated as a text file somewhere.
770 * NOTE: We can't "fix" the table, because any existing CR/LF pairs in the
771 * original table are left untouched by the text conversion process --
774 AcpiOsPrintf ("Table has been corrupted by text mode conversion\n");
776 AcpiOsPrintf ("Table cannot be repaired!\n");