Lines Matching defs:table

4  * Module Name: utcksum - Support generating table checksums
23 * PARAMETERS: table - ACPI table to verify
24 * length - Length of entire table
28 * DESCRIPTION: Verifies that the table checksums to zero. Optionally returns
31 * not in the RSDT/XSDT, and the CDAT table is never installed
35 acpi_status acpi_ut_verify_checksum(struct acpi_table_header *table, u32 length)
43 if (ACPI_COMPARE_NAMESEG(table->signature, ACPI_SIG_S3PT) ||
44 ACPI_COMPARE_NAMESEG(table->signature, ACPI_SIG_FACS)) {
48 /* Compute the checksum on the table */
50 length = table->length;
52 acpi_ut_generate_checksum(ACPI_CAST_PTR(u8, table), length,
53 table->checksum);
55 /* Computed checksum matches table? */
57 if (checksum != table->checksum) {
59 "Incorrect checksum in table [%4.4s] - 0x%2.2X, "
61 table->signature, table->checksum,
62 table->checksum - checksum));
76 * PARAMETERS: table - CDAT ACPI table to verify
77 * length - Length of entire table
81 * DESCRIPTION: Verifies that the CDAT table checksums to zero. Optionally
91 /* Compute the checksum on the table */
97 /* Computed checksum matches table? */
101 "Incorrect checksum in table [%4.4s] - 0x%2.2X, "
119 * PARAMETERS: table - Pointer to table to be checksummed
120 * length - Length of the table
125 * DESCRIPTION: Computes an 8 bit checksum of the table.
129 u8 acpi_ut_generate_checksum(void *table, u32 length, u8 original_checksum)
133 /* Sum the entire table as-is */
135 checksum = acpi_ut_checksum((u8 *)table, length);
137 /* Subtract off the existing checksum value in the table */