Lines Matching refs:fw
279 static int verify_and_add_patch(u8 family, u8 *fw, unsigned int leftover) in verify_and_add_patch() argument
287 patch_size = *(u32 *)(fw + 4); in verify_and_add_patch()
289 mc_hdr = (struct microcode_header_amd *)(fw + SECTION_HDR_SIZE); in verify_and_add_patch()
329 memcpy(patch->data, fw + SECTION_HDR_SIZE, patch_size); in verify_and_add_patch()
348 u8 *fw = (u8 *)data; in __load_microcode_amd() local
357 fw += offset; in __load_microcode_amd()
360 if (*(u32 *)fw != UCODE_UCODE_TYPE) { in __load_microcode_amd()
367 crnt_size = verify_and_add_patch(family, fw, leftover); in __load_microcode_amd()
371 fw += crnt_size; in __load_microcode_amd()
426 const struct firmware *fw; in request_microcode_amd() local
435 if (request_firmware_direct(&fw, (const char *)fw_name, device)) { in request_microcode_amd()
441 if (*(u32 *)fw->data != UCODE_MAGIC) { in request_microcode_amd()
442 pr_err("invalid magic value (0x%08x)\n", *(u32 *)fw->data); in request_microcode_amd()
446 ret = load_microcode_amd(cpu, c->x86, fw->data, fw->size); in request_microcode_amd()
449 release_firmware(fw); in request_microcode_amd()