Home
last modified time | relevance | path

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

12345

/linux-6.12.1/drivers/gpu/drm/imagination/
Dpvr_fw_meta.c109 u8 *fw_data_ptr, u8 *fw_core_code_ptr, u8 *fw_core_data_ptr, const u32 fw_size) in meta_ldr_cmd_loadmem() argument
121 if (((u8 *)l2_block - fw) >= fw_size || ((u8 *)(l2_block + 1) - fw) >= fw_size) in meta_ldr_cmd_loadmem()
127 if (((u8 *)l2_block->block_data - fw) >= fw_size || in meta_ldr_cmd_loadmem()
128 ((((u8 *)l2_block->block_data) + data_size) - fw) >= fw_size) in meta_ldr_cmd_loadmem()
187 const u32 fw_size, u32 **boot_conf_ptr) in meta_ldr_cmd_config() argument
198 if (((u8 *)l2_block - fw) >= fw_size || ((u8 *)(l2_block + 1) - fw) >= fw_size) in meta_ldr_cmd_config()
204 if (((u8 *)config_command - fw) >= fw_size || in meta_ldr_cmd_config()
205 ((((u8 *)config_command) + l2_block_size) - fw) >= fw_size) in meta_ldr_cmd_config()
263 const u32 fw_size = pvr_dev->fw_dev.firmware->size; in process_ldr_command_stream() local
277 if (((u8 *)l1_data - fw) >= fw_size || ((u8 *)(l1_data + 1) - fw) >= fw_size) in process_ldr_command_stream()
[all …]
/linux-6.12.1/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()
/linux-6.12.1/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()
/linux-6.12.1/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()
89 unsigned i, fw_size; in imu_v11_0_load_microcode() local
99 fw_size = le32_to_cpu(hdr->imu_iram_ucode_size_bytes) / 4; in imu_v11_0_load_microcode()
103 for (i = 0; i < fw_size; i++) in imu_v11_0_load_microcode()
111 fw_size = le32_to_cpu(hdr->imu_dram_ucode_size_bytes) / 4; in imu_v11_0_load_microcode()
115 for (i = 0; i < fw_size; i++) in imu_v11_0_load_microcode()
Dimu_v12_0.c61 adev->firmware.fw_size += in imu_v12_0_init_microcode()
66 adev->firmware.fw_size += in imu_v12_0_init_microcode()
85 unsigned i, fw_size; in imu_v12_0_load_microcode() local
94 fw_size = le32_to_cpu(hdr->imu_iram_ucode_size_bytes) / 4; in imu_v12_0_load_microcode()
98 for (i = 0; i < fw_size; i++) in imu_v12_0_load_microcode()
106 fw_size = le32_to_cpu(hdr->imu_dram_ucode_size_bytes) / 4; in imu_v12_0_load_microcode()
110 for (i = 0; i < fw_size; i++) in imu_v12_0_load_microcode()
Dgfx_v11_0.c1224 uint32_t fw_size, in gfx_v11_0_rlc_backdoor_autoload_copy_ucode() argument
1237 if (fw_size == 0) in gfx_v11_0_rlc_backdoor_autoload_copy_ucode()
1238 fw_size = toc_fw_size; in gfx_v11_0_rlc_backdoor_autoload_copy_ucode()
1240 if (fw_size > toc_fw_size) in gfx_v11_0_rlc_backdoor_autoload_copy_ucode()
1241 fw_size = toc_fw_size; in gfx_v11_0_rlc_backdoor_autoload_copy_ucode()
1243 memcpy(ptr + toc_offset, fw_data, fw_size); in gfx_v11_0_rlc_backdoor_autoload_copy_ucode()
1245 if (fw_size < toc_fw_size) in gfx_v11_0_rlc_backdoor_autoload_copy_ucode()
1246 memset(ptr + toc_offset + fw_size, 0, toc_fw_size - fw_size); in gfx_v11_0_rlc_backdoor_autoload_copy_ucode()
1277 uint32_t fw_size; in gfx_v11_0_rlc_backdoor_autoload_copy_gfx_ucode() local
1291 fw_size = le32_to_cpu(cpv2_hdr->ucode_size_bytes); in gfx_v11_0_rlc_backdoor_autoload_copy_gfx_ucode()
[all …]
Damdgpu_umsch_mm.c618 adev->firmware.fw_size += in amdgpu_umsch_mm_init_microcode()
624 adev->firmware.fw_size += in amdgpu_umsch_mm_init_microcode()
636 uint32_t fw_size; in amdgpu_umsch_mm_allocate_ucode_buffer() local
644 fw_size = le32_to_cpu(umsch_mm_hdr->umsch_mm_ucode_size_bytes); in amdgpu_umsch_mm_allocate_ucode_buffer()
646 r = amdgpu_bo_create_reserved(adev, fw_size, in amdgpu_umsch_mm_allocate_ucode_buffer()
656 memcpy(adev->umsch_mm.ucode_fw_ptr, fw_data, fw_size); in amdgpu_umsch_mm_allocate_ucode_buffer()
668 uint32_t fw_size; in amdgpu_umsch_mm_allocate_ucode_data_buffer() local
676 fw_size = le32_to_cpu(umsch_mm_hdr->umsch_mm_ucode_data_size_bytes); in amdgpu_umsch_mm_allocate_ucode_data_buffer()
678 r = amdgpu_bo_create_reserved(adev, fw_size, in amdgpu_umsch_mm_allocate_ucode_data_buffer()
688 memcpy(adev->umsch_mm.data_fw_ptr, fw_data, fw_size); in amdgpu_umsch_mm_allocate_ucode_data_buffer()
Damdgpu_sdma.c273 adev->firmware.fw_size += in amdgpu_sdma_init_microcode()
284 adev->firmware.fw_size += in amdgpu_sdma_init_microcode()
289 adev->firmware.fw_size += in amdgpu_sdma_init_microcode()
298 adev->firmware.fw_size += in amdgpu_sdma_init_microcode()
Dgfx_v12_0.c1032 uint32_t fw_size) in gfx_v12_0_rlc_backdoor_autoload_copy_ucode() argument
1044 if (fw_size == 0) in gfx_v12_0_rlc_backdoor_autoload_copy_ucode()
1045 fw_size = toc_fw_size; in gfx_v12_0_rlc_backdoor_autoload_copy_ucode()
1047 if (fw_size > toc_fw_size) in gfx_v12_0_rlc_backdoor_autoload_copy_ucode()
1048 fw_size = toc_fw_size; in gfx_v12_0_rlc_backdoor_autoload_copy_ucode()
1050 memcpy(ptr + toc_offset, fw_data, fw_size); in gfx_v12_0_rlc_backdoor_autoload_copy_ucode()
1052 if (fw_size < toc_fw_size) in gfx_v12_0_rlc_backdoor_autoload_copy_ucode()
1053 memset(ptr + toc_offset + fw_size, 0, toc_fw_size - fw_size); in gfx_v12_0_rlc_backdoor_autoload_copy_ucode()
1077 uint32_t fw_size; in gfx_v12_0_rlc_backdoor_autoload_copy_gfx_ucode() local
1090 fw_size = le32_to_cpu(cpv2_hdr->ucode_size_bytes); in gfx_v12_0_rlc_backdoor_autoload_copy_gfx_ucode()
[all …]
Damdgpu_gfx.c1168 unsigned int fw_size; in amdgpu_gfx_cp_init_microcode() local
1179 fw_size = le32_to_cpu(cp_hdr->header.ucode_size_bytes); in amdgpu_gfx_cp_init_microcode()
1189 fw_size = le32_to_cpu(cp_hdr_v2_0->ucode_size_bytes); in amdgpu_gfx_cp_init_microcode()
1196 fw_size = le32_to_cpu(cp_hdr_v2_0->data_size_bytes); in amdgpu_gfx_cp_init_microcode()
1206 fw_size = le32_to_cpu(cp_hdr->header.ucode_size_bytes); in amdgpu_gfx_cp_init_microcode()
1216 fw_size = le32_to_cpu(cp_hdr_v2_0->ucode_size_bytes); in amdgpu_gfx_cp_init_microcode()
1223 fw_size = le32_to_cpu(cp_hdr_v2_0->data_size_bytes); in amdgpu_gfx_cp_init_microcode()
1233 fw_size = le32_to_cpu(cp_hdr->header.ucode_size_bytes); in amdgpu_gfx_cp_init_microcode()
1243 fw_size = le32_to_cpu(cp_hdr->header.ucode_size_bytes) - in amdgpu_gfx_cp_init_microcode()
1250 fw_size = le32_to_cpu(cp_hdr->jt_size) * 4; in amdgpu_gfx_cp_init_microcode()
[all …]
Damdgpu_atomfirmware.c108 u32 start_addr, fw_size, drv_size; in amdgpu_atomfirmware_allocate_fb_v2_1() local
111 fw_size = le16_to_cpu(fw_usage->used_by_firmware_in_kb); in amdgpu_atomfirmware_allocate_fb_v2_1()
116 fw_size, in amdgpu_atomfirmware_allocate_fb_v2_1()
125 adev->mman.fw_vram_usage_size = fw_size << 10; in amdgpu_atomfirmware_allocate_fb_v2_1()
137 u32 fw_start_addr, fw_size, drv_start_addr, drv_size; in amdgpu_atomfirmware_allocate_fb_v2_2() local
140 fw_size = le16_to_cpu(fw_usage->used_by_firmware_in_kb); in amdgpu_atomfirmware_allocate_fb_v2_2()
147 fw_size, in amdgpu_atomfirmware_allocate_fb_v2_2()
157 adev->mman.fw_vram_usage_size = fw_size << 10; in amdgpu_atomfirmware_allocate_fb_v2_2()
/linux-6.12.1/drivers/bluetooth/
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()
Dhci_aml.c218 u8 *fw, u32 fw_size, u32 offset) in aml_send_firmware() argument
223 if (fw_size > AML_FIRMWARE_MAX_SIZE) { in aml_send_firmware()
226 fw_size); in aml_send_firmware()
229 while (fw_size > 0) { in aml_send_firmware()
230 seg_size = (fw_size > AML_FIRMWARE_OPERATION_SIZE) ? in aml_send_firmware()
231 AML_FIRMWARE_OPERATION_SIZE : fw_size; in aml_send_firmware()
239 fw_size -= seg_size; in aml_send_firmware()
Dbtbcm.c215 size_t fw_size; in btbcm_patchram() local
234 fw_size = fw->size; in btbcm_patchram()
236 while (fw_size >= sizeof(*cmd)) { in btbcm_patchram()
241 fw_size -= sizeof(*cmd); in btbcm_patchram()
243 if (fw_size < cmd->plen) { in btbcm_patchram()
251 fw_size -= cmd->plen; in btbcm_patchram()
Dbtqca.c277 u8 *fw_data, size_t fw_size, in qca_tlv_check_data() argument
295 if (fw_size < 7) in qca_tlv_check_data()
306 if (fw_size < sizeof(struct tlv_type_hdr) + sizeof(struct tlv_type_patch)) in qca_tlv_check_data()
348 if (fw_size < sizeof(struct tlv_type_hdr)) in qca_tlv_check_data()
362 if (fw_size < 2 * sizeof(struct tlv_type_hdr)) in qca_tlv_check_data()
378 if (fw_size < length + (tlv->data - fw_data)) in qca_tlv_check_data()
Dbtmtk.c257 size_t fw_size; in btmtk_setup_firmware() local
282 fw_size = fw->size; in btmtk_setup_firmware()
285 if (fw_size < 30) { in btmtk_setup_firmware()
290 fw_size -= 30; in btmtk_setup_firmware()
297 while (fw_size > 0) { in btmtk_setup_firmware()
298 dlen = min_t(int, 250, fw_size); in btmtk_setup_firmware()
301 if (fw_size - dlen <= 0) in btmtk_setup_firmware()
303 else if (fw_size < fw->size - 30) in btmtk_setup_firmware()
317 fw_size -= dlen; in btmtk_setup_firmware()
/linux-6.12.1/sound/pci/hda/
Dhda_sysfs.c676 size_t fw_size = *fw_size_p; in get_line_from_fw() local
679 while (isspace(*p) && fw_size) { in get_line_from_fw()
681 fw_size--; in get_line_from_fw()
683 if (!fw_size) in get_line_from_fw()
686 for (len = 0; len < fw_size; len++) { in get_line_from_fw()
698 *fw_size_p = fw_size - len; in get_line_from_fw()
710 int snd_hda_load_patch(struct hda_bus *bus, size_t fw_size, const void *fw_buf) in snd_hda_load_patch() argument
718 while (get_line_from_fw(buf, sizeof(buf) - 1, &fw_size, &fw_buf)) { in snd_hda_load_patch()
/linux-6.12.1/drivers/gpu/drm/xe/
Dxe_gsc.c48 u32 fw_size = gsc->fw.size; in memcpy_fw() local
55 storage = kmalloc(fw_size, GFP_KERNEL); in memcpy_fw()
59 xe_map_memcpy_from(xe, storage, &gsc->fw.bo->vmap, 0, fw_size); in memcpy_fw()
60 xe_map_memcpy_to(xe, &gsc->private->vmap, 0, storage, fw_size); in memcpy_fw()
61 xe_map_memset(xe, &gsc->private->vmap, fw_size, 0, gsc->private->size - fw_size); in memcpy_fw()
Dxe_uc_fw.c381 static int parse_css_header(struct xe_uc_fw *uc_fw, const void *fw_data, size_t fw_size) in parse_css_header() argument
389 if (unlikely(fw_size < sizeof(struct uc_css_header))) { in parse_css_header()
392 fw_size, sizeof(struct uc_css_header)); in parse_css_header()
405 fw_size, sizeof(struct uc_css_header)); in parse_css_header()
418 if (unlikely(fw_size < size)) { in parse_css_header()
421 fw_size, size); in parse_css_header()
/linux-6.12.1/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.12.1/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);
/linux-6.12.1/sound/soc/sof/
Dipc3-loader.c380 size_t fw_size = fw->size - payload_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.12.1/drivers/nfc/pn544/
Di2c.c166 size_t fw_size; member
766 phy->fw_size = phy->fw->size; in pn544_hci_i2c_fw_work()
837 phy->fw_size -= phy->fw_blob_size + in pn544_hci_i2c_fw_work()
839 if (phy->fw_size >= PN544_FW_SECURE_BLOB_HEADER_LEN in pn544_hci_i2c_fw_work()
849 if (r < 0 || phy->fw_size == 0) in pn544_hci_i2c_fw_work()

12345