Home
last modified time | relevance | path

Searched refs:ucode_size_bytes (Results 1 – 25 of 42) sorted by relevance

12

/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_cgs.c225 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 Damdgpu_ucode.c40 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 Damdgpu_uvd.h37 …GN(le32_to_cpu(((const struct common_firmware_header *)(adev)->uvd.fw->data)->ucode_size_bytes) + \
H A Damdgpu_gfx.c1087 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 Damdgpu_ucode.h36 uint32_t ucode_size_bytes; /* size of ucode in bytes */ member
179 uint32_t ucode_size_bytes; member
H A Damdgpu_vcn.c174 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 Damdgpu_uvd.c320 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 Dgfx_v11_0.c1099 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 Damdgpu_sdma.c263 ALIGN(le32_to_cpu(header->ucode_size_bytes), PAGE_SIZE); in amdgpu_sdma_init_microcode()
H A Dgfx_v7_0.c2413 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 Dgfx_v10_0.c4227 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 Dgmc_v8_0.c301 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 Damdgpu_rlc.c338 ALIGN(le32_to_cpu(common_hdr->ucode_size_bytes), PAGE_SIZE); in amdgpu_gfx_rlc_init_microcode_v2_0()
H A Dgmc_v6_0.c164 ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4; in gmc_v6_0_mc_load_microcode()
H A Dvcn_v4_0_3.c336 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 Dgfx_v6_0.c1952 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 Damdgpu_psp.c3008 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 Duvd_v7_0.c431 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 Dradeon_ucode.h164 uint32_t ucode_size_bytes; /* size of ucode in bytes */ member
H A Dradeon_ucode.c40 DRM_DEBUG("ucode_size_bytes: %u\n", le32_to_cpu(hdr->ucode_size_bytes)); in radeon_ucode_print_common_hdr()
H A Dci_smc.c204 ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes); in ci_load_smc_ucode()
H A Dsi_smc.c229 ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes); in si_load_smc_ucode()
H A Dcik_sdma.c482 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 Dsi_smc.c221 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 Dsmu_v11_0.c126 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()

12