Lines Matching defs:checksum
29 * exception on bad checksum.
37 u8 checksum;
41 * They are the odd tables, have no standard ACPI header and no checksum
48 /* Compute the checksum on the table */
51 checksum =
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));
82 * returns an exception on bad checksum.
89 u8 checksum;
91 /* Compute the checksum on the table */
93 checksum = acpi_ut_generate_checksum(ACPI_CAST_PTR(u8, cdat_table),
95 cdat_table->checksum);
97 /* Computed checksum matches table? */
99 if (checksum != cdat_table->checksum) {
101 "Incorrect checksum in table [%4.4s] - 0x%2.2X, "
103 acpi_gbl_CDAT, cdat_table->checksum,
104 checksum));
111 cdat_table->checksum = checksum;
121 * original_checksum - Value of the checksum field
123 * RETURN: 8 bit checksum of buffer
125 * DESCRIPTION: Computes an 8 bit checksum of the table.
131 u8 checksum;
135 checksum = acpi_ut_checksum((u8 *)table, length);
137 /* Subtract off the existing checksum value in the table */
139 checksum = (u8)(checksum - original_checksum);
141 /* Compute and return the final checksum */
143 checksum = (u8)(0 - checksum);
144 return (checksum);
156 * DESCRIPTION: Calculates circular checksum of memory region.