Lines Matching refs:num_sections
266 int num_regions, num_sections, i; in efi_image_parse() local
350 num_sections = nt->FileHeader.NumberOfSections; in efi_image_parse()
353 sorted = calloc(sizeof(IMAGE_SECTION_HEADER *), num_sections); in efi_image_parse()
362 for (i = 0; i < num_sections; i++) in efi_image_parse()
364 qsort(sorted, num_sections, sizeof(sorted[0]), cmp_pe_section); in efi_image_parse()
366 for (i = 0; i < num_sections; i++) { in efi_image_parse()
737 int num_sections; in efi_load_pe() local
766 num_sections = nt->FileHeader.NumberOfSections; in efi_load_pe()
770 if (efi_size < ((void *)sections + sizeof(sections[0]) * num_sections in efi_load_pe()
772 log_err("Invalid number of sections: %d\n", num_sections); in efi_load_pe()
785 for (i = num_sections - 1; i >= 0; i--) { in efi_load_pe()
837 + num_sections * sizeof(IMAGE_SECTION_HEADER)); in efi_load_pe()
840 for (i = num_sections - 1; i >= 0; i--) { in efi_load_pe()