Lines Matching full:checksum

189 	struct basl_table_checksum *checksum;  in basl_finish_patch_checksums()  local
191 STAILQ_FOREACH(checksum, &table->checksums, chain) { in basl_finish_patch_checksums()
197 len = checksum->len; in basl_finish_patch_checksums()
202 assert(checksum->off < table->len); in basl_finish_patch_checksums()
203 assert(checksum->start < table->len); in basl_finish_patch_checksums()
204 assert(checksum->start + len <= table->len); in basl_finish_patch_checksums()
206 /* Cause guest BIOS to patch the checksum. */ in basl_finish_patch_checksums()
208 table->fwcfg_name, checksum->off, checksum->start, len)); in basl_finish_patch_checksums()
220 gpa = BHYVE_ACPI_BASE + table->off + checksum->start; in basl_finish_patch_checksums()
224 __func__, table->off, checksum->start); in basl_finish_patch_checksums()
235 checksum_gva = gva + checksum->off; in basl_finish_patch_checksums()
237 warnx("%s: invalid checksum offset 0x%8x", __func__, in basl_finish_patch_checksums()
238 checksum->off); in basl_finish_patch_checksums()
377 * Calculate the checksum as last step! in basl_finish()
427 struct basl_table_checksum *checksum; in basl_table_add_checksum() local
431 checksum = calloc(1, sizeof(struct basl_table_checksum)); in basl_table_add_checksum()
432 if (checksum == NULL) { in basl_table_add_checksum()
433 warnx("%s: failed to allocate checksum", __func__); in basl_table_add_checksum()
437 checksum->off = off; in basl_table_add_checksum()
438 checksum->start = start; in basl_table_add_checksum()
439 checksum->len = len; in basl_table_add_checksum()
441 STAILQ_INSERT_TAIL(&table->checksums, checksum, chain); in basl_table_add_checksum()
597 header_le.Checksum = 0; /* patched by basl_finish */ in basl_table_append_header()
612 offsetof(ACPI_TABLE_HEADER, Checksum), 0, in basl_table_append_header()