Home
last modified time | relevance | path

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

1234

/drivers/media/platform/qcom/venus/
Dfirmware.c30 u32 fw_size = core->fw.mapped_mem_size; in venus_reset_cpu() local
39 writel(fw_size, wrapper_base + WRAPPER_FW_END_ADDR); in venus_reset_cpu()
41 writel(fw_size, wrapper_base + WRAPPER_CPA_END_ADDR); in venus_reset_cpu()
42 writel(fw_size, wrapper_base + WRAPPER_NONPIX_START_ADDR); in venus_reset_cpu()
43 writel(fw_size, wrapper_base + WRAPPER_NONPIX_END_ADDR); in venus_reset_cpu()
89 ssize_t fw_size; in venus_load_fw() local
114 fw_size = qcom_mdt_get_size(mdt); in venus_load_fw()
115 if (fw_size < 0) { in venus_load_fw()
116 ret = fw_size; in venus_load_fw()
123 if (*mem_size < fw_size || fw_size > VENUS_FW_MEM_SIZE) { in venus_load_fw()
/drivers/bluetooth/
Dbtmtk.c233 size_t fw_size; in btmtk_setup_firmware() local
258 fw_size = fw->size; in btmtk_setup_firmware()
261 if (fw_size < 30) { in btmtk_setup_firmware()
266 fw_size -= 30; in btmtk_setup_firmware()
273 while (fw_size > 0) { in btmtk_setup_firmware()
274 dlen = min_t(int, 250, fw_size); in btmtk_setup_firmware()
277 if (fw_size - dlen <= 0) in btmtk_setup_firmware()
279 else if (fw_size < fw->size - 30) in btmtk_setup_firmware()
293 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.c214 size_t fw_size; in btbcm_patchram() local
233 fw_size = fw->size; in btbcm_patchram()
235 while (fw_size >= sizeof(*cmd)) { in btbcm_patchram()
240 fw_size -= sizeof(*cmd); in btbcm_patchram()
242 if (fw_size < cmd->plen) { in btbcm_patchram()
250 fw_size -= cmd->plen; in btbcm_patchram()
Dbtqca.c294 u8 *fw_data, size_t fw_size, in qca_tlv_check_data() argument
312 if (fw_size < 7) in qca_tlv_check_data()
323 if (fw_size < sizeof(struct tlv_type_hdr) + sizeof(struct tlv_type_patch)) in qca_tlv_check_data()
365 if (fw_size < sizeof(struct tlv_type_hdr)) in qca_tlv_check_data()
379 if (fw_size < 2 * sizeof(struct tlv_type_hdr)) in qca_tlv_check_data()
395 if (fw_size < length + (tlv->data - fw_data)) in qca_tlv_check_data()
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()
/drivers/crypto/intel/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()
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_rlc.c337 adev->firmware.fw_size += in amdgpu_gfx_rlc_init_microcode_v2_0()
371 adev->firmware.fw_size += in amdgpu_gfx_rlc_init_microcode_v2_1()
379 adev->firmware.fw_size += in amdgpu_gfx_rlc_init_microcode_v2_1()
387 adev->firmware.fw_size += in amdgpu_gfx_rlc_init_microcode_v2_1()
409 adev->firmware.fw_size += in amdgpu_gfx_rlc_init_microcode_v2_2()
417 adev->firmware.fw_size += in amdgpu_gfx_rlc_init_microcode_v2_2()
444 adev->firmware.fw_size += in amdgpu_gfx_rlc_init_microcode_v2_3()
452 adev->firmware.fw_size += in amdgpu_gfx_rlc_init_microcode_v2_3()
480 adev->firmware.fw_size += in amdgpu_gfx_rlc_init_microcode_v2_4()
488 adev->firmware.fw_size += in amdgpu_gfx_rlc_init_microcode_v2_4()
[all …]
Dimu_v11_0.c64 adev->firmware.fw_size += in imu_v11_0_init_microcode()
69 adev->firmware.fw_size += in imu_v11_0_init_microcode()
88 unsigned i, fw_size; in imu_v11_0_load_microcode() local
98 fw_size = le32_to_cpu(hdr->imu_iram_ucode_size_bytes) / 4; in imu_v11_0_load_microcode()
102 for (i = 0; i < fw_size; i++) in imu_v11_0_load_microcode()
110 fw_size = le32_to_cpu(hdr->imu_dram_ucode_size_bytes) / 4; in imu_v11_0_load_microcode()
114 for (i = 0; i < fw_size; i++) in imu_v11_0_load_microcode()
Dgfx_v11_0.c1032 uint32_t fw_size, in gfx_v11_0_rlc_backdoor_autoload_copy_ucode() argument
1045 if (fw_size == 0) in gfx_v11_0_rlc_backdoor_autoload_copy_ucode()
1046 fw_size = toc_fw_size; in gfx_v11_0_rlc_backdoor_autoload_copy_ucode()
1048 if (fw_size > toc_fw_size) in gfx_v11_0_rlc_backdoor_autoload_copy_ucode()
1049 fw_size = toc_fw_size; in gfx_v11_0_rlc_backdoor_autoload_copy_ucode()
1051 memcpy(ptr + toc_offset, fw_data, fw_size); in gfx_v11_0_rlc_backdoor_autoload_copy_ucode()
1053 if (fw_size < toc_fw_size) in gfx_v11_0_rlc_backdoor_autoload_copy_ucode()
1054 memset(ptr + toc_offset + fw_size, 0, toc_fw_size - fw_size); in gfx_v11_0_rlc_backdoor_autoload_copy_ucode()
1085 uint32_t fw_size; in gfx_v11_0_rlc_backdoor_autoload_copy_gfx_ucode() local
1099 fw_size = le32_to_cpu(cpv2_hdr->ucode_size_bytes); in gfx_v11_0_rlc_backdoor_autoload_copy_gfx_ucode()
[all …]
Damdgpu_gfx.c1066 unsigned int fw_size; in amdgpu_gfx_cp_init_microcode() local
1077 fw_size = le32_to_cpu(cp_hdr->header.ucode_size_bytes); in amdgpu_gfx_cp_init_microcode()
1087 fw_size = le32_to_cpu(cp_hdr_v2_0->ucode_size_bytes); in amdgpu_gfx_cp_init_microcode()
1094 fw_size = le32_to_cpu(cp_hdr_v2_0->data_size_bytes); in amdgpu_gfx_cp_init_microcode()
1104 fw_size = le32_to_cpu(cp_hdr->header.ucode_size_bytes); in amdgpu_gfx_cp_init_microcode()
1114 fw_size = le32_to_cpu(cp_hdr_v2_0->ucode_size_bytes); in amdgpu_gfx_cp_init_microcode()
1121 fw_size = le32_to_cpu(cp_hdr_v2_0->data_size_bytes); in amdgpu_gfx_cp_init_microcode()
1131 fw_size = le32_to_cpu(cp_hdr->header.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()
1148 fw_size = le32_to_cpu(cp_hdr->jt_size) * 4; in amdgpu_gfx_cp_init_microcode()
[all …]
Damdgpu_atomfirmware.c107 u32 start_addr, fw_size, drv_size; in amdgpu_atomfirmware_allocate_fb_v2_1() local
110 fw_size = le16_to_cpu(fw_usage->used_by_firmware_in_kb); in amdgpu_atomfirmware_allocate_fb_v2_1()
115 fw_size, in amdgpu_atomfirmware_allocate_fb_v2_1()
124 adev->mman.fw_vram_usage_size = fw_size << 10; in amdgpu_atomfirmware_allocate_fb_v2_1()
136 u32 fw_start_addr, fw_size, drv_start_addr, drv_size; in amdgpu_atomfirmware_allocate_fb_v2_2() local
139 fw_size = le16_to_cpu(fw_usage->used_by_firmware_in_kb); in amdgpu_atomfirmware_allocate_fb_v2_2()
146 fw_size, in amdgpu_atomfirmware_allocate_fb_v2_2()
156 adev->mman.fw_vram_usage_size = fw_size << 10; in amdgpu_atomfirmware_allocate_fb_v2_2()
Damdgpu_sdma.c262 adev->firmware.fw_size += in amdgpu_sdma_init_microcode()
273 adev->firmware.fw_size += in amdgpu_sdma_init_microcode()
278 adev->firmware.fw_size += in amdgpu_sdma_init_microcode()
Dmes_v10_1.c388 unsigned fw_size; in mes_v10_1_allocate_ucode_buffer() local
395 fw_size = le32_to_cpu(mes_hdr->mes_ucode_size_bytes); in mes_v10_1_allocate_ucode_buffer()
397 r = amdgpu_bo_create_reserved(adev, fw_size, in mes_v10_1_allocate_ucode_buffer()
407 memcpy(adev->mes.ucode_fw_ptr[pipe], fw_data, fw_size); in mes_v10_1_allocate_ucode_buffer()
421 unsigned fw_size; in mes_v10_1_allocate_ucode_data_buffer() local
428 fw_size = le32_to_cpu(mes_hdr->mes_ucode_data_size_bytes); in mes_v10_1_allocate_ucode_data_buffer()
430 r = amdgpu_bo_create_reserved(adev, fw_size, in mes_v10_1_allocate_ucode_data_buffer()
440 memcpy(adev->mes.data_fw_ptr[pipe], fw_data, fw_size); in mes_v10_1_allocate_ucode_data_buffer()
Dmes_v11_0.c482 unsigned fw_size; in mes_v11_0_allocate_ucode_buffer() local
489 fw_size = le32_to_cpu(mes_hdr->mes_ucode_size_bytes); in mes_v11_0_allocate_ucode_buffer()
491 r = amdgpu_bo_create_reserved(adev, fw_size, in mes_v11_0_allocate_ucode_buffer()
503 memcpy(adev->mes.ucode_fw_ptr[pipe], fw_data, fw_size); in mes_v11_0_allocate_ucode_buffer()
517 unsigned fw_size; in mes_v11_0_allocate_ucode_data_buffer() local
524 fw_size = le32_to_cpu(mes_hdr->mes_ucode_data_size_bytes); in mes_v11_0_allocate_ucode_data_buffer()
526 r = amdgpu_bo_create_reserved(adev, fw_size, in mes_v11_0_allocate_ucode_data_buffer()
538 memcpy(adev->mes.data_fw_ptr[pipe], fw_data, fw_size); in mes_v11_0_allocate_ucode_data_buffer()
Dsdma_v6_0.c630 u32 fw_size; in sdma_v6_0_load_microcode() local
648 fw_size = le32_to_cpu(hdr->ctx_jt_offset + hdr->ctx_jt_size) / 4; in sdma_v6_0_load_microcode()
656 for (j = 0; j < fw_size; j++) { in sdma_v6_0_load_microcode()
663 fw_size = le32_to_cpu(hdr->ctl_jt_offset + hdr->ctl_jt_size) / 4; in sdma_v6_0_load_microcode()
671 for (j = 0; j < fw_size; j++) { in sdma_v6_0_load_microcode()
682 fw_size = le32_to_cpu(hdr->ctx_jt_offset + hdr->ctx_jt_size) / 4; in sdma_v6_0_load_microcode()
690 for (j = 0; j < fw_size; j++) { in sdma_v6_0_load_microcode()
699 fw_size = le32_to_cpu(hdr->ctl_jt_offset + hdr->ctl_jt_size) / 4; in sdma_v6_0_load_microcode()
707 for (j = 0; j < fw_size; j++) { in sdma_v6_0_load_microcode()
/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 …]
Dhideep.c175 unsigned int fw_size; member
591 ts->fw_size = 1024 * 48; in hideep_load_dwz()
596 ts->fw_size = 1024 * 64; in hideep_load_dwz()
899 if (fw_entry->size > ts->fw_size) { in hideep_update_fw()
901 fw_entry->size, ts->fw_size); in hideep_update_fw()
/drivers/staging/media/atomisp/pci/
Dsh_css_firmware.c228 unsigned int fw_size) in sh_css_load_firmware() argument
237 if (!fw_data || fw_size < sizeof(struct sh_css_fw_bi_file_h)) in sh_css_load_firmware()
294 if (bi->blob.offset + bi->blob.size > fw_size) in sh_css_load_firmware()
Dsh_css_firmware.h44 unsigned int fw_size);
/drivers/virt/gunyah/
Drsc_mgr_rpc.c142 __le64 fw_size; member
623 u64 fw_offset, u64 fw_size) in gunyah_rm_vm_set_firmware_mem() argument
629 .fw_size = cpu_to_le64(fw_size), in gunyah_rm_vm_set_firmware_mem()
/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()
/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()
/drivers/net/ethernet/marvell/prestera/
Dprestera_pci.c611 const char *img, u32 fw_size) in prestera_ldr_fw_send() argument
625 for (pos = 0; pos < fw_size; pos += PRESTERA_FW_BLK_SZ) { in prestera_ldr_fw_send()
626 if (pos + PRESTERA_FW_BLK_SZ > fw_size) in prestera_ldr_fw_send()
634 if (pos < fw_size) { in prestera_ldr_fw_send()
635 err = prestera_ldr_send(fw, img + pos, fw_size - pos); in prestera_ldr_fw_send()
/drivers/remoteproc/
Dremoteproc_elf_loader.c256 size_t fw_size = fw->size; local
281 if (offset + size > fw_size || offset + size < size) {

1234