Lines Matching defs:hdr

38 static void amdgpu_ucode_print_common_hdr(const struct common_firmware_header *hdr)
40 DRM_DEBUG("size_bytes: %u\n", le32_to_cpu(hdr->size_bytes));
41 DRM_DEBUG("header_size_bytes: %u\n", le32_to_cpu(hdr->header_size_bytes));
42 DRM_DEBUG("header_version_major: %u\n", le16_to_cpu(hdr->header_version_major));
43 DRM_DEBUG("header_version_minor: %u\n", le16_to_cpu(hdr->header_version_minor));
44 DRM_DEBUG("ip_version_major: %u\n", le16_to_cpu(hdr->ip_version_major));
45 DRM_DEBUG("ip_version_minor: %u\n", le16_to_cpu(hdr->ip_version_minor));
46 DRM_DEBUG("ucode_version: 0x%08x\n", le32_to_cpu(hdr->ucode_version));
47 DRM_DEBUG("ucode_size_bytes: %u\n", le32_to_cpu(hdr->ucode_size_bytes));
49 le32_to_cpu(hdr->ucode_array_offset_bytes));
50 DRM_DEBUG("crc32: 0x%08x\n", le32_to_cpu(hdr->crc32));
53 void amdgpu_ucode_print_mc_hdr(const struct common_firmware_header *hdr)
55 uint16_t version_major = le16_to_cpu(hdr->header_version_major);
56 uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
59 amdgpu_ucode_print_common_hdr(hdr);
63 const_container_of(hdr, struct mc_firmware_header_v1_0, header);
74 void amdgpu_ucode_print_smc_hdr(const struct common_firmware_header *hdr)
76 uint16_t version_major = le16_to_cpu(hdr->header_version_major);
77 uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
80 amdgpu_ucode_print_common_hdr(hdr);
84 const_container_of(hdr, struct smc_firmware_header_v1_0, header);
89 const_container_of(hdr, struct smc_firmware_header_v1_0, header);
100 void amdgpu_ucode_print_gfx_hdr(const struct common_firmware_header *hdr)
102 uint16_t version_major = le16_to_cpu(hdr->header_version_major);
103 uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
106 amdgpu_ucode_print_common_hdr(hdr);
110 const_container_of(hdr, struct gfx_firmware_header_v1_0, header);
121 void amdgpu_ucode_print_rlc_hdr(const struct common_firmware_header *hdr)
123 uint16_t version_major = le16_to_cpu(hdr->header_version_major);
124 uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
127 amdgpu_ucode_print_common_hdr(hdr);
131 const_container_of(hdr, struct rlc_firmware_header_v1_0, header);
145 const_container_of(hdr, struct rlc_firmware_header_v2_0, header);
216 void amdgpu_ucode_print_sdma_hdr(const struct common_firmware_header *hdr)
218 uint16_t version_major = le16_to_cpu(hdr->header_version_major);
219 uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
222 amdgpu_ucode_print_common_hdr(hdr);
226 const_container_of(hdr, struct sdma_firmware_header_v1_0, header);
245 void amdgpu_ucode_print_psp_hdr(const struct common_firmware_header *hdr)
247 uint16_t version_major = le16_to_cpu(hdr->header_version_major);
248 uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
251 amdgpu_ucode_print_common_hdr(hdr);
255 const_container_of(hdr, struct psp_firmware_header_v1_0, header);
295 void amdgpu_ucode_print_gpu_info_hdr(const struct common_firmware_header *hdr)
297 uint16_t version_major = le16_to_cpu(hdr->header_version_major);
298 uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
301 amdgpu_ucode_print_common_hdr(hdr);
305 const_container_of(hdr, struct gpu_info_firmware_header_v1_0, header);
318 const struct common_firmware_header *hdr =
321 if (fw->size == le32_to_cpu(hdr->size_bytes))
327 bool amdgpu_ucode_hdr_version(union amdgpu_firmware_header *hdr,
330 if ((hdr->common.header_version_major == hdr_major) &&
331 (hdr->common.header_version_minor == hdr_minor))