Lines Matching defs:table
53 * Disable table checksum verification for the early stage due to the size
319 * @id: table id (for debugging purposes)
320 * @table_size: size of the root table
321 * @table_header: where does the table start?
331 * The table_size is not the size of the complete ACPI table (the length
332 * field in the header struct), but only the size of the root table; i.e.,
333 * the offset from the very first byte of the complete ACPI table, to the
478 * acpi_table_parse - find table with @id, run @handler on it
479 * @id: table id to find
482 * Scan the ACPI System Descriptor Table (STD) for a table matching @id,
485 * Return 0 if table found, -errno if not.
489 struct acpi_table_header *table = NULL;
498 acpi_get_table(id, acpi_apic_instance, &table);
500 acpi_get_table(id, 0, &table);
502 if (table) {
503 handler(table);
504 acpi_put_table(table);
517 struct acpi_table_header *table = NULL;
519 acpi_get_table(ACPI_SIG_MADT, 2, &table);
520 if (table) {
526 acpi_put_table(table);
534 static void acpi_table_taint(struct acpi_table_header *table)
537 table->signature, table->oem_table_id);
585 struct acpi_table_header *table;
614 table = file.data;
617 if (!memcmp(table->signature, table_sigs[sig], 4))
625 if (file.size != table->length) {
626 pr_err("ACPI OVERRIDE: File length does not match table length [%s%s]\n",
630 if (acpi_table_checksum(file.data, table->length)) {
631 pr_err("ACPI OVERRIDE: Bad table checksum [%s%s]\n",
636 pr_info("%4.4s ACPI table found in initrd [%s%s][0x%x]\n",
637 table->signature, cpio_path, file.name, table->length);
639 all_tables_size += table->length;
648 pr_notice("kernel is locked down, ignoring table override\n");
709 struct acpi_table_header *table;
718 table = acpi_os_map_memory(acpi_tables_addr + table_offset,
720 if (table_offset + table->length > all_tables_size) {
721 acpi_os_unmap_memory(table, ACPI_HEADER_SIZE);
726 table_length = table->length;
729 if (memcmp(existing_table->signature, table->signature, 4) ||
730 memcmp(table->oem_id, existing_table->oem_id,
732 memcmp(table->oem_table_id, existing_table->oem_table_id,
734 acpi_os_unmap_memory(table, ACPI_HEADER_SIZE);
738 * Mark the table to avoid being used in
742 existing_table->oem_revision >= table->oem_revision) {
743 acpi_os_unmap_memory(table, ACPI_HEADER_SIZE);
750 table->signature, table->oem_id,
751 table->oem_table_id);
752 acpi_os_unmap_memory(table, ACPI_HEADER_SIZE);
767 struct acpi_table_header *table;
773 table = acpi_os_map_memory(acpi_tables_addr + table_offset,
775 if (table_offset + table->length > all_tables_size) {
776 acpi_os_unmap_memory(table, ACPI_HEADER_SIZE);
781 table_length = table->length;
784 if (ACPI_COMPARE_NAMESEG(table->signature, ACPI_SIG_RSDT) ||
785 ACPI_COMPARE_NAMESEG(table->signature, ACPI_SIG_XSDT)) {
786 acpi_os_unmap_memory(table, ACPI_HEADER_SIZE);
790 * Mark the table to avoid being used in
795 acpi_os_unmap_memory(table, ACPI_HEADER_SIZE);
800 table->signature, table->oem_id,
801 table->oem_table_id);
802 acpi_os_unmap_memory(table, ACPI_HEADER_SIZE);
872 pr_info("Early table checksum verification enabled\n");
875 pr_info("Early table checksum verification disabled\n");
898 pr_info("Reserving %4s table memory at [mem 0x%llx-0x%llx]\n",
932 pr_notice("Shall use APIC/MADT table %d\n", acpi_apic_instance);