Lines Matching +full:max +full:- +full:len

25 #include "hw/acpi/aml-build.h"
26 #include "qemu/error-report.h"
34 /* The max size in bytes for one error block */
46 * Table 18-343 Generic Error Data Entry
59 * Table 18-380 Generic Error Status Block
190 * Table 17-13 Generic Error Data Entry in ghes_gen_err_data_uncorrectable_recoverable()
224 * (GHESv2 - Type 10) in build_ghes_error_table()
230 error_status_block_offset = hardware_errors->len; in build_ghes_error_table()
273 * Generic Hardware Error Source version 2(GHESv2 - Type 10) in build_ghes_v2()
285 /* Number of Records To Pre-allocate */ in build_ghes_v2()
287 /* Max Sections Per Record */ in build_ghes_v2()
289 /* Max Raw Data Length */ in build_ghes_v2()
292 address_offset = table_data->len; in build_ghes_v2()
311 * version 2 (GHESv2 - Type 10) in build_ghes_v2()
313 address_offset = table_data->len; in build_ghes_v2()
356 /* Create a read-only fw_cfg file for GHES */ in acpi_ghes_add_fw_cfg()
357 fw_cfg_add_file(s, ACPI_HW_ERROR_FW_CFG_FILE, hardware_error->data, in acpi_ghes_add_fw_cfg()
358 hardware_error->len); in acpi_ghes_add_fw_cfg()
360 /* Create a read-write fw_cfg file for Address */ in acpi_ghes_add_fw_cfg()
362 NULL, &(ags->hw_error_le), sizeof(ags->hw_error_le), false); in acpi_ghes_add_fw_cfg()
364 ags->present = true; in acpi_ghes_add_fw_cfg()
376 * non-HEST version supports only one source, so no need to change in get_hw_error_offsets()
393 static void ghes_record_cper_errors(const void *cper, size_t len, in ghes_record_cper_errors() argument
400 if (len > ACPI_GHES_MAX_RAW_DATA_LENGTH) { in ghes_record_cper_errors()
401 error_setg(errp, "GHES CPER record is too big: %zd", len); in ghes_record_cper_errors()
411 ags = &acpi_ged_state->ghes_state; in ghes_record_cper_errors()
414 get_hw_error_offsets(le64_to_cpu(ags->hw_error_le), in ghes_record_cper_errors()
442 cpu_physical_memory_write(cper_addr, cper, len); in ghes_record_cper_errors()
471 ghes_record_cper_errors(block->data, block->len, source_id, &errp); in acpi_ghes_memory_errors()
477 return -1; in acpi_ghes_memory_errors()
494 ags = &acpi_ged_state->ghes_state; in acpi_ghes_present()
495 return ags->present; in acpi_ghes_present()