Home
last modified time | relevance | path

Searched refs:ucode_size (Results 1 – 24 of 24) sorted by relevance

/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_ucode.c866 ucode->ucode_size = le32_to_cpu(sdma_hdr->ctx_ucode_size_bytes); in amdgpu_ucode_init_single_fw()
871 ucode->ucode_size = le32_to_cpu(sdma_hdr->ctl_ucode_size_bytes); in amdgpu_ucode_init_single_fw()
876 ucode->ucode_size = le32_to_cpu(sdmav3_hdr->ucode_size_bytes); in amdgpu_ucode_init_single_fw()
882 ucode->ucode_size = le32_to_cpu(header->ucode_size_bytes) - in amdgpu_ucode_init_single_fw()
889 ucode->ucode_size = le32_to_cpu(cp_hdr->jt_size) * 4; in amdgpu_ucode_init_single_fw()
895 ucode->ucode_size = adev->gfx.rlc.save_restore_list_cntl_size_bytes; in amdgpu_ucode_init_single_fw()
899 ucode->ucode_size = adev->gfx.rlc.save_restore_list_gpm_size_bytes; in amdgpu_ucode_init_single_fw()
903 ucode->ucode_size = adev->gfx.rlc.save_restore_list_srm_size_bytes; in amdgpu_ucode_init_single_fw()
907 ucode->ucode_size = adev->gfx.rlc.rlc_iram_ucode_size_bytes; in amdgpu_ucode_init_single_fw()
911 ucode->ucode_size = adev->gfx.rlc.rlc_dram_ucode_size_bytes; in amdgpu_ucode_init_single_fw()
[all …]
H A Dvpe_v6_1.c128 uint32_t ucode_offset[2], ucode_size[2]; in vpe_v6_1_load_microcode() local
176 ucode_size[0] = le32_to_cpu(vpe_hdr->ctx_ucode_size_bytes); in vpe_v6_1_load_microcode()
179 ucode_size[1] = le32_to_cpu(vpe_hdr->ctl_ucode_size_bytes); in vpe_v6_1_load_microcode()
191 size_dw = ucode_size[i] / sizeof(__le32); in vpe_v6_1_load_microcode()
H A Dgmc_v8_0.c285 int i, ucode_size, regs_size; in gmc_v8_0_tonga_mc_load_microcode() local
305 ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4; in gmc_v8_0_tonga_mc_load_microcode()
322 for (i = 0; i < ucode_size; i++) in gmc_v8_0_tonga_mc_load_microcode()
354 int i, ucode_size, regs_size; in gmc_v8_0_polaris_mc_load_microcode() local
374 ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4; in gmc_v8_0_polaris_mc_load_microcode()
392 for (i = 0; i < ucode_size; i++) in gmc_v8_0_polaris_mc_load_microcode()
H A Damdgpu_umsch_mm.h150 uint32_t ucode_size; member
H A Dgmc_v6_0.c150 int i, regs_size, ucode_size; in gmc_v6_0_mc_load_microcode() local
164 ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4; in gmc_v6_0_mc_load_microcode()
182 for (i = 0; i < ucode_size; i++) in gmc_v6_0_mc_load_microcode()
H A Dgmc_v7_0.c183 int i, ucode_size, regs_size; in gmc_v7_0_mc_load_microcode() local
195 ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4; in gmc_v7_0_mc_load_microcode()
212 for (i = 0; i < ucode_size; i++) in gmc_v7_0_mc_load_microcode()
H A Damdgpu_ucode.h583 uint32_t ucode_size; member
H A Dumsch_mm_v4_0.c102 data = adev->umsch_mm.uc_start_addr + adev->umsch_mm.ucode_size - 1; in umsch_mm_v4_0_load_microcode()
H A Damdgpu_jpeg.c346 .ucode_size = ((uintptr_t)adev->jpeg.inst[inst_idx].dpg_sram_curr_addr - in amdgpu_jpeg_psp_update_sram()
H A Damdgpu_vpe.c225 .ucode_size = 8, in amdgpu_vpe_psp_update_sram()
/linux/drivers/gpu/drm/radeon/
H A Drv770_smc.c477 u16 ucode_size; in rv770_load_smc_ucode() local
487 ucode_size = RV770_SMC_UCODE_SIZE; in rv770_load_smc_ucode()
494 ucode_size = RV730_SMC_UCODE_SIZE; in rv770_load_smc_ucode()
501 ucode_size = RV710_SMC_UCODE_SIZE; in rv770_load_smc_ucode()
508 ucode_size = RV740_SMC_UCODE_SIZE; in rv770_load_smc_ucode()
515 ucode_size = CEDAR_SMC_UCODE_SIZE; in rv770_load_smc_ucode()
522 ucode_size = REDWOOD_SMC_UCODE_SIZE; in rv770_load_smc_ucode()
529 ucode_size = JUNIPER_SMC_UCODE_SIZE; in rv770_load_smc_ucode()
537 ucode_size = CYPRESS_SMC_UCODE_SIZE; in rv770_load_smc_ucode()
544 ucode_size = BARTS_SMC_UCODE_SIZE; in rv770_load_smc_ucode()
[all …]
H A Dsi_smc.c215 u32 ucode_size; in si_load_smc_ucode() local
229 ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes); in si_load_smc_ucode()
236 ucode_size = TAHITI_SMC_UCODE_SIZE; in si_load_smc_ucode()
240 ucode_size = PITCAIRN_SMC_UCODE_SIZE; in si_load_smc_ucode()
244 ucode_size = VERDE_SMC_UCODE_SIZE; in si_load_smc_ucode()
248 ucode_size = OLAND_SMC_UCODE_SIZE; in si_load_smc_ucode()
252 ucode_size = HAINAN_SMC_UCODE_SIZE; in si_load_smc_ucode()
261 if (ucode_size & 3) in si_load_smc_ucode()
267 while (ucode_size >= 4) { in si_load_smc_ucode()
274 ucode_size -= 4; in si_load_smc_ucode()
H A Dci_smc.c190 u32 ucode_size; in ci_load_smc_ucode() local
204 ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes); in ci_load_smc_ucode()
211 ucode_size = BONAIRE_SMC_UCODE_SIZE; in ci_load_smc_ucode()
215 ucode_size = HAWAII_SMC_UCODE_SIZE; in ci_load_smc_ucode()
225 if (ucode_size & 3) in ci_load_smc_ucode()
231 while (ucode_size >= 4) { in ci_load_smc_ucode()
238 ucode_size -= 4; in ci_load_smc_ucode()
H A Dni.c623 int i, ucode_size, regs_size; in ni_mc_load_microcode() local
631 ucode_size = BTC_MC_UCODE_SIZE; in ni_mc_load_microcode()
636 ucode_size = BTC_MC_UCODE_SIZE; in ni_mc_load_microcode()
642 ucode_size = BTC_MC_UCODE_SIZE; in ni_mc_load_microcode()
647 ucode_size = CAYMAN_MC_UCODE_SIZE; in ni_mc_load_microcode()
667 for (i = 0; i < ucode_size; i++) in ni_mc_load_microcode()
/linux/drivers/crypto/cavium/nitrox/
H A Dnitrox_main.c70 static void write_to_ucd_unit(struct nitrox_device *ndev, u32 ucode_size, in write_to_ucd_unit() argument
96 code_size = roundup(ucode_size, 16); in write_to_ucd_unit()
119 u32 ucode_size; in nitrox_load_fw() local
133 ucode_size = be32_to_cpu(ucode->code_size) * 2; in nitrox_load_fw()
134 if (!ucode_size || ucode_size > CNN55XX_MAX_UCODE_SIZE) { in nitrox_load_fw()
136 ucode_size, fw_name); in nitrox_load_fw()
147 write_to_ucd_unit(ndev, ucode_size, ucode_data, 0); in nitrox_load_fw()
162 if (ucode_size <= CNN55XX_UCD_BLOCK_SIZE) in nitrox_load_fw()
184 ucode_size = be32_to_cpu(ucode->code_size) * 2; in nitrox_load_fw()
185 if (!ucode_size || ucode_size > CNN55XX_MAX_UCODE_SIZE) { in nitrox_load_fw()
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/acr/
H A Dlsfw.c134 lsfw->ucode_size = ALIGN(lsfw->app_resident_data_offset, 256) + in nvkm_acr_lsfw_from_desc()
137 lsfw->ucode_size; in nvkm_acr_lsfw_from_desc()
212 lsfw->ucode_size = ALIGN(lsfw->app_resident_data_offset, 256) + lsfw->bootloader_size; in nvkm_acr_lsfw_load_sig_image_desc_v2()
213 lsfw->data_size = lsfw->app_size + lsfw->bootloader_size - lsfw->ucode_size; in nvkm_acr_lsfw_load_sig_image_desc_v2()
310 lsfw->ucode_size = ALIGN(lsfw->app_resident_data_offset, 256) + in nvkm_acr_lsfw_load_bl_inst_data_sig()
313 lsfw->ucode_size; in nvkm_acr_lsfw_load_bl_inst_data_sig()
387 lsfw->ucode_size = ALIGN(lsfw->app_resident_data_offset, 256) + in nvkm_acr_lsfw_load_bl_sig_net()
390 lsfw->ucode_size; in nvkm_acr_lsfw_load_bl_sig_net()
H A Dga102.c80 hdr->ucode_size = lsfw->ucode_size; in ga102_acr_wpr_build_lsb()
H A Dgm200.c98 hdr->ucode_size = lsfw->ucode_size; in gm200_acr_wpr_build_lsb_tail()
/linux/drivers/gpu/drm/xe/
H A Dxe_uc_fw.h25 return sizeof(struct uc_css_header) + uc_fw->ucode_size + uc_fw->css_offset; in xe_uc_fw_rsa_offset()
172 return sizeof(struct uc_css_header) + uc_fw->ucode_size; in __xe_uc_fw_get_upload_size()
/linux/drivers/gpu/drm/i915/gt/uc/
H A Dintel_uc_fw.h119 u32 ucode_size; member
279 return sizeof(struct uc_css_header) + uc_fw->ucode_size; in __intel_uc_fw_get_upload_size()
/linux/drivers/gpu/drm/nouveau/include/nvfw/
H A Dacr.h82 u32 ucode_size; member
138 u32 ucode_size; member
/linux/drivers/gpu/drm/nouveau/nvkm/nvfw/
H A Dacr.c70 nvkm_debug(subdev, "\tucodeSize : 0x%x\n", hdr->ucode_size); in lsb_header_v2_dump()
94 nvkm_debug(subdev, "\tucodeSize : 0x%x\n", hdr->ucode_size); in lsb_header_tail_dump()
/linux/drivers/gpu/drm/nouveau/include/nvkm/subdev/
H A Dacr.h97 u32 ucode_size; member
/linux/drivers/crypto/marvell/octeontx2/
H A Dotx2_cptpf_ucode.c372 int ucode_type, ucode_size; in load_fw() local
388 ucode_size = ntohl(ucode_hdr->code_length) * 2; in load_fw()
389 if (!ucode_size) { in load_fw()
401 uc_info->ucode.size = ucode_size; in load_fw()