/Linux-v6.1/drivers/media/platform/qcom/venus/ |
D | firmware.c | 29 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-v6.1/drivers/bluetooth/ |
D | btmtk.c | 178 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()
|
D | bcm203x.c | 59 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()
|
D | btbcm.c | 168 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()
|
D | hci_nokia.c | 331 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-v6.1/drivers/crypto/qat/qat_common/ |
D | adf_accel_engine.c | 11 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-v6.1/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_rlc.c | 332 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 …]
|
D | amdgpu_gfx.c | 877 unsigned int fw_size; in amdgpu_gfx_cp_init_microcode() local 888 fw_size = le32_to_cpu(cp_hdr->header.ucode_size_bytes); in amdgpu_gfx_cp_init_microcode() 898 fw_size = le32_to_cpu(cp_hdr_v2_0->ucode_size_bytes); in amdgpu_gfx_cp_init_microcode() 905 fw_size = le32_to_cpu(cp_hdr_v2_0->data_size_bytes); in amdgpu_gfx_cp_init_microcode() 915 fw_size = le32_to_cpu(cp_hdr->header.ucode_size_bytes); in amdgpu_gfx_cp_init_microcode() 925 fw_size = le32_to_cpu(cp_hdr_v2_0->ucode_size_bytes); in amdgpu_gfx_cp_init_microcode() 932 fw_size = le32_to_cpu(cp_hdr_v2_0->data_size_bytes); in amdgpu_gfx_cp_init_microcode() 942 fw_size = le32_to_cpu(cp_hdr->header.ucode_size_bytes); in amdgpu_gfx_cp_init_microcode() 952 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->jt_size) * 4; in amdgpu_gfx_cp_init_microcode() [all …]
|
D | imu_v11_0.c | 66 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()
|
D | gfx_v11_0.c | 1001 uint32_t fw_size, in gfx_v11_0_rlc_backdoor_autoload_copy_ucode() argument 1014 if (fw_size == 0) in gfx_v11_0_rlc_backdoor_autoload_copy_ucode() 1015 fw_size = toc_fw_size; in gfx_v11_0_rlc_backdoor_autoload_copy_ucode() 1017 if (fw_size > toc_fw_size) in gfx_v11_0_rlc_backdoor_autoload_copy_ucode() 1018 fw_size = toc_fw_size; in gfx_v11_0_rlc_backdoor_autoload_copy_ucode() 1020 memcpy(ptr + toc_offset, fw_data, fw_size); in gfx_v11_0_rlc_backdoor_autoload_copy_ucode() 1022 if (fw_size < toc_fw_size) in gfx_v11_0_rlc_backdoor_autoload_copy_ucode() 1023 memset(ptr + toc_offset + fw_size, 0, toc_fw_size - fw_size); in gfx_v11_0_rlc_backdoor_autoload_copy_ucode() 1054 uint32_t fw_size; in gfx_v11_0_rlc_backdoor_autoload_copy_gfx_ucode() local 1068 fw_size = le32_to_cpu(cpv2_hdr->ucode_size_bytes); in gfx_v11_0_rlc_backdoor_autoload_copy_gfx_ucode() [all …]
|
D | mes_v10_1.c | 443 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()
|
D | amdgpu_sdma.c | 257 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()
|
D | mes_v11_0.c | 513 adev->firmware.fw_size += in mes_v11_0_init_microcode() 520 adev->firmware.fw_size += in mes_v11_0_init_microcode() 541 unsigned fw_size; in mes_v11_0_allocate_ucode_buffer() local 548 fw_size = le32_to_cpu(mes_hdr->mes_ucode_size_bytes); in mes_v11_0_allocate_ucode_buffer() 550 r = amdgpu_bo_create_reserved(adev, fw_size, in mes_v11_0_allocate_ucode_buffer() 560 memcpy(adev->mes.ucode_fw_ptr[pipe], fw_data, fw_size); in mes_v11_0_allocate_ucode_buffer() 574 unsigned fw_size; in mes_v11_0_allocate_ucode_data_buffer() local 581 fw_size = le32_to_cpu(mes_hdr->mes_ucode_data_size_bytes); in mes_v11_0_allocate_ucode_data_buffer() 583 r = amdgpu_bo_create_reserved(adev, fw_size, in mes_v11_0_allocate_ucode_data_buffer() 593 memcpy(adev->mes.data_fw_ptr[pipe], fw_data, fw_size); in mes_v11_0_allocate_ucode_data_buffer()
|
D | sdma_v6_0.c | 645 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-v6.1/drivers/staging/r8188eu/core/ |
D | rtw_fw.c | 275 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-v6.1/sound/pci/hda/ |
D | hda_sysfs.c | 678 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-v6.1/drivers/input/touchscreen/ |
D | melfas_mip4.c | 1080 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-v6.1/drivers/staging/media/atomisp/pci/ |
D | sh_css_firmware.c | 225 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()
|
D | sh_css_firmware.h | 44 unsigned int fw_size);
|
/Linux-v6.1/sound/soc/sof/ |
D | ipc3-loader.c | 380 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-v6.1/drivers/gpu/drm/radeon/ |
D | cik_sdma.c | 475 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-v6.1/drivers/nfc/pn544/ |
D | i2c.c | 168 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-v6.1/drivers/net/ethernet/marvell/prestera/ |
D | prestera_pci.c | 600 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-v6.1/drivers/net/wireless/ath/ath9k/ |
D | hif_usb.h | 120 size_t fw_size; member
|
/Linux-v6.1/drivers/remoteproc/ |
D | remoteproc_elf_loader.c | 256 size_t fw_size = fw->size; local 281 if (offset + size > fw_size || offset + size < size) {
|