/drivers/gpu/drm/radeon/ |
D | rv770_smc.c | 489 u16 ucode_size; in rv770_load_smc_ucode() local 499 ucode_size = RV770_SMC_UCODE_SIZE; in rv770_load_smc_ucode() 506 ucode_size = RV730_SMC_UCODE_SIZE; in rv770_load_smc_ucode() 513 ucode_size = RV710_SMC_UCODE_SIZE; in rv770_load_smc_ucode() 520 ucode_size = RV740_SMC_UCODE_SIZE; in rv770_load_smc_ucode() 527 ucode_size = CEDAR_SMC_UCODE_SIZE; in rv770_load_smc_ucode() 534 ucode_size = REDWOOD_SMC_UCODE_SIZE; in rv770_load_smc_ucode() 541 ucode_size = JUNIPER_SMC_UCODE_SIZE; in rv770_load_smc_ucode() 549 ucode_size = CYPRESS_SMC_UCODE_SIZE; in rv770_load_smc_ucode() 556 ucode_size = BARTS_SMC_UCODE_SIZE; in rv770_load_smc_ucode() [all …]
|
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()
|
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()
|
D | ni.c | 642 int i, ucode_size, regs_size; in ni_mc_load_microcode() local 650 ucode_size = BTC_MC_UCODE_SIZE; in ni_mc_load_microcode() 655 ucode_size = BTC_MC_UCODE_SIZE; in ni_mc_load_microcode() 661 ucode_size = BTC_MC_UCODE_SIZE; in ni_mc_load_microcode() 666 ucode_size = CAYMAN_MC_UCODE_SIZE; in ni_mc_load_microcode() 691 for (i = 0; i < ucode_size; i++) in ni_mc_load_microcode()
|
D | si.c | 1583 int i, regs_size, ucode_size; in si_mc_load_microcode() local 1596 ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4; in si_mc_load_microcode() 1600 ucode_size = rdev->mc_fw->size / 4; in si_mc_load_microcode() 1646 for (i = 0; i < ucode_size; i++) { in si_mc_load_microcode()
|
/drivers/crypto/cavium/nitrox/ |
D | nitrox_main.c | 80 static void write_to_ucd_unit(struct nitrox_device *ndev, u32 ucode_size, in write_to_ucd_unit() argument 106 code_size = roundup(ucode_size, 16); in write_to_ucd_unit() 129 u32 ucode_size; in nitrox_load_fw() local 143 ucode_size = be32_to_cpu(ucode->code_size) * 2; in nitrox_load_fw() 144 if (!ucode_size || ucode_size > CNN55XX_MAX_UCODE_SIZE) { in nitrox_load_fw() 146 ucode_size, fw_name); in nitrox_load_fw() 157 write_to_ucd_unit(ndev, ucode_size, ucode_data, 0); in nitrox_load_fw() 172 if (ucode_size <= CNN55XX_UCD_BLOCK_SIZE) in nitrox_load_fw() 194 ucode_size = be32_to_cpu(ucode->code_size) * 2; in nitrox_load_fw() 195 if (!ucode_size || ucode_size > CNN55XX_MAX_UCODE_SIZE) { in nitrox_load_fw() [all …]
|
/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_ucode.c | 475 ucode->ucode_size = le32_to_cpu(header->ucode_size_bytes); in amdgpu_ucode_init_single_fw() 479 ucode->ucode_size); in amdgpu_ucode_init_single_fw() 482 ucode->ucode_size = le32_to_cpu(header->ucode_size_bytes) - in amdgpu_ucode_init_single_fw() 487 ucode->ucode_size); in amdgpu_ucode_init_single_fw() 490 ucode->ucode_size = le32_to_cpu(cp_hdr->jt_size) * 4; in amdgpu_ucode_init_single_fw() 495 ucode->ucode_size); in amdgpu_ucode_init_single_fw() 497 ucode->ucode_size = le32_to_cpu(header->ucode_size_bytes) - in amdgpu_ucode_init_single_fw() 502 ucode->ucode_size); in amdgpu_ucode_init_single_fw() 504 ucode->ucode_size = le32_to_cpu(dmcu_hdr->intv_size_bytes); in amdgpu_ucode_init_single_fw() 509 ucode->ucode_size); in amdgpu_ucode_init_single_fw() [all …]
|
D | si_smc.c | 208 u32 ucode_size; in amdgpu_si_load_smc_ucode() local 221 ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes); in amdgpu_si_load_smc_ucode() 224 if (ucode_size & 3) in amdgpu_si_load_smc_ucode() 230 while (ucode_size >= 4) { in amdgpu_si_load_smc_ucode() 237 ucode_size -= 4; in amdgpu_si_load_smc_ucode()
|
D | psp_v10_0.c | 334 unsigned int ucode_size; in psp_v10_0_compare_sram_data() local 345 ucode_size = ucode->ucode_size; in psp_v10_0_compare_sram_data() 347 while (!ucode_size) { in psp_v10_0_compare_sram_data() 355 ucode_size -= 4; in psp_v10_0_compare_sram_data()
|
D | psp_v12_0.c | 488 unsigned int ucode_size; in psp_v12_0_compare_sram_data() local 499 ucode_size = ucode->ucode_size; in psp_v12_0_compare_sram_data() 501 while (ucode_size) { in psp_v12_0_compare_sram_data() 509 ucode_size -= 4; in psp_v12_0_compare_sram_data()
|
D | psp_v3_1.c | 566 unsigned int ucode_size; in psp_v3_1_compare_sram_data() local 577 ucode_size = ucode->ucode_size; in psp_v3_1_compare_sram_data() 579 while (ucode_size) { in psp_v3_1_compare_sram_data() 587 ucode_size -= 4; in psp_v3_1_compare_sram_data()
|
D | psp_v11_0.c | 668 unsigned int ucode_size; in psp_v11_0_compare_sram_data() local 679 ucode_size = ucode->ucode_size; in psp_v11_0_compare_sram_data() 681 while (ucode_size) { in psp_v11_0_compare_sram_data() 689 ucode_size -= 4; in psp_v11_0_compare_sram_data()
|
D | amdgpu_cgs.c | 243 uint32_t ucode_size; in amdgpu_cgs_get_firmware_info() local 465 ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes); in amdgpu_cgs_get_firmware_info() 471 info->image_size = ucode_size; in amdgpu_cgs_get_firmware_info()
|
D | gmc_v8_0.c | 304 int i, ucode_size, regs_size; in gmc_v8_0_tonga_mc_load_microcode() local 324 ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4; in gmc_v8_0_tonga_mc_load_microcode() 341 for (i = 0; i < ucode_size; i++) in gmc_v8_0_tonga_mc_load_microcode() 373 int i, ucode_size, regs_size; in gmc_v8_0_polaris_mc_load_microcode() local 393 ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4; in gmc_v8_0_polaris_mc_load_microcode() 411 for (i = 0; i < ucode_size; i++) in gmc_v8_0_polaris_mc_load_microcode()
|
D | gmc_v6_0.c | 167 int i, regs_size, ucode_size; in gmc_v6_0_mc_load_microcode() local 181 ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4; in gmc_v6_0_mc_load_microcode() 199 for (i = 0; i < ucode_size; i++) { in gmc_v6_0_mc_load_microcode()
|
D | amdgpu_ucode.h | 342 uint32_t ucode_size; member
|
D | gmc_v7_0.c | 187 int i, ucode_size, regs_size; in gmc_v7_0_mc_load_microcode() local 199 ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4; in gmc_v7_0_mc_load_microcode() 216 for (i = 0; i < ucode_size; i++) in gmc_v7_0_mc_load_microcode()
|
D | amdgpu_psp.c | 1008 cmd->cmd.cmd_load_ip_fw.fw_size = ucode->ucode_size; in psp_prep_load_ip_fw_cmd_buf() 1337 ucode.ucode_size = cmd_size; in psp_update_vcn_sram() 1351 if (!ucode->fw || !ucode->ucode_size) in psp_check_fw_loading_status()
|
/drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ |
D | acr_r367.c | 63 u32 ucode_size; member 190 offset += _img->ucode_size; in acr_r367_ls_img_fill_headers() 202 lhdr->ucode_size = ALIGN(desc->app_resident_data_offset, in acr_r367_ls_img_fill_headers() 205 lhdr->bl_code_size - lhdr->ucode_size; in acr_r367_ls_img_fill_headers() 308 _img->ucode_data, _img->ucode_size); in acr_r367_ls_write_wpr()
|
D | acr_r352.c | 186 u32 ucode_size; member 331 offset += _img->ucode_size; in acr_r352_ls_img_fill_headers() 343 lhdr->ucode_size = ALIGN(desc->app_resident_data_offset, in acr_r352_ls_img_fill_headers() 346 lhdr->bl_code_size - lhdr->ucode_size; in acr_r352_ls_img_fill_headers() 456 _img->ucode_data, _img->ucode_size); in acr_r352_ls_write_wpr()
|
D | ls_ucode.h | 101 u32 ucode_size; member
|
D | ls_ucode_msgqueue.c | 62 img->ucode_size = ALIGN(img->ucode_desc.app_start_offset + img->ucode_desc.app_size, 256); in acr_ls_ucode_load_msgqueue()
|
D | ls_ucode_gr.c | 134 img->ucode_size = img->ucode_desc.image_size; in ls_ucode_img_load_gr()
|
/drivers/gpu/drm/i915/gt/uc/ |
D | intel_uc_fw.h | 86 u32 ucode_size; member 210 return sizeof(struct uc_css_header) + uc_fw->ucode_size; in __intel_uc_fw_get_upload_size()
|
D | intel_uc_fw.c | 307 uc_fw->ucode_size = (css->size_dw - css->header_size_dw) * sizeof(u32); in intel_uc_fw_fetch() 320 size = sizeof(struct uc_css_header) + uc_fw->ucode_size + uc_fw->rsa_size; in intel_uc_fw_fetch() 469 sizeof(struct uc_css_header) + uc_fw->ucode_size); in uc_fw_xfer() 591 u32 offset = sizeof(struct uc_css_header) + uc_fw->ucode_size; in intel_uc_fw_copy_rsa() 614 drm_printf(p, "\tuCode: %u bytes\n", uc_fw->ucode_size); in intel_uc_fw_dump()
|