Lines Matching defs:table

50  * Disable table checksum verification for the early stage due to the size
274 * @id: table id (for debugging purposes)
275 * @table_size: size of the root table
276 * @table_header: where does the table start?
286 * The table_size is not the size of the complete ACPI table (the length
287 * field in the header struct), but only the size of the root table; i.e.,
288 * the offset from the very first byte of the complete ACPI table, to the
413 * acpi_table_parse - find table with @id, run @handler on it
414 * @id: table id to find
417 * Scan the ACPI System Descriptor Table (STD) for a table matching @id,
420 * Return 0 if table found, -errno if not.
424 struct acpi_table_header *table = NULL;
433 acpi_get_table(id, acpi_apic_instance, &table);
435 acpi_get_table(id, 0, &table);
437 if (table) {
438 handler(table);
439 acpi_put_table(table);
452 struct acpi_table_header *table = NULL;
454 acpi_get_table(ACPI_SIG_MADT, 2, &table);
455 if (table) {
461 acpi_put_table(table);
469 static void acpi_table_taint(struct acpi_table_header *table)
472 table->signature, table->oem_table_id);
519 struct acpi_table_header *table;
548 table = file.data;
551 if (!memcmp(table->signature, table_sigs[sig], 4))
559 if (file.size != table->length) {
560 pr_err("ACPI OVERRIDE: File length does not match table length [%s%s]\n",
564 if (acpi_table_checksum(file.data, table->length)) {
565 pr_err("ACPI OVERRIDE: Bad table checksum [%s%s]\n",
570 pr_info("%4.4s ACPI table found in initrd [%s%s][0x%x]\n",
571 table->signature, cpio_path, file.name, table->length);
573 all_tables_size += table->length;
582 pr_notice("kernel is locked down, ignoring table override\n");
642 struct acpi_table_header *table;
651 table = acpi_os_map_memory(acpi_tables_addr + table_offset,
653 if (table_offset + table->length > all_tables_size) {
654 acpi_os_unmap_memory(table, ACPI_HEADER_SIZE);
659 table_length = table->length;
662 if (memcmp(existing_table->signature, table->signature, 4) ||
663 memcmp(table->oem_id, existing_table->oem_id,
665 memcmp(table->oem_table_id, existing_table->oem_table_id,
667 acpi_os_unmap_memory(table, ACPI_HEADER_SIZE);
671 * Mark the table to avoid being used in
675 existing_table->oem_revision >= table->oem_revision) {
676 acpi_os_unmap_memory(table, ACPI_HEADER_SIZE);
683 table->signature, table->oem_id,
684 table->oem_table_id);
685 acpi_os_unmap_memory(table, ACPI_HEADER_SIZE);
700 struct acpi_table_header *table;
706 table = acpi_os_map_memory(acpi_tables_addr + table_offset,
708 if (table_offset + table->length > all_tables_size) {
709 acpi_os_unmap_memory(table, ACPI_HEADER_SIZE);
714 table_length = table->length;
717 if (ACPI_COMPARE_NAMESEG(table->signature, ACPI_SIG_RSDT) ||
718 ACPI_COMPARE_NAMESEG(table->signature, ACPI_SIG_XSDT)) {
719 acpi_os_unmap_memory(table, ACPI_HEADER_SIZE);
723 * Mark the table to avoid being used in
728 acpi_os_unmap_memory(table, ACPI_HEADER_SIZE);
733 table->signature, table->oem_id,
734 table->oem_table_id);
735 acpi_os_unmap_memory(table, ACPI_HEADER_SIZE);
806 pr_info("Early table checksum verification enabled\n");
809 pr_info("Early table checksum verification disabled\n");
832 pr_info("Reserving %4s table memory at [mem 0x%llx-0x%llx]\n",
866 pr_notice("Shall use APIC/MADT table %d\n", acpi_apic_instance);