Lines Matching refs:section_header
78 typedef struct section_header { struct
103 const section_header_t *section_header; in ucode_amd_find() local
121 (sizeof(*container_header) + sizeof(*section_header))) { in ucode_amd_find()
134 section_header = (const section_header_t *)fw_data; in ucode_amd_find()
135 if (section_header->type != AMD_10H_EQUIV_TABLE_TYPE) { in ucode_amd_find()
140 if (section_header->size == 0) { in ucode_amd_find()
145 fw_data += sizeof(*section_header); in ucode_amd_find()
146 fw_size -= sizeof(*section_header); in ucode_amd_find()
148 if (section_header->size > fw_size) { in ucode_amd_find()
153 if (section_header->size < sizeof(*equiv_cpu_table)) { in ucode_amd_find()
159 fw_data += section_header->size; in ucode_amd_find()
160 fw_size -= section_header->size; in ucode_amd_find()
179 while (fw_size >= sizeof(*section_header)) { in ucode_amd_find()
180 section_header = (const section_header_t *)fw_data; in ucode_amd_find()
181 if (section_header->type == AMD_10H_MAGIC) { in ucode_amd_find()
189 fw_data += sizeof(*section_header); in ucode_amd_find()
190 fw_size -= sizeof(*section_header); in ucode_amd_find()
191 if (section_header->type != AMD_10H_uCODE_TYPE) { in ucode_amd_find()
196 if (section_header->size > fw_size) { in ucode_amd_find()
201 if (section_header->size < sizeof(*fw_header)) { in ucode_amd_find()
207 fw_data += section_header->size; in ucode_amd_find()
208 fw_size -= section_header->size; in ucode_amd_find()
227 selected_size = section_header->size; in ucode_amd_find()