Lines Matching defs:hdr

31 static void radeon_ucode_print_common_hdr(const struct common_firmware_header *hdr)
33 DRM_DEBUG("size_bytes: %u\n", le32_to_cpu(hdr->size_bytes));
34 DRM_DEBUG("header_size_bytes: %u\n", le32_to_cpu(hdr->header_size_bytes));
35 DRM_DEBUG("header_version_major: %u\n", le16_to_cpu(hdr->header_version_major));
36 DRM_DEBUG("header_version_minor: %u\n", le16_to_cpu(hdr->header_version_minor));
37 DRM_DEBUG("ip_version_major: %u\n", le16_to_cpu(hdr->ip_version_major));
38 DRM_DEBUG("ip_version_minor: %u\n", le16_to_cpu(hdr->ip_version_minor));
39 DRM_DEBUG("ucode_version: 0x%08x\n", le32_to_cpu(hdr->ucode_version));
40 DRM_DEBUG("ucode_size_bytes: %u\n", le32_to_cpu(hdr->ucode_size_bytes));
42 le32_to_cpu(hdr->ucode_array_offset_bytes));
43 DRM_DEBUG("crc32: 0x%08x\n", le32_to_cpu(hdr->crc32));
46 void radeon_ucode_print_mc_hdr(const struct common_firmware_header *hdr)
48 uint16_t version_major = le16_to_cpu(hdr->header_version_major);
49 uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
52 radeon_ucode_print_common_hdr(hdr);
56 container_of(hdr, struct mc_firmware_header_v1_0, header);
67 void radeon_ucode_print_smc_hdr(const struct common_firmware_header *hdr)
69 uint16_t version_major = le16_to_cpu(hdr->header_version_major);
70 uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
73 radeon_ucode_print_common_hdr(hdr);
77 container_of(hdr, struct smc_firmware_header_v1_0, header);
85 void radeon_ucode_print_gfx_hdr(const struct common_firmware_header *hdr)
87 uint16_t version_major = le16_to_cpu(hdr->header_version_major);
88 uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
91 radeon_ucode_print_common_hdr(hdr);
95 container_of(hdr, struct gfx_firmware_header_v1_0, header);
106 void radeon_ucode_print_rlc_hdr(const struct common_firmware_header *hdr)
108 uint16_t version_major = le16_to_cpu(hdr->header_version_major);
109 uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
112 radeon_ucode_print_common_hdr(hdr);
116 container_of(hdr, struct rlc_firmware_header_v1_0, header);
133 void radeon_ucode_print_sdma_hdr(const struct common_firmware_header *hdr)
135 uint16_t version_major = le16_to_cpu(hdr->header_version_major);
136 uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
139 radeon_ucode_print_common_hdr(hdr);
143 container_of(hdr, struct sdma_firmware_header_v1_0, header);
159 const struct common_firmware_header *hdr =
162 if (fw->size == le32_to_cpu(hdr->size_bytes))