Lines Matching refs:fw
754 static int verify_and_add_patch(u8 family, u8 *fw, unsigned int leftover) in verify_and_add_patch() argument
762 patch_size = *(u32 *)(fw + 4); in verify_and_add_patch()
764 mc_hdr = (struct microcode_header_amd *)(fw + SECTION_HDR_SIZE); in verify_and_add_patch()
804 memcpy(patch->data, fw + SECTION_HDR_SIZE, patch_size); in verify_and_add_patch()
823 u8 *fw = (u8 *)data; in __load_microcode_amd() local
832 fw += offset; in __load_microcode_amd()
835 if (*(u32 *)fw != UCODE_UCODE_TYPE) { in __load_microcode_amd()
842 crnt_size = verify_and_add_patch(family, fw, leftover); in __load_microcode_amd()
846 fw += crnt_size; in __load_microcode_amd()
901 const struct firmware *fw; in request_microcode_amd() local
910 if (request_firmware_direct(&fw, (const char *)fw_name, device)) { in request_microcode_amd()
916 if (*(u32 *)fw->data != UCODE_MAGIC) { in request_microcode_amd()
917 pr_err("invalid magic value (0x%08x)\n", *(u32 *)fw->data); in request_microcode_amd()
921 ret = load_microcode_amd(cpu, c->x86, fw->data, fw->size); in request_microcode_amd()
924 release_firmware(fw); in request_microcode_amd()