/openbmc/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 | 40 DRM_DEBUG("ucode_size_bytes: %u\n", le32_to_cpu(hdr->ucode_size_bytes)); in amdgpu_ucode_print_common_hdr() 786 ucode->ucode_size = le32_to_cpu(header->ucode_size_bytes) - in amdgpu_ucode_init_single_fw() 867 ucode->ucode_size = le32_to_cpu(header->ucode_size_bytes) - in amdgpu_ucode_init_single_fw() 899 ucode->ucode_size = le32_to_cpu(cpv2_hdr->ucode_size_bytes); in amdgpu_ucode_init_single_fw() 914 ucode->ucode_size = le32_to_cpu(cpv2_hdr->ucode_size_bytes); in amdgpu_ucode_init_single_fw() 929 ucode->ucode_size = le32_to_cpu(cpv2_hdr->ucode_size_bytes); in amdgpu_ucode_init_single_fw() 954 ucode->ucode_size = le32_to_cpu(header->ucode_size_bytes); in amdgpu_ucode_init_single_fw() 960 ucode->ucode_size = le32_to_cpu(header->ucode_size_bytes); in amdgpu_ucode_init_single_fw() 984 ALIGN(le32_to_cpu(comm_hdr->ucode_size_bytes), in amdgpu_ucode_patch_jt()
|
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_gfx.c | 1087 fw_size = le32_to_cpu(cp_hdr->header.ucode_size_bytes); in amdgpu_gfx_cp_init_microcode() 1097 fw_size = le32_to_cpu(cp_hdr_v2_0->ucode_size_bytes); in amdgpu_gfx_cp_init_microcode() 1114 fw_size = le32_to_cpu(cp_hdr->header.ucode_size_bytes); in amdgpu_gfx_cp_init_microcode() 1124 fw_size = le32_to_cpu(cp_hdr_v2_0->ucode_size_bytes); in amdgpu_gfx_cp_init_microcode() 1141 fw_size = le32_to_cpu(cp_hdr->header.ucode_size_bytes); in amdgpu_gfx_cp_init_microcode() 1151 fw_size = le32_to_cpu(cp_hdr->header.ucode_size_bytes) - in amdgpu_gfx_cp_init_microcode() 1168 fw_size = le32_to_cpu(cp_hdr->header.ucode_size_bytes) - in amdgpu_gfx_cp_init_microcode() 1185 fw_size = le32_to_cpu(cp_hdr_v2_0->ucode_size_bytes); in amdgpu_gfx_cp_init_microcode()
|
H A D | amdgpu_ucode.h | 36 uint32_t ucode_size_bytes; /* size of ucode in bytes */ member 179 uint32_t ucode_size_bytes; member
|
H A D | amdgpu_vcn.c | 174 bo_size += AMDGPU_GPU_PAGE_ALIGN(le32_to_cpu(hdr->ucode_size_bytes) + 8); in amdgpu_vcn_sw_init() 348 le32_to_cpu(hdr->ucode_size_bytes)); in amdgpu_vcn_resume() 351 size -= le32_to_cpu(hdr->ucode_size_bytes); in amdgpu_vcn_resume() 352 ptr += le32_to_cpu(hdr->ucode_size_bytes); in amdgpu_vcn_resume() 1053 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() 501 le32_to_cpu(hdr->ucode_size_bytes)); in amdgpu_uvd_resume() 504 size -= le32_to_cpu(hdr->ucode_size_bytes); in amdgpu_uvd_resume() 505 ptr += le32_to_cpu(hdr->ucode_size_bytes); in amdgpu_uvd_resume()
|
H A D | gfx_v11_0.c | 1099 fw_size = le32_to_cpu(cpv2_hdr->ucode_size_bytes); in gfx_v11_0_rlc_backdoor_autoload_copy_gfx_ucode() 1116 fw_size = le32_to_cpu(cpv2_hdr->ucode_size_bytes); in gfx_v11_0_rlc_backdoor_autoload_copy_gfx_ucode() 1133 fw_size = le32_to_cpu(cpv2_hdr->ucode_size_bytes); in gfx_v11_0_rlc_backdoor_autoload_copy_gfx_ucode() 1154 fw_size = le32_to_cpu(cp_hdr->header.ucode_size_bytes); in gfx_v11_0_rlc_backdoor_autoload_copy_gfx_ucode() 1163 fw_size = le32_to_cpu(cp_hdr->header.ucode_size_bytes); in gfx_v11_0_rlc_backdoor_autoload_copy_gfx_ucode() 1183 fw_size = le32_to_cpu(rlc_hdr->header.ucode_size_bytes); in gfx_v11_0_rlc_backdoor_autoload_copy_gfx_ucode() 1847 fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4; in gfx_v11_0_load_rlcg_microcode() 2721 fw_ucode_size = le32_to_cpu(pfp_hdr->ucode_size_bytes); in gfx_v11_0_cp_gfx_load_pfp_microcode_rs64() 2891 fw_size = le32_to_cpu(me_hdr->header.ucode_size_bytes); in gfx_v11_0_cp_gfx_load_me_microcode() 2939 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 | amdgpu_sdma.c | 263 ALIGN(le32_to_cpu(header->ucode_size_bytes), PAGE_SIZE); in amdgpu_sdma_init_microcode()
|
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() 3486 fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4; in gfx_v7_0_rlc_resume()
|
H A D | gfx_v10_0.c | 4227 fw_size = le32_to_cpu(mec_hdr->header.ucode_size_bytes); in gfx_v10_0_mec_init() 5127 fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4; in gfx_v10_0_rlc_load_microcode() 5348 fw_size = le32_to_cpu(cp_hdr->header.ucode_size_bytes); in gfx_v10_0_rlc_backdoor_autoload_copy_gfx_ucode() 5358 fw_size = le32_to_cpu(cp_hdr->header.ucode_size_bytes); in gfx_v10_0_rlc_backdoor_autoload_copy_gfx_ucode() 5368 fw_size = le32_to_cpu(cp_hdr->header.ucode_size_bytes); in gfx_v10_0_rlc_backdoor_autoload_copy_gfx_ucode() 5378 fw_size = le32_to_cpu(rlc_hdr->header.ucode_size_bytes); in gfx_v10_0_rlc_backdoor_autoload_copy_gfx_ucode() 5388 fw_size = le32_to_cpu(cp_hdr->header.ucode_size_bytes) - in gfx_v10_0_rlc_backdoor_autoload_copy_gfx_ucode() 5409 fw_size = le32_to_cpu(sdma_hdr->header.ucode_size_bytes); in gfx_v10_0_rlc_backdoor_autoload_copy_sdma_ucode() 5700 fw_size = le32_to_cpu(pfp_hdr->header.ucode_size_bytes); in gfx_v10_0_cp_gfx_load_pfp_microcode() 5778 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 | 301 ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4; in gmc_v8_0_tonga_mc_load_microcode() 370 ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4; in gmc_v8_0_polaris_mc_load_microcode()
|
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 | 164 ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4; in gmc_v6_0_mc_load_microcode()
|
H A D | vcn_v4_0_3.c | 336 size = AMDGPU_GPU_PAGE_ALIGN(le32_to_cpu(hdr->ucode_size_bytes) + 8); in vcn_v4_0_3_mc_resume() 411 size = AMDGPU_GPU_PAGE_ALIGN(le32_to_cpu(hdr->ucode_size_bytes) + 8); in vcn_v4_0_3_mc_resume_dpg_mode()
|
H A D | gfx_v6_0.c | 1952 fw_size = le32_to_cpu(pfp_hdr->header.ucode_size_bytes) / 4; in gfx_v6_0_cp_gfx_load_microcode() 1961 fw_size = le32_to_cpu(ce_hdr->header.ucode_size_bytes) / 4; in gfx_v6_0_cp_gfx_load_microcode() 1970 fw_size = le32_to_cpu(me_hdr->header.ucode_size_bytes) / 4; in gfx_v6_0_cp_gfx_load_microcode() 2508 fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4; in gfx_v6_0_rlc_resume()
|
H A D | amdgpu_psp.c | 3008 adev->psp.asd_context.bin_desc.size_bytes = le32_to_cpu(asd_hdr->header.ucode_size_bytes); in psp_init_asd_microcode() 3032 adev->psp.toc.size_bytes = le32_to_cpu(toc_hdr->header.ucode_size_bytes); in psp_init_toc_microcode() 3464 le32_to_cpu(cap_hdr_v1_0->header.ucode_size_bytes), PAGE_SIZE); in psp_init_cap_microcode() 3467 adev->psp.cap_ucode_size = le32_to_cpu(cap_hdr_v1_0->header.ucode_size_bytes); in psp_init_cap_microcode()
|
H A D | uvd_v7_0.c | 431 ALIGN(le32_to_cpu(hdr->ucode_size_bytes), PAGE_SIZE); in uvd_v7_0_sw_init() 437 ALIGN(le32_to_cpu(hdr->ucode_size_bytes), PAGE_SIZE); in uvd_v7_0_sw_init()
|
/openbmc/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()
|
/openbmc/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()
|
/openbmc/linux/drivers/gpu/drm/amd/pm/swsmu/smu11/ |
H A D | smu_v11_0.c | 126 ALIGN(le32_to_cpu(header->ucode_size_bytes), PAGE_SIZE); in smu_v11_0_init_microcode() 156 smc_fw_size = hdr->header.ucode_size_bytes; in smu_v11_0_load_microcode()
|