Home
last modified time | relevance | path

Searched refs:ta_hdr (Results 1 – 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Dpsp_v10_0.c53 const struct ta_firmware_header_v1_0 *ta_hdr; in psp_v10_0_init_microcode() local
85 ta_hdr = (const struct ta_firmware_header_v1_0 *) in psp_v10_0_init_microcode()
88 le32_to_cpu(ta_hdr->ta_hdcp_ucode_version); in psp_v10_0_init_microcode()
90 le32_to_cpu(ta_hdr->ta_hdcp_size_bytes); in psp_v10_0_init_microcode()
92 (uint8_t *)ta_hdr + in psp_v10_0_init_microcode()
93 le32_to_cpu(ta_hdr->header.ucode_array_offset_bytes); in psp_v10_0_init_microcode()
95 adev->psp.ta_fw_version = le32_to_cpu(ta_hdr->header.ucode_version); in psp_v10_0_init_microcode()
98 le32_to_cpu(ta_hdr->ta_dtm_ucode_version); in psp_v10_0_init_microcode()
100 le32_to_cpu(ta_hdr->ta_dtm_size_bytes); in psp_v10_0_init_microcode()
103 le32_to_cpu(ta_hdr->ta_dtm_offset_bytes); in psp_v10_0_init_microcode()
Dpsp_v11_0.c82 const struct ta_firmware_header_v1_0 *ta_hdr; in psp_v11_0_init_microcode() local
138 ta_hdr = (const struct ta_firmware_header_v1_0 *)adev->psp.ta_fw->data; in psp_v11_0_init_microcode()
139 adev->psp.ta_xgmi_ucode_version = le32_to_cpu(ta_hdr->ta_xgmi_ucode_version); in psp_v11_0_init_microcode()
140 adev->psp.ta_xgmi_ucode_size = le32_to_cpu(ta_hdr->ta_xgmi_size_bytes); in psp_v11_0_init_microcode()
141 adev->psp.ta_xgmi_start_addr = (uint8_t *)ta_hdr + in psp_v11_0_init_microcode()
142 le32_to_cpu(ta_hdr->header.ucode_array_offset_bytes); in psp_v11_0_init_microcode()
143 adev->psp.ta_fw_version = le32_to_cpu(ta_hdr->header.ucode_version); in psp_v11_0_init_microcode()
144 adev->psp.ta_ras_ucode_version = le32_to_cpu(ta_hdr->ta_ras_ucode_version); in psp_v11_0_init_microcode()
145 adev->psp.ta_ras_ucode_size = le32_to_cpu(ta_hdr->ta_ras_size_bytes); in psp_v11_0_init_microcode()
147 le32_to_cpu(ta_hdr->ta_ras_offset_bytes); in psp_v11_0_init_microcode()
[all …]
Dpsp_v12_0.c54 const struct ta_firmware_header_v1_0 *ta_hdr; in psp_v12_0_init_microcode() local
85 ta_hdr = (const struct ta_firmware_header_v1_0 *) in psp_v12_0_init_microcode()
88 le32_to_cpu(ta_hdr->ta_hdcp_ucode_version); in psp_v12_0_init_microcode()
90 le32_to_cpu(ta_hdr->ta_hdcp_size_bytes); in psp_v12_0_init_microcode()
92 (uint8_t *)ta_hdr + in psp_v12_0_init_microcode()
93 le32_to_cpu(ta_hdr->header.ucode_array_offset_bytes); in psp_v12_0_init_microcode()
95 adev->psp.ta_fw_version = le32_to_cpu(ta_hdr->header.ucode_version); in psp_v12_0_init_microcode()
98 le32_to_cpu(ta_hdr->ta_dtm_ucode_version); in psp_v12_0_init_microcode()
100 le32_to_cpu(ta_hdr->ta_dtm_size_bytes); in psp_v12_0_init_microcode()
103 le32_to_cpu(ta_hdr->ta_dtm_offset_bytes); in psp_v12_0_init_microcode()
Damdgpu_psp.c2523 const struct ta_firmware_header_v2_0 *ta_hdr) in parse_ta_bin_descriptor() argument
2527 if (!psp || !desc || !ta_hdr) in parse_ta_bin_descriptor()
2530 ucode_start_addr = (uint8_t *)ta_hdr + in parse_ta_bin_descriptor()
2532 le32_to_cpu(ta_hdr->header.ucode_array_offset_bytes); in parse_ta_bin_descriptor()
2580 const struct ta_firmware_header_v2_0 *ta_hdr; in psp_init_ta_microcode() local
2598 ta_hdr = (const struct ta_firmware_header_v2_0 *)adev->psp.ta_fw->data; in psp_init_ta_microcode()
2600 if (le16_to_cpu(ta_hdr->header.header_version_major) != 2) { in psp_init_ta_microcode()
2606 if (le32_to_cpu(ta_hdr->ta_fw_bin_count) >= UCODE_MAX_TA_PACKAGING) { in psp_init_ta_microcode()
2612 for (ta_index = 0; ta_index < le32_to_cpu(ta_hdr->ta_fw_bin_count); ta_index++) { in psp_init_ta_microcode()
2614 &ta_hdr->ta_fw_bin[ta_index], in psp_init_ta_microcode()
[all …]