Lines Matching refs:sos_hdr
2994 const struct psp_firmware_header_v2_0 *sos_hdr) in parse_sos_bin_descriptor() argument
2998 if (!psp || !desc || !sos_hdr) in parse_sos_bin_descriptor()
3001 ucode_start_addr = (uint8_t *)sos_hdr + in parse_sos_bin_descriptor()
3003 le32_to_cpu(sos_hdr->header.ucode_array_offset_bytes); in parse_sos_bin_descriptor()
3076 const struct psp_firmware_header_v1_0 *sos_hdr; in psp_init_sos_base_fw() local
3080 sos_hdr = (const struct psp_firmware_header_v1_0 *)adev->psp.sos_fw->data; in psp_init_sos_base_fw()
3081 ucode_array_start_addr = (uint8_t *)sos_hdr + in psp_init_sos_base_fw()
3082 le32_to_cpu(sos_hdr->header.ucode_array_offset_bytes); in psp_init_sos_base_fw()
3086 adev->psp.sos.fw_version = le32_to_cpu(sos_hdr->header.ucode_version); in psp_init_sos_base_fw()
3087 adev->psp.sos.feature_version = le32_to_cpu(sos_hdr->sos.fw_version); in psp_init_sos_base_fw()
3089 adev->psp.sys.size_bytes = le32_to_cpu(sos_hdr->sos.offset_bytes); in psp_init_sos_base_fw()
3092 adev->psp.sos.size_bytes = le32_to_cpu(sos_hdr->sos.size_bytes); in psp_init_sos_base_fw()
3094 le32_to_cpu(sos_hdr->sos.offset_bytes); in psp_init_sos_base_fw()
3124 const struct psp_firmware_header_v1_0 *sos_hdr; in psp_init_sos_microcode() local
3147 sos_hdr = (const struct psp_firmware_header_v1_0 *)adev->psp.sos_fw->data; in psp_init_sos_microcode()
3148 ucode_array_start_addr = (uint8_t *)sos_hdr + in psp_init_sos_microcode()
3149 le32_to_cpu(sos_hdr->header.ucode_array_offset_bytes); in psp_init_sos_microcode()
3150 amdgpu_ucode_print_psp_hdr(&sos_hdr->header); in psp_init_sos_microcode()
3152 switch (sos_hdr->header.header_version_major) { in psp_init_sos_microcode()
3158 if (sos_hdr->header.header_version_minor == 1) { in psp_init_sos_microcode()
3167 if (sos_hdr->header.header_version_minor == 2) { in psp_init_sos_microcode()
3173 if (sos_hdr->header.header_version_minor == 3) { in psp_init_sos_microcode()