Home
last modified time | relevance | path

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

1234

/linux-5.19.10/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-5.19.10/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-5.19.10/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-5.19.10/drivers/gpu/drm/amd/amdgpu/
Dgfx_v11_0.c661 adev->firmware.fw_size += in gfx_v11_0_init_microcode()
668 adev->firmware.fw_size += in gfx_v11_0_init_microcode()
675 adev->firmware.fw_size += in gfx_v11_0_init_microcode()
683 adev->firmware.fw_size += in gfx_v11_0_init_microcode()
690 adev->firmware.fw_size += in gfx_v11_0_init_microcode()
697 adev->firmware.fw_size += in gfx_v11_0_init_microcode()
705 adev->firmware.fw_size += in gfx_v11_0_init_microcode()
712 adev->firmware.fw_size += in gfx_v11_0_init_microcode()
719 adev->firmware.fw_size += in gfx_v11_0_init_microcode()
726 adev->firmware.fw_size += in gfx_v11_0_init_microcode()
[all …]
Dimu_v11_0.c62 adev->firmware.fw_size += in imu_v11_0_init_microcode()
67 adev->firmware.fw_size += in imu_v11_0_init_microcode()
86 unsigned i, fw_size; in imu_v11_0_load_microcode() local
96 fw_size = le32_to_cpu(hdr->imu_iram_ucode_size_bytes) / 4; in imu_v11_0_load_microcode()
100 for (i = 0; i < fw_size; i++) in imu_v11_0_load_microcode()
108 fw_size = le32_to_cpu(hdr->imu_dram_ucode_size_bytes) / 4; in imu_v11_0_load_microcode()
112 for (i = 0; i < fw_size; i++) in imu_v11_0_load_microcode()
Dmes_v10_1.c398 adev->firmware.fw_size += in mes_v10_1_init_microcode()
405 adev->firmware.fw_size += in mes_v10_1_init_microcode()
426 unsigned fw_size; in mes_v10_1_allocate_ucode_buffer() local
433 fw_size = le32_to_cpu(mes_hdr->mes_ucode_size_bytes); in mes_v10_1_allocate_ucode_buffer()
435 r = amdgpu_bo_create_reserved(adev, fw_size, in mes_v10_1_allocate_ucode_buffer()
445 memcpy(adev->mes.ucode_fw_ptr[pipe], fw_data, fw_size); in mes_v10_1_allocate_ucode_buffer()
459 unsigned fw_size; in mes_v10_1_allocate_ucode_data_buffer() local
466 fw_size = le32_to_cpu(mes_hdr->mes_ucode_data_size_bytes); in mes_v10_1_allocate_ucode_data_buffer()
468 r = amdgpu_bo_create_reserved(adev, fw_size, in mes_v10_1_allocate_ucode_data_buffer()
478 memcpy(adev->mes.data_fw_ptr[pipe], fw_data, fw_size); in mes_v10_1_allocate_ucode_data_buffer()
Dmes_v11_0.c389 adev->firmware.fw_size += in mes_v11_0_init_microcode()
396 adev->firmware.fw_size += in mes_v11_0_init_microcode()
417 unsigned fw_size; in mes_v11_0_allocate_ucode_buffer() local
424 fw_size = le32_to_cpu(mes_hdr->mes_ucode_size_bytes); in mes_v11_0_allocate_ucode_buffer()
426 r = amdgpu_bo_create_reserved(adev, fw_size, in mes_v11_0_allocate_ucode_buffer()
436 memcpy(adev->mes.ucode_fw_ptr[pipe], fw_data, fw_size); in mes_v11_0_allocate_ucode_buffer()
450 unsigned fw_size; in mes_v11_0_allocate_ucode_data_buffer() local
457 fw_size = le32_to_cpu(mes_hdr->mes_ucode_data_size_bytes); in mes_v11_0_allocate_ucode_data_buffer()
459 r = amdgpu_bo_create_reserved(adev, fw_size, in mes_v11_0_allocate_ucode_data_buffer()
469 memcpy(adev->mes.data_fw_ptr[pipe], fw_data, fw_size); in mes_v11_0_allocate_ucode_data_buffer()
Dsdma_v6_0.c154 adev->firmware.fw_size += in sdma_v6_0_init_microcode()
159 adev->firmware.fw_size += in sdma_v6_0_init_microcode()
681 u32 fw_size; in sdma_v6_0_load_microcode() local
699 fw_size = le32_to_cpu(hdr->ctx_jt_offset + hdr->ctx_jt_size) / 4; in sdma_v6_0_load_microcode()
707 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()
733 fw_size = le32_to_cpu(hdr->ctx_jt_offset + hdr->ctx_jt_size) / 4; in sdma_v6_0_load_microcode()
741 for (j = 0; j < fw_size; j++) { in sdma_v6_0_load_microcode()
750 fw_size = le32_to_cpu(hdr->ctl_jt_offset + hdr->ctl_jt_size) / 4; in sdma_v6_0_load_microcode()
[all …]
Dgfx_v10_0.c4194 adev->firmware.fw_size += in gfx_v10_0_init_microcode()
4201 adev->firmware.fw_size += in gfx_v10_0_init_microcode()
4208 adev->firmware.fw_size += in gfx_v10_0_init_microcode()
4216 adev->firmware.fw_size += in gfx_v10_0_init_microcode()
4225 adev->firmware.fw_size += in gfx_v10_0_init_microcode()
4231 adev->firmware.fw_size += in gfx_v10_0_init_microcode()
4237 adev->firmware.fw_size += in gfx_v10_0_init_microcode()
4245 adev->firmware.fw_size += in gfx_v10_0_init_microcode()
4251 adev->firmware.fw_size += in gfx_v10_0_init_microcode()
4261 adev->firmware.fw_size += in gfx_v10_0_init_microcode()
[all …]
/linux-5.19.10/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-5.19.10/sound/pci/hda/
Dhda_sysfs.c681 size_t fw_size = *fw_size_p; in get_line_from_fw() local
684 while (isspace(*p) && fw_size) { in get_line_from_fw()
686 fw_size--; in get_line_from_fw()
688 if (!fw_size) in get_line_from_fw()
691 for (len = 0; len < fw_size; len++) { in get_line_from_fw()
703 *fw_size_p = fw_size - len; in get_line_from_fw()
715 int snd_hda_load_patch(struct hda_bus *bus, size_t fw_size, const void *fw_buf) in snd_hda_load_patch() argument
723 while (get_line_from_fw(buf, sizeof(buf) - 1, &fw_size, &fw_buf)) { in snd_hda_load_patch()
/linux-5.19.10/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.c174 unsigned int fw_size; member
585 ts->fw_size = 1024 * 48; in hideep_load_dwz()
590 ts->fw_size = 1024 * 64; in hideep_load_dwz()
893 if (fw_entry->size > ts->fw_size) { in hideep_update_fw()
895 fw_entry->size, ts->fw_size); in hideep_update_fw()
/linux-5.19.10/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-5.19.10/sound/soc/sof/
Dipc3-loader.c379 size_t fw_size = fw->size - plat_data->fw_offset; in sof_ipc3_validate_firmware() local
397 if (fw_size != header->file_size + sizeof(*header)) { in sof_ipc3_validate_firmware()
400 fw_size, header->file_size + sizeof(*header)); in sof_ipc3_validate_firmware()
/linux-5.19.10/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-5.19.10/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-5.19.10/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-5.19.10/drivers/net/wireless/ath/ath9k/
Dhif_usb.h120 size_t fw_size; member
/linux-5.19.10/drivers/remoteproc/
Dremoteproc_elf_loader.c256 size_t fw_size = fw->size; local
281 if (offset + size > fw_size || offset + size < size) {
/linux-5.19.10/drivers/net/wireless/quantenna/qtnfmac/pcie/
Dpearl_pcie.c955 qtnf_ep_fw_load(struct qtnf_pcie_pearl_state *ps, const u8 *fw, u32 fw_size) in qtnf_ep_fw_load() argument
958 int blk_count = fw_size / blk_size + ((fw_size % blk_size) ? 1 : 0); in qtnf_ep_fw_load()
964 pr_debug("FW upload started: fw_addr=0x%p size=%d\n", fw, fw_size); in qtnf_ep_fw_load()
972 len = qtnf_ep_fw_send(ps->base.pdev, fw_size, blk, pblk, fw); in qtnf_ep_fw_load()

1234