Home
last modified time | relevance | path

Searched refs:section_descriptor (Results 1 – 3 of 3) sorted by relevance

/openbmc/libcper/
H A Dcper-parse.c24 cper_section_descriptor_to_ir(EFI_ERROR_SECTION_DESCRIPTOR *section_descriptor);
108 EFI_ERROR_SECTION_DESCRIPTOR *section_descriptor; in cper_buf_to_ir() local
109 section_descriptor = (EFI_ERROR_SECTION_DESCRIPTOR *)(pos); in cper_buf_to_ir()
113 if (section_descriptor->SectionOffset > size) { in cper_buf_to_ir()
119 if (section_descriptor->SectionLength <= 0) { in cper_buf_to_ir()
125 if (section_descriptor->SectionOffset > in cper_buf_to_ir()
126 UINT_MAX - section_descriptor->SectionLength) { in cper_buf_to_ir()
132 if (section_descriptor->SectionOffset + in cper_buf_to_ir()
133 section_descriptor->SectionLength > in cper_buf_to_ir()
141 cper_buf + section_descriptor->SectionOffset; in cper_buf_to_ir()
[all …]
H A Dir-parse.c276 EFI_ERROR_SECTION_DESCRIPTOR section_descriptor; in ir_single_section_to_cper() local
277 memset(&section_descriptor, 0, sizeof(section_descriptor)); in ir_single_section_to_cper()
281 &section_descriptor); in ir_single_section_to_cper()
282 fwrite(&section_descriptor, sizeof(section_descriptor), 1, out); in ir_single_section_to_cper()
286 &section_descriptor, out); in ir_single_section_to_cper()
/openbmc/libcper/generator/
H A Dcper-generate.c104 EFI_ERROR_SECTION_DESCRIPTOR *section_descriptor = in generate_single_section_record() local
106 section_descriptor->SectionOffset = in generate_single_section_record()
110 fwrite(section_descriptor, sizeof(EFI_ERROR_SECTION_DESCRIPTOR), 1, in generate_single_section_record()
116 free(section_descriptor); in generate_single_section_record()