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