| /drivers/gpu/drm/amd/amdgpu/ |
| A D | amdgpu_ucode.c | 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() 915 ucode->ucode_size = adev->gfx.rlc.rlcp_ucode_size_bytes; in amdgpu_ucode_init_single_fw() 919 ucode->ucode_size = adev->gfx.rlc.rlcv_ucode_size_bytes; in amdgpu_ucode_init_single_fw() 963 ucode->ucode_size = le32_to_cpu(header->ucode_size_bytes) - in amdgpu_ucode_init_single_fw() 980 ucode->ucode_size = ucode->fw->size; in amdgpu_ucode_init_single_fw() 984 ucode->ucode_size = ucode->fw->size; in amdgpu_ucode_init_single_fw() 1074 ucode->ucode_size = le32_to_cpu(header->ucode_size_bytes); in amdgpu_ucode_init_single_fw() 1080 ucode->ucode_size = le32_to_cpu(header->ucode_size_bytes); in amdgpu_ucode_init_single_fw() 1085 memcpy(ucode->kaddr, ucode_addr, ucode->ucode_size); in amdgpu_ucode_init_single_fw() [all …]
|
| A D | vpe_v6_1.c | 128 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()
|
| A D | amdgpu_cgs.c | 246 uint32_t ucode_size; in amdgpu_cgs_get_firmware_info() local 378 ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes); in amdgpu_cgs_get_firmware_info() 384 info->image_size = ucode_size; in amdgpu_cgs_get_firmware_info()
|
| A D | gmc_v8_0.c | 285 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()
|
| A D | amdgpu_umsch_mm.c | 145 adev->umsch_mm.ucode_size = le32_to_cpu(umsch_mm_hdr->umsch_mm_ucode_size_bytes); in amdgpu_umsch_mm_init_microcode() 247 .ucode_size = ((uintptr_t)adev->umsch_mm.cmd_buf_curr_ptr - in amdgpu_umsch_mm_psp_execute_cmd_buf()
|
| A D | gmc_v6_0.c | 150 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()
|
| A D | amdgpu_umsch_mm.h | 150 uint32_t ucode_size; member
|
| /drivers/gpu/drm/radeon/ |
| A D | rv770_smc.c | 477 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() 544 ucode_size = BARTS_SMC_UCODE_SIZE; in rv770_load_smc_ucode() 551 ucode_size = TURKS_SMC_UCODE_SIZE; in rv770_load_smc_ucode() 558 ucode_size = CAICOS_SMC_UCODE_SIZE; in rv770_load_smc_ucode() [all …]
|
| A D | si_smc.c | 215 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()
|
| A D | ci_smc.c | 190 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()
|
| A D | ni.c | 623 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()
|
| /drivers/crypto/cavium/nitrox/ |
| A D | nitrox_main.c | 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() 187 ucode_size, fw_name); in nitrox_load_fw() [all …]
|
| /drivers/gpu/drm/amd/pm/legacy-dpm/ |
| A D | si_smc.c | 214 u32 ucode_size; in amdgpu_si_load_smc_ucode() local 227 ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes); in amdgpu_si_load_smc_ucode() 230 if (ucode_size & 3) in amdgpu_si_load_smc_ucode() 236 while (ucode_size >= 4) { in amdgpu_si_load_smc_ucode() 243 ucode_size -= 4; in amdgpu_si_load_smc_ucode()
|
| /drivers/gpu/drm/nouveau/nvkm/subdev/acr/ |
| A D | lsfw.c | 134 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()
|
| A D | ga102.c | 80 hdr->ucode_size = lsfw->ucode_size; in ga102_acr_wpr_build_lsb()
|
| A D | gm200.c | 98 hdr->ucode_size = lsfw->ucode_size; in gm200_acr_wpr_build_lsb_tail()
|
| /drivers/gpu/drm/xe/ |
| A D | xe_uc_fw.h | 25 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()
|
| A D | xe_uc_fw_types.h | 144 u32 ucode_size; member
|
| A D | xe_uc_fw.c | 430 uc_fw->ucode_size = (css->size_dw - css->header_size_dw) * sizeof(u32); in parse_css_header() 436 size = sizeof(struct uc_css_header) + uc_fw->ucode_size + in parse_css_header() 873 sizeof(struct uc_css_header) + uc_fw->ucode_size); in uc_fw_xfer() 951 if (uc_fw->ucode_size) in xe_uc_fw_print() 952 drm_printf(p, "\tuCode: %u bytes\n", uc_fw->ucode_size); in xe_uc_fw_print()
|
| /drivers/gpu/drm/i915/gt/uc/ |
| A D | intel_uc_fw.h | 119 u32 ucode_size; member 279 return sizeof(struct uc_css_header) + uc_fw->ucode_size; in __intel_uc_fw_get_upload_size()
|
| A D | intel_uc_fw.c | 666 uc_fw->ucode_size = (css->size_dw - css->header_size_dw) * sizeof(u32); in __check_ccs_header() 672 size = sizeof(struct uc_css_header) + uc_fw->ucode_size + uc_fw->rsa_size; in __check_ccs_header() 1112 sizeof(struct uc_css_header) + uc_fw->ucode_size); in uc_fw_xfer() 1337 u32 offset = uc_fw->dma_start_offset + sizeof(struct uc_css_header) + uc_fw->ucode_size; in intel_uc_fw_copy_rsa() 1440 drm_printf(p, "\tuCode: %u bytes\n", uc_fw->ucode_size); in intel_uc_fw_dump()
|
| /drivers/gpu/drm/nouveau/include/nvfw/ |
| A D | acr.h | 82 u32 ucode_size; member 138 u32 ucode_size; member
|
| /drivers/gpu/drm/nouveau/nvkm/nvfw/ |
| A D | acr.c | 70 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()
|
| /drivers/gpu/drm/nouveau/include/nvkm/subdev/ |
| A D | acr.h | 97 u32 ucode_size; member
|
| /drivers/crypto/marvell/octeontx/ |
| A D | otx_cptpf_ucode.c | 289 int ucode_type, ucode_size; in process_tar_file() local 314 ucode_size = code_length * 2; in process_tar_file() 315 if (!ucode_size || (size < round_up(ucode_size, 16) + in process_tar_file() 331 tar_info->ucode.size = ucode_size; in process_tar_file()
|