/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_cgs.c | 225 data_size = le32_to_cpu(header->header.ucode_size_bytes); in amdgpu_cgs_get_firmware_info() 229 gpu_addr += ALIGN(le32_to_cpu(header->header.ucode_size_bytes), PAGE_SIZE); in amdgpu_cgs_get_firmware_info() 430 ALIGN(le32_to_cpu(header->ucode_size_bytes), PAGE_SIZE); in amdgpu_cgs_get_firmware_info() 437 ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes); in amdgpu_cgs_get_firmware_info()
|
H A D | amdgpu_ucode.c | 42 DRM_DEBUG("ucode_size_bytes: %u\n", le32_to_cpu(hdr->ucode_size_bytes)); in amdgpu_ucode_print_common_hdr() 868 ucode->ucode_size = le32_to_cpu(sdmav3_hdr->ucode_size_bytes); in amdgpu_ucode_init_single_fw() 874 ucode->ucode_size = le32_to_cpu(header->ucode_size_bytes) - in amdgpu_ucode_init_single_fw() 955 ucode->ucode_size = le32_to_cpu(header->ucode_size_bytes) - in amdgpu_ucode_init_single_fw() 991 ucode->ucode_size = le32_to_cpu(cpv2_hdr->ucode_size_bytes); in amdgpu_ucode_init_single_fw() 1006 ucode->ucode_size = le32_to_cpu(cpv2_hdr->ucode_size_bytes); in amdgpu_ucode_init_single_fw() 1021 ucode->ucode_size = le32_to_cpu(cpv2_hdr->ucode_size_bytes); in amdgpu_ucode_init_single_fw() 1066 ucode->ucode_size = le32_to_cpu(header->ucode_size_bytes); in amdgpu_ucode_init_single_fw() 1072 ucode->ucode_size = le32_to_cpu(header->ucode_size_bytes); in amdgpu_ucode_init_single_fw() 1096 ALIGN(le32_to_cpu(comm_hdr->ucode_size_bytes), in amdgpu_ucode_patch_jt()
|
H A D | amdgpu_ucode.h | 36 uint32_t ucode_size_bytes; /* size of ucode in bytes */ member 188 uint32_t ucode_size_bytes; member 362 uint32_t ucode_size_bytes; member
|
H A D | amdgpu_uvd.h | 37 …GN(le32_to_cpu(((const struct common_firmware_header *)(adev)->uvd.fw->data)->ucode_size_bytes) + \
|
H A D | amdgpu_sdma.c | 274 ALIGN(le32_to_cpu(header->ucode_size_bytes), PAGE_SIZE); in amdgpu_sdma_init_microcode() 299 ALIGN(le32_to_cpu(sdma_hv3->ucode_size_bytes), PAGE_SIZE); in amdgpu_sdma_init_microcode()
|
H A D | amdgpu_gfx.c | 1179 fw_size = le32_to_cpu(cp_hdr->header.ucode_size_bytes); in amdgpu_gfx_cp_init_microcode() 1189 fw_size = le32_to_cpu(cp_hdr_v2_0->ucode_size_bytes); in amdgpu_gfx_cp_init_microcode() 1206 fw_size = le32_to_cpu(cp_hdr->header.ucode_size_bytes); in amdgpu_gfx_cp_init_microcode() 1216 fw_size = le32_to_cpu(cp_hdr_v2_0->ucode_size_bytes); in amdgpu_gfx_cp_init_microcode() 1233 fw_size = le32_to_cpu(cp_hdr->header.ucode_size_bytes); in amdgpu_gfx_cp_init_microcode() 1243 fw_size = le32_to_cpu(cp_hdr->header.ucode_size_bytes) - in amdgpu_gfx_cp_init_microcode() 1260 fw_size = le32_to_cpu(cp_hdr->header.ucode_size_bytes) - in amdgpu_gfx_cp_init_microcode() 1277 fw_size = le32_to_cpu(cp_hdr_v2_0->ucode_size_bytes); in amdgpu_gfx_cp_init_microcode()
|
H A D | amdgpu_isp.c | 120 ALIGN(le32_to_cpu(hdr->ucode_size_bytes), PAGE_SIZE); in isp_load_fw_by_psp()
|
H A D | amdgpu_vcn.c | 186 bo_size += AMDGPU_GPU_PAGE_ALIGN(le32_to_cpu(hdr->ucode_size_bytes) + 8); in amdgpu_vcn_sw_init() 365 le32_to_cpu(hdr->ucode_size_bytes)); in amdgpu_vcn_resume() 368 size -= le32_to_cpu(hdr->ucode_size_bytes); in amdgpu_vcn_resume() 369 ptr += le32_to_cpu(hdr->ucode_size_bytes); in amdgpu_vcn_resume() 1070 ALIGN(le32_to_cpu(hdr->ucode_size_bytes), PAGE_SIZE); in amdgpu_vcn_setup_ucode()
|
H A D | amdgpu_uvd.c | 320 bo_size += AMDGPU_GPU_PAGE_ALIGN(le32_to_cpu(hdr->ucode_size_bytes) + 8); in amdgpu_uvd_sw_init() 506 le32_to_cpu(hdr->ucode_size_bytes)); in amdgpu_uvd_resume() 509 size -= le32_to_cpu(hdr->ucode_size_bytes); in amdgpu_uvd_resume() 510 ptr += le32_to_cpu(hdr->ucode_size_bytes); in amdgpu_uvd_resume()
|
H A D | gfx_v11_0.c | 1291 fw_size = le32_to_cpu(cpv2_hdr->ucode_size_bytes); in gfx_v11_0_rlc_backdoor_autoload_copy_gfx_ucode() 1308 fw_size = le32_to_cpu(cpv2_hdr->ucode_size_bytes); in gfx_v11_0_rlc_backdoor_autoload_copy_gfx_ucode() 1325 fw_size = le32_to_cpu(cpv2_hdr->ucode_size_bytes); in gfx_v11_0_rlc_backdoor_autoload_copy_gfx_ucode() 1346 fw_size = le32_to_cpu(cp_hdr->header.ucode_size_bytes); in gfx_v11_0_rlc_backdoor_autoload_copy_gfx_ucode() 1355 fw_size = le32_to_cpu(cp_hdr->header.ucode_size_bytes); in gfx_v11_0_rlc_backdoor_autoload_copy_gfx_ucode() 1375 fw_size = le32_to_cpu(rlc_hdr->header.ucode_size_bytes); in gfx_v11_0_rlc_backdoor_autoload_copy_gfx_ucode() 2133 fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4; in gfx_v11_0_load_rlcg_microcode() 3012 fw_ucode_size = le32_to_cpu(pfp_hdr->ucode_size_bytes); in gfx_v11_0_cp_gfx_load_pfp_microcode_rs64() 3182 fw_size = le32_to_cpu(me_hdr->header.ucode_size_bytes); in gfx_v11_0_cp_gfx_load_me_microcode() 3230 fw_ucode_size = le32_to_cpu(me_hdr->ucode_size_bytes); in gfx_v11_0_cp_gfx_load_me_microcode_rs64() [all …]
|
H A D | gfx_v12_0.c | 547 adev->psp.toc.size_bytes = le32_to_cpu(toc_hdr->header.ucode_size_bytes); in gfx_v12_0_init_toc_microcode() 1090 fw_size = le32_to_cpu(cpv2_hdr->ucode_size_bytes); in gfx_v12_0_rlc_backdoor_autoload_copy_gfx_ucode() 1107 fw_size = le32_to_cpu(cpv2_hdr->ucode_size_bytes); in gfx_v12_0_rlc_backdoor_autoload_copy_gfx_ucode() 1124 fw_size = le32_to_cpu(cpv2_hdr->ucode_size_bytes); in gfx_v12_0_rlc_backdoor_autoload_copy_gfx_ucode() 1145 fw_size = le32_to_cpu(rlc_hdr->header.ucode_size_bytes); in gfx_v12_0_rlc_backdoor_autoload_copy_gfx_ucode() 1196 fw_size = le32_to_cpu(sdma_hdr->ucode_size_bytes); in gfx_v12_0_rlc_backdoor_autoload_copy_sdma_ucode() 1846 fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4; in gfx_v12_0_load_rlcg_microcode() 2229 fw_ucode_size = le32_to_cpu(pfp_hdr->ucode_size_bytes); in gfx_v12_0_cp_gfx_load_pfp_microcode_rs64() 2373 fw_ucode_size = le32_to_cpu(me_hdr->ucode_size_bytes); in gfx_v12_0_cp_gfx_load_me_microcode_rs64() 2695 fw_ucode_size = le32_to_cpu(mec_hdr->ucode_size_bytes); in gfx_v12_0_cp_compute_load_microcode_rs64()
|
H A D | vcn_v5_0_0.c | 340 size = AMDGPU_GPU_PAGE_ALIGN(le32_to_cpu(hdr->ucode_size_bytes) + 8); in vcn_v5_0_0_mc_resume() 401 size = AMDGPU_GPU_PAGE_ALIGN(le32_to_cpu(hdr->ucode_size_bytes) + 8); in vcn_v5_0_0_mc_resume_dpg_mode()
|
H A D | gfx_v7_0.c | 2413 fw_size = le32_to_cpu(pfp_hdr->header.ucode_size_bytes) / 4; in gfx_v7_0_cp_gfx_load_microcode() 2423 fw_size = le32_to_cpu(ce_hdr->header.ucode_size_bytes) / 4; in gfx_v7_0_cp_gfx_load_microcode() 2433 fw_size = le32_to_cpu(me_hdr->header.ucode_size_bytes) / 4; in gfx_v7_0_cp_gfx_load_microcode() 2668 fw_size = le32_to_cpu(mec_hdr->header.ucode_size_bytes) / 4; in gfx_v7_0_cp_compute_load_microcode() 2690 fw_size = le32_to_cpu(mec2_hdr->header.ucode_size_bytes) / 4; in gfx_v7_0_cp_compute_load_microcode() 3448 fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4; in gfx_v7_0_rlc_resume()
|
H A D | gfx_v10_0.c | 4389 fw_size = le32_to_cpu(mec_hdr->header.ucode_size_bytes); in gfx_v10_0_mec_init() 5390 fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4; in gfx_v10_0_rlc_load_microcode() 5611 fw_size = le32_to_cpu(cp_hdr->header.ucode_size_bytes); in gfx_v10_0_rlc_backdoor_autoload_copy_gfx_ucode() 5621 fw_size = le32_to_cpu(cp_hdr->header.ucode_size_bytes); in gfx_v10_0_rlc_backdoor_autoload_copy_gfx_ucode() 5631 fw_size = le32_to_cpu(cp_hdr->header.ucode_size_bytes); in gfx_v10_0_rlc_backdoor_autoload_copy_gfx_ucode() 5641 fw_size = le32_to_cpu(rlc_hdr->header.ucode_size_bytes); in gfx_v10_0_rlc_backdoor_autoload_copy_gfx_ucode() 5651 fw_size = le32_to_cpu(cp_hdr->header.ucode_size_bytes) - in gfx_v10_0_rlc_backdoor_autoload_copy_gfx_ucode() 5672 fw_size = le32_to_cpu(sdma_hdr->header.ucode_size_bytes); in gfx_v10_0_rlc_backdoor_autoload_copy_sdma_ucode() 5963 fw_size = le32_to_cpu(pfp_hdr->header.ucode_size_bytes); in gfx_v10_0_cp_gfx_load_pfp_microcode() 6041 fw_size = le32_to_cpu(ce_hdr->header.ucode_size_bytes); in gfx_v10_0_cp_gfx_load_ce_microcode() [all …]
|
H A D | gmc_v8_0.c | 299 ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4; in gmc_v8_0_tonga_mc_load_microcode() 368 ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4; in gmc_v8_0_polaris_mc_load_microcode()
|
H A D | vcn_v4_0_5.c | 376 size = AMDGPU_GPU_PAGE_ALIGN(le32_to_cpu(hdr->ucode_size_bytes) + 8); in vcn_v4_0_5_mc_resume() 437 size = AMDGPU_GPU_PAGE_ALIGN(le32_to_cpu(hdr->ucode_size_bytes) + 8); in vcn_v4_0_5_mc_resume_dpg_mode()
|
H A D | amdgpu_rlc.c | 338 ALIGN(le32_to_cpu(common_hdr->ucode_size_bytes), PAGE_SIZE); in amdgpu_gfx_rlc_init_microcode_v2_0()
|
H A D | gmc_v6_0.c | 158 ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4; in gmc_v6_0_mc_load_microcode()
|
H A D | gfx_v6_0.c | 1951 fw_size = le32_to_cpu(pfp_hdr->header.ucode_size_bytes) / 4; in gfx_v6_0_cp_gfx_load_microcode() 1960 fw_size = le32_to_cpu(ce_hdr->header.ucode_size_bytes) / 4; in gfx_v6_0_cp_gfx_load_microcode() 1969 fw_size = le32_to_cpu(me_hdr->header.ucode_size_bytes) / 4; in gfx_v6_0_cp_gfx_load_microcode() 2507 fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4; in gfx_v6_0_rlc_resume()
|
/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_ucode.h | 164 uint32_t ucode_size_bytes; /* size of ucode in bytes */ member
|
H A D | radeon_ucode.c | 40 DRM_DEBUG("ucode_size_bytes: %u\n", le32_to_cpu(hdr->ucode_size_bytes)); in radeon_ucode_print_common_hdr()
|
H A D | ci_smc.c | 204 ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes); in ci_load_smc_ucode()
|
H A D | si_smc.c | 229 ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes); in si_load_smc_ucode()
|
H A D | cik_sdma.c | 482 fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4; in cik_sdma_load_microcode() 491 fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4; in cik_sdma_load_microcode()
|
/linux/drivers/gpu/drm/amd/pm/legacy-dpm/ |
H A D | si_smc.c | 221 ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes); in amdgpu_si_load_smc_ucode()
|