Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\microcode\amd.c Create Date:2022-07-28 08:09:20
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__load_microcode_amd

Proto:static enum ucode_state __load_microcode_amd(u8 family, const u8 *data, size_t size)

Type:enum ucode_state

Parameter:

TypeParameterName
u8family
const u8 *data
size_tsize
806  fw = data
809  offset = install_equiv_cpu_table(data, size)
810  If Not offset Then Return UCODE_ERROR
813  fw += offset
814  size -= offset
816  If fw != UCODE_UCODE_TYPE Then
817  pr_err("invalid type field in container file section header\n")
818  free_equiv_cpu_table()
819  Return UCODE_ERROR
822  When size > 0 cycle
823  crnt_size = 0
826  ret = Return a non-negative value even if some of the checks failed so that* we can skip over the next patch. If we return a negative value, we* signal a grave error like a memory allocation has failed and the* driver cannot continue functioning normally
827  If ret < 0 Then Return UCODE_ERROR
830  fw += crnt_size + SECTION_HDR_SIZE
831  size -= crnt_size + SECTION_HDR_SIZE
834  Return UCODE_OK
Caller
NameDescribe
load_microcode_amd