Home
last modified time | relevance | path

Searched refs:fw_header (Results 1 – 6 of 6) sorted by relevance

/freebsd-14.2/usr.sbin/cpucontrol/
H A Dvia.c85 const via_fw_header_t *fw_header; in via_update() local
133 if (params->fwsize < sizeof(*fw_header)) { in via_update()
138 fw_header = (const via_fw_header_t *)fw_image; in via_update()
139 if (fw_header->signature != VIA_HEADER_SIGNATURE || in via_update()
145 data_size = fw_header->data_size; in via_update()
146 total_size = fw_header->total_size; in via_update()
151 payload_size = data_size + sizeof(*fw_header); in via_update()
169 if (signature != fw_header->cpu_signature) in via_update()
172 if (fw_header->revision != 0 && revision >= fw_header->revision) { in via_update()
174 path, fw_header->revision); in via_update()
[all …]
H A Dintel.c86 const intel_fw_header_t *fw_header; in intel_update() local
151 if (params->fwsize < sizeof(*fw_header)) { in intel_update()
166 if (fw_header->data_size == 0) in intel_update()
169 data_size = fw_header->data_size; in intel_update()
170 if (fw_header->total_size == 0) in intel_update()
171 total_size = data_size + sizeof(*fw_header); in intel_update()
173 total_size = fw_header->total_size; in intel_update()
233 if (signature == fw_header->cpu_signature && in intel_update()
234 (flags & fw_header->cpu_flags) != 0) in intel_update()
247 if (revision >= fw_header->revision) { in intel_update()
[all …]
H A Damd10h.c94 const amd_10h_fw_header_t *fw_header; in amd10h_update() local
226 if (section_header->size < sizeof(*fw_header)) { in amd10h_update()
231 fw_header = (const amd_10h_fw_header_t *)fw_data; in amd10h_update()
235 if (fw_header->processor_rev_id != equiv_id) { in amd10h_update()
237 fw_header->processor_rev_id, equiv_id); in amd10h_update()
240 if (fw_header->patch_id <= revision) { in amd10h_update()
242 fw_header->patch_id, revision); in amd10h_update()
245 if (fw_header->nb_dev_id != 0 || fw_header->sb_dev_id != 0) { in amd10h_update()
249 WARNX(3, "selecting revision: %x", fw_header->patch_id); in amd10h_update()
250 revision = fw_header->patch_id; in amd10h_update()
[all …]
H A Damd.c80 const amd_fw_header_t *fw_header; in amd_update() local
114 if (params->fwsize < sizeof(*fw_header)) { in amd_update()
118 fw_header = (const amd_fw_header_t *)fw_image; in amd_update()
119 if ((fw_header->magic >> 8) != AMD_MAGIC) { in amd_update()
124 fw_data = (const uint32_t *)(fw_header + 1); in amd_update()
125 fw_size = (params->fwsize - sizeof(*fw_header)) / sizeof(uint32_t); in amd_update()
133 if (sum != fw_header->checksum) { in amd_update()
137 if (signature == fw_header->signature) { in amd_update()
/freebsd-14.2/sys/arm/freescale/imx/
H A Dimx6_sdma.c371 sc->fw_header = header; in load_firmware()
389 ram_code = (const void *)((const char *)sc->fw_header + in boot_firmware()
390 sc->fw_header->ram_code_start); in boot_firmware()
436 bd0->mode.count = sc->fw_header->ram_code_size / 2; in boot_firmware()
H A Dimx6_sdma.h222 const struct sdma_firmware_header *fw_header; member