Home
last modified time | relevance | path

Searched refs:fw_size (Results 1 – 25 of 86) sorted by relevance

1234

/linux-6.1.9/drivers/media/platform/qcom/venus/
Dfirmware.c29 u32 fw_size = core->fw.mapped_mem_size; in venus_reset_cpu() local
38 writel(fw_size, wrapper_base + WRAPPER_FW_END_ADDR); in venus_reset_cpu()
40 writel(fw_size, wrapper_base + WRAPPER_CPA_END_ADDR); in venus_reset_cpu()
41 writel(fw_size, wrapper_base + WRAPPER_NONPIX_START_ADDR); in venus_reset_cpu()
42 writel(fw_size, wrapper_base + WRAPPER_NONPIX_END_ADDR); in venus_reset_cpu()
86 ssize_t fw_size; in venus_load_fw() local
108 fw_size = qcom_mdt_get_size(mdt); in venus_load_fw()
109 if (fw_size < 0) { in venus_load_fw()
110 ret = fw_size; in venus_load_fw()
117 if (*mem_size < fw_size || fw_size > VENUS_FW_MEM_SIZE) { in venus_load_fw()
/linux-6.1.9/drivers/bluetooth/
Dbtmtk.c178 size_t fw_size; in btmtk_setup_firmware() local
203 fw_size = fw->size; in btmtk_setup_firmware()
206 if (fw_size < 30) { in btmtk_setup_firmware()
211 fw_size -= 30; in btmtk_setup_firmware()
218 while (fw_size > 0) { in btmtk_setup_firmware()
219 dlen = min_t(int, 250, fw_size); in btmtk_setup_firmware()
222 if (fw_size - dlen <= 0) in btmtk_setup_firmware()
224 else if (fw_size < fw->size - 30) in btmtk_setup_firmware()
238 fw_size -= dlen; in btmtk_setup_firmware()
Dbcm203x.c59 unsigned int fw_size; member
110 if (data->fw_sent == data->fw_size) { in bcm203x_complete()
116 len = min_t(uint, data->fw_size - data->fw_sent, 4096); in bcm203x_complete()
218 data->fw_size = firmware->size; in bcm203x_probe()
Dbtbcm.c168 size_t fw_size; in btbcm_patchram() local
187 fw_size = fw->size; in btbcm_patchram()
189 while (fw_size >= sizeof(*cmd)) { in btbcm_patchram()
194 fw_size -= sizeof(*cmd); in btbcm_patchram()
196 if (fw_size < cmd->plen) { in btbcm_patchram()
204 fw_size -= cmd->plen; in btbcm_patchram()
Dhci_nokia.c331 size_t fw_size; in nokia_setup_fw() local
353 fw_size = fw->size; in nokia_setup_fw()
355 while (fw_size >= 4) { in nokia_setup_fw()
385 fw_size -= pkt_size + 2; in nokia_setup_fw()
/linux-6.1.9/drivers/crypto/qat/qat_common/
Dadf_accel_engine.c11 u32 fw_size) in adf_ae_fw_load_images() argument
37 if (qat_uclo_map_obj(loader, fw_addr, fw_size, obj_name)) { in adf_ae_fw_load_images()
62 u32 fw_size, mmp_size; in adf_ae_fw_load() local
80 fw_size = loader_data->uof_fw->size; in adf_ae_fw_load()
91 return adf_ae_fw_load_images(accel_dev, fw_addr, fw_size); in adf_ae_fw_load()
93 if (qat_uclo_map_obj(loader_data->fw_loader, fw_addr, fw_size, NULL)) { in adf_ae_fw_load()
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/
Damdgpu_rlc.c332 adev->firmware.fw_size += in amdgpu_gfx_rlc_init_microcode_v2_0()
366 adev->firmware.fw_size += in amdgpu_gfx_rlc_init_microcode_v2_1()
374 adev->firmware.fw_size += in amdgpu_gfx_rlc_init_microcode_v2_1()
382 adev->firmware.fw_size += in amdgpu_gfx_rlc_init_microcode_v2_1()
404 adev->firmware.fw_size += in amdgpu_gfx_rlc_init_microcode_v2_2()
412 adev->firmware.fw_size += in amdgpu_gfx_rlc_init_microcode_v2_2()
439 adev->firmware.fw_size += in amdgpu_gfx_rlc_init_microcode_v2_3()
447 adev->firmware.fw_size += in amdgpu_gfx_rlc_init_microcode_v2_3()
475 adev->firmware.fw_size += in amdgpu_gfx_rlc_init_microcode_v2_4()
483 adev->firmware.fw_size += in amdgpu_gfx_rlc_init_microcode_v2_4()
[all …]
Damdgpu_gfx.c884 unsigned int fw_size; in amdgpu_gfx_cp_init_microcode() local
895 fw_size = le32_to_cpu(cp_hdr->header.ucode_size_bytes); in amdgpu_gfx_cp_init_microcode()
905 fw_size = le32_to_cpu(cp_hdr_v2_0->ucode_size_bytes); in amdgpu_gfx_cp_init_microcode()
912 fw_size = le32_to_cpu(cp_hdr_v2_0->data_size_bytes); in amdgpu_gfx_cp_init_microcode()
922 fw_size = le32_to_cpu(cp_hdr->header.ucode_size_bytes); in amdgpu_gfx_cp_init_microcode()
932 fw_size = le32_to_cpu(cp_hdr_v2_0->ucode_size_bytes); in amdgpu_gfx_cp_init_microcode()
939 fw_size = le32_to_cpu(cp_hdr_v2_0->data_size_bytes); in amdgpu_gfx_cp_init_microcode()
949 fw_size = le32_to_cpu(cp_hdr->header.ucode_size_bytes); in amdgpu_gfx_cp_init_microcode()
959 fw_size = le32_to_cpu(cp_hdr->header.ucode_size_bytes) - in amdgpu_gfx_cp_init_microcode()
966 fw_size = le32_to_cpu(cp_hdr->jt_size) * 4; in amdgpu_gfx_cp_init_microcode()
[all …]
Dimu_v11_0.c66 adev->firmware.fw_size += in imu_v11_0_init_microcode()
71 adev->firmware.fw_size += in imu_v11_0_init_microcode()
90 unsigned i, fw_size; in imu_v11_0_load_microcode() local
100 fw_size = le32_to_cpu(hdr->imu_iram_ucode_size_bytes) / 4; in imu_v11_0_load_microcode()
104 for (i = 0; i < fw_size; i++) in imu_v11_0_load_microcode()
112 fw_size = le32_to_cpu(hdr->imu_dram_ucode_size_bytes) / 4; in imu_v11_0_load_microcode()
116 for (i = 0; i < fw_size; i++) in imu_v11_0_load_microcode()
Dgfx_v11_0.c1007 uint32_t fw_size, in gfx_v11_0_rlc_backdoor_autoload_copy_ucode() argument
1020 if (fw_size == 0) in gfx_v11_0_rlc_backdoor_autoload_copy_ucode()
1021 fw_size = toc_fw_size; in gfx_v11_0_rlc_backdoor_autoload_copy_ucode()
1023 if (fw_size > toc_fw_size) in gfx_v11_0_rlc_backdoor_autoload_copy_ucode()
1024 fw_size = toc_fw_size; in gfx_v11_0_rlc_backdoor_autoload_copy_ucode()
1026 memcpy(ptr + toc_offset, fw_data, fw_size); in gfx_v11_0_rlc_backdoor_autoload_copy_ucode()
1028 if (fw_size < toc_fw_size) in gfx_v11_0_rlc_backdoor_autoload_copy_ucode()
1029 memset(ptr + toc_offset + fw_size, 0, toc_fw_size - fw_size); in gfx_v11_0_rlc_backdoor_autoload_copy_ucode()
1060 uint32_t fw_size; in gfx_v11_0_rlc_backdoor_autoload_copy_gfx_ucode() local
1074 fw_size = le32_to_cpu(cpv2_hdr->ucode_size_bytes); in gfx_v11_0_rlc_backdoor_autoload_copy_gfx_ucode()
[all …]
Dmes_v10_1.c443 adev->firmware.fw_size += in mes_v10_1_init_microcode()
450 adev->firmware.fw_size += in mes_v10_1_init_microcode()
471 unsigned fw_size; in mes_v10_1_allocate_ucode_buffer() local
478 fw_size = le32_to_cpu(mes_hdr->mes_ucode_size_bytes); in mes_v10_1_allocate_ucode_buffer()
480 r = amdgpu_bo_create_reserved(adev, fw_size, in mes_v10_1_allocate_ucode_buffer()
490 memcpy(adev->mes.ucode_fw_ptr[pipe], fw_data, fw_size); in mes_v10_1_allocate_ucode_buffer()
504 unsigned fw_size; in mes_v10_1_allocate_ucode_data_buffer() local
511 fw_size = le32_to_cpu(mes_hdr->mes_ucode_data_size_bytes); in mes_v10_1_allocate_ucode_data_buffer()
513 r = amdgpu_bo_create_reserved(adev, fw_size, in mes_v10_1_allocate_ucode_data_buffer()
523 memcpy(adev->mes.data_fw_ptr[pipe], fw_data, fw_size); in mes_v10_1_allocate_ucode_data_buffer()
Damdgpu_sdma.c257 adev->firmware.fw_size += in amdgpu_sdma_init_microcode()
268 adev->firmware.fw_size += in amdgpu_sdma_init_microcode()
273 adev->firmware.fw_size += in amdgpu_sdma_init_microcode()
Dmes_v11_0.c512 adev->firmware.fw_size += in mes_v11_0_init_microcode()
519 adev->firmware.fw_size += in mes_v11_0_init_microcode()
540 unsigned fw_size; in mes_v11_0_allocate_ucode_buffer() local
547 fw_size = le32_to_cpu(mes_hdr->mes_ucode_size_bytes); in mes_v11_0_allocate_ucode_buffer()
549 r = amdgpu_bo_create_reserved(adev, fw_size, in mes_v11_0_allocate_ucode_buffer()
559 memcpy(adev->mes.ucode_fw_ptr[pipe], fw_data, fw_size); in mes_v11_0_allocate_ucode_buffer()
573 unsigned fw_size; in mes_v11_0_allocate_ucode_data_buffer() local
580 fw_size = le32_to_cpu(mes_hdr->mes_ucode_data_size_bytes); in mes_v11_0_allocate_ucode_data_buffer()
582 r = amdgpu_bo_create_reserved(adev, fw_size, in mes_v11_0_allocate_ucode_data_buffer()
592 memcpy(adev->mes.data_fw_ptr[pipe], fw_data, fw_size); in mes_v11_0_allocate_ucode_data_buffer()
Dsdma_v6_0.c645 u32 fw_size; in sdma_v6_0_load_microcode() local
663 fw_size = le32_to_cpu(hdr->ctx_jt_offset + hdr->ctx_jt_size) / 4; in sdma_v6_0_load_microcode()
671 for (j = 0; j < fw_size; j++) { in sdma_v6_0_load_microcode()
678 fw_size = le32_to_cpu(hdr->ctl_jt_offset + hdr->ctl_jt_size) / 4; in sdma_v6_0_load_microcode()
686 for (j = 0; j < fw_size; j++) { in sdma_v6_0_load_microcode()
697 fw_size = le32_to_cpu(hdr->ctx_jt_offset + hdr->ctx_jt_size) / 4; in sdma_v6_0_load_microcode()
705 for (j = 0; j < fw_size; j++) { in sdma_v6_0_load_microcode()
714 fw_size = le32_to_cpu(hdr->ctl_jt_offset + hdr->ctl_jt_size) / 4; in sdma_v6_0_load_microcode()
722 for (j = 0; j < fw_size; j++) { in sdma_v6_0_load_microcode()
/linux-6.1.9/drivers/staging/r8188eu/core/
Drtw_fw.c275 u32 fw_size; in rtl8188e_firmware_download() local
284 fw_size = dvobj->firmware.size; in rtl8188e_firmware_download()
294 fw_size = fw_size - sizeof(struct rt_firmware_hdr); in rtl8188e_firmware_download()
322 ret = write_fw(padapter, fw_data, fw_size); in rtl8188e_firmware_download()
/linux-6.1.9/sound/pci/hda/
Dhda_sysfs.c678 size_t fw_size = *fw_size_p; in get_line_from_fw() local
681 while (isspace(*p) && fw_size) { in get_line_from_fw()
683 fw_size--; in get_line_from_fw()
685 if (!fw_size) in get_line_from_fw()
688 for (len = 0; len < fw_size; len++) { in get_line_from_fw()
700 *fw_size_p = fw_size - len; in get_line_from_fw()
712 int snd_hda_load_patch(struct hda_bus *bus, size_t fw_size, const void *fw_buf) in snd_hda_load_patch() argument
720 while (get_line_from_fw(buf, sizeof(buf) - 1, &fw_size, &fw_buf)) { in snd_hda_load_patch()
/linux-6.1.9/drivers/input/touchscreen/
Dmelfas_mip4.c1080 const u8 *fw_data, u32 fw_size, u32 fw_offset) in mip4_flash_fw() argument
1109 offset < fw_offset + fw_size; in mip4_flash_fw()
1156 u32 *fw_offset_start, u32 *fw_size, in mip4_parse_firmware() argument
1196 *fw_size = get_unaligned_le32(&fw_info->bin_length); in mip4_parse_firmware()
1200 *fw_offset_start, *fw_size); in mip4_parse_firmware()
1202 if (*fw_size % MIP4_BL_PAGE_SIZE) { in mip4_parse_firmware()
1205 *fw_size, MIP4_BL_PAGE_SIZE); in mip4_parse_firmware()
1209 if (fw->size != *fw_offset_start + *fw_size) { in mip4_parse_firmware()
1212 *fw_offset_start + *fw_size, fw->size); in mip4_parse_firmware()
1250 u32 fw_size; in mip4_execute_fw_update() local
[all …]
/linux-6.1.9/drivers/staging/media/atomisp/pci/
Dsh_css_firmware.c225 unsigned int fw_size) in sh_css_load_firmware() argument
247 if (!fw_data || fw_size < sizeof(struct sh_css_fw_bi_file_h)) in sh_css_load_firmware()
285 if (bi->blob.offset + bi->blob.size > fw_size) in sh_css_load_firmware()
Dsh_css_firmware.h44 unsigned int fw_size);
/linux-6.1.9/sound/soc/sof/
Dipc3-loader.c380 size_t fw_size = fw->size - plat_data->fw_offset; in sof_ipc3_validate_firmware() local
398 if (fw_size != header->file_size + sizeof(*header)) { in sof_ipc3_validate_firmware()
401 fw_size, header->file_size + sizeof(*header)); in sof_ipc3_validate_firmware()
/linux-6.1.9/drivers/nfc/pn544/
Di2c.c168 size_t fw_size; member
768 phy->fw_size = phy->fw->size; in pn544_hci_i2c_fw_work()
839 phy->fw_size -= phy->fw_blob_size + in pn544_hci_i2c_fw_work()
841 if (phy->fw_size >= PN544_FW_SECURE_BLOB_HEADER_LEN in pn544_hci_i2c_fw_work()
851 if (r < 0 || phy->fw_size == 0) in pn544_hci_i2c_fw_work()
/linux-6.1.9/drivers/gpu/drm/radeon/
Dcik_sdma.c475 u32 fw_size; in cik_sdma_load_microcode() local
482 fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4; in cik_sdma_load_microcode()
484 for (i = 0; i < fw_size; i++) in cik_sdma_load_microcode()
491 fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4; in cik_sdma_load_microcode()
493 for (i = 0; i < fw_size; i++) in cik_sdma_load_microcode()
/linux-6.1.9/drivers/net/ethernet/marvell/prestera/
Dprestera_pci.c600 const char *img, u32 fw_size) in prestera_ldr_fw_send() argument
614 for (pos = 0; pos < fw_size; pos += PRESTERA_FW_BLK_SZ) { in prestera_ldr_fw_send()
615 if (pos + PRESTERA_FW_BLK_SZ > fw_size) in prestera_ldr_fw_send()
623 if (pos < fw_size) { in prestera_ldr_fw_send()
624 err = prestera_ldr_send(fw, img + pos, fw_size - pos); in prestera_ldr_fw_send()
/linux-6.1.9/drivers/net/wireless/ath/ath9k/
Dhif_usb.h120 size_t fw_size; member
/linux-6.1.9/drivers/remoteproc/
Dremoteproc_elf_loader.c256 size_t fw_size = fw->size; local
281 if (offset + size > fw_size || offset + size < size) {

1234