/drivers/media/platform/qcom/venus/ |
D | firmware.c | 29 u32 fw_size = core->fw.mapped_mem_size; in venus_reset_cpu() local 33 writel(fw_size, wrapper_base + WRAPPER_FW_END_ADDR); in venus_reset_cpu() 35 writel(fw_size, wrapper_base + WRAPPER_CPA_END_ADDR); in venus_reset_cpu() 36 writel(fw_size, wrapper_base + WRAPPER_NONPIX_START_ADDR); in venus_reset_cpu() 37 writel(fw_size, wrapper_base + WRAPPER_NONPIX_END_ADDR); in venus_reset_cpu() 73 ssize_t fw_size; in venus_load_fw() local 95 fw_size = qcom_mdt_get_size(mdt); in venus_load_fw() 96 if (fw_size < 0) { in venus_load_fw() 97 ret = fw_size; in venus_load_fw() 104 if (*mem_size < fw_size || fw_size > VENUS_FW_MEM_SIZE) { in venus_load_fw()
|
/drivers/crypto/qat/qat_common/ |
D | adf_accel_engine.c | 11 u32 fw_size) in adf_ae_fw_load_images() argument 33 if (qat_uclo_map_obj(loader, fw_addr, fw_size, obj_name)) { in adf_ae_fw_load_images() 58 u32 fw_size, mmp_size; in adf_ae_fw_load() local 76 fw_size = loader_data->uof_fw->size; in adf_ae_fw_load() 87 return adf_ae_fw_load_images(accel_dev, fw_addr, fw_size); in adf_ae_fw_load() 89 if (qat_uclo_map_obj(loader_data->fw_loader, fw_addr, fw_size, NULL)) { in adf_ae_fw_load()
|
/drivers/bluetooth/ |
D | bcm203x.c | 60 unsigned int fw_size; member 111 if (data->fw_sent == data->fw_size) { in bcm203x_complete() 117 len = min_t(uint, data->fw_size - data->fw_sent, 4096); in bcm203x_complete() 219 data->fw_size = firmware->size; in bcm203x_probe()
|
D | btbcm.c | 210 size_t fw_size; in btbcm_patchram() local 229 fw_size = fw->size; in btbcm_patchram() 231 while (fw_size >= sizeof(*cmd)) { in btbcm_patchram() 236 fw_size -= sizeof(*cmd); in btbcm_patchram() 238 if (fw_size < cmd->plen) { in btbcm_patchram() 246 fw_size -= cmd->plen; in btbcm_patchram()
|
D | btmtksdio.c | 687 size_t fw_size; in mtk_setup_firmware() local 712 fw_size = fw->size; in mtk_setup_firmware() 715 if (fw_size < 30) { in mtk_setup_firmware() 720 fw_size -= 30; in mtk_setup_firmware() 727 while (fw_size > 0) { in mtk_setup_firmware() 728 dlen = min_t(int, 250, fw_size); in mtk_setup_firmware() 731 if (fw_size - dlen <= 0) in mtk_setup_firmware() 733 else if (fw_size < fw->size - 30) in mtk_setup_firmware() 747 fw_size -= dlen; in mtk_setup_firmware()
|
D | btmtkuart.c | 247 size_t fw_size; in mtk_setup_firmware() local 258 fw_size = fw->size; in mtk_setup_firmware() 261 if (fw_size < 30) { in mtk_setup_firmware() 266 fw_size -= 30; in mtk_setup_firmware() 273 while (fw_size > 0) { in mtk_setup_firmware() 274 dlen = min_t(int, 250, fw_size); in mtk_setup_firmware() 277 if (fw_size - dlen <= 0) in mtk_setup_firmware() 279 else if (fw_size < fw->size - 30) in mtk_setup_firmware() 293 fw_size -= dlen; in mtk_setup_firmware()
|
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()
|
/drivers/gpu/drm/amd/amdgpu/ |
D | mes_v10_1.c | 319 adev->firmware.fw_size += in mes_v10_1_init_microcode() 326 adev->firmware.fw_size += in mes_v10_1_init_microcode() 345 unsigned fw_size; in mes_v10_1_allocate_ucode_buffer() local 352 fw_size = le32_to_cpu(mes_hdr->mes_ucode_size_bytes); in mes_v10_1_allocate_ucode_buffer() 354 r = amdgpu_bo_create_reserved(adev, fw_size, in mes_v10_1_allocate_ucode_buffer() 364 memcpy(adev->mes.ucode_fw_ptr, fw_data, fw_size); in mes_v10_1_allocate_ucode_buffer() 377 unsigned fw_size; in mes_v10_1_allocate_ucode_data_buffer() local 384 fw_size = le32_to_cpu(mes_hdr->mes_ucode_data_size_bytes); in mes_v10_1_allocate_ucode_data_buffer() 386 r = amdgpu_bo_create_reserved(adev, fw_size, in mes_v10_1_allocate_ucode_data_buffer() 396 memcpy(adev->mes.data_fw_ptr, fw_data, fw_size); in mes_v10_1_allocate_ucode_data_buffer()
|
D | gfx_v10_0.c | 4261 adev->firmware.fw_size += in gfx_v10_0_init_microcode() 4268 adev->firmware.fw_size += in gfx_v10_0_init_microcode() 4275 adev->firmware.fw_size += in gfx_v10_0_init_microcode() 4283 adev->firmware.fw_size += in gfx_v10_0_init_microcode() 4292 adev->firmware.fw_size += in gfx_v10_0_init_microcode() 4298 adev->firmware.fw_size += in gfx_v10_0_init_microcode() 4304 adev->firmware.fw_size += in gfx_v10_0_init_microcode() 4312 adev->firmware.fw_size += in gfx_v10_0_init_microcode() 4318 adev->firmware.fw_size += in gfx_v10_0_init_microcode() 4328 adev->firmware.fw_size += in gfx_v10_0_init_microcode() [all …]
|
D | gfx_v9_0.c | 1397 adev->firmware.fw_size += in gfx_v9_0_init_cp_gfx_microcode() 1404 adev->firmware.fw_size += in gfx_v9_0_init_cp_gfx_microcode() 1411 adev->firmware.fw_size += in gfx_v9_0_init_cp_gfx_microcode() 1523 adev->firmware.fw_size += in gfx_v9_0_init_rlc_microcode() 1533 adev->firmware.fw_size += in gfx_v9_0_init_rlc_microcode() 1539 adev->firmware.fw_size += in gfx_v9_0_init_rlc_microcode() 1545 adev->firmware.fw_size += in gfx_v9_0_init_rlc_microcode() 1620 adev->firmware.fw_size += in gfx_v9_0_init_cp_compute_microcode() 1626 adev->firmware.fw_size += in gfx_v9_0_init_cp_compute_microcode() 1635 adev->firmware.fw_size += in gfx_v9_0_init_cp_compute_microcode() [all …]
|
D | gfx_v7_0.c | 2459 unsigned i, fw_size; in gfx_v7_0_cp_gfx_load_microcode() local 2484 fw_size = le32_to_cpu(pfp_hdr->header.ucode_size_bytes) / 4; in gfx_v7_0_cp_gfx_load_microcode() 2486 for (i = 0; i < fw_size; i++) in gfx_v7_0_cp_gfx_load_microcode() 2494 fw_size = le32_to_cpu(ce_hdr->header.ucode_size_bytes) / 4; in gfx_v7_0_cp_gfx_load_microcode() 2496 for (i = 0; i < fw_size; i++) in gfx_v7_0_cp_gfx_load_microcode() 2504 fw_size = le32_to_cpu(me_hdr->header.ucode_size_bytes) / 4; in gfx_v7_0_cp_gfx_load_microcode() 2506 for (i = 0; i < fw_size; i++) in gfx_v7_0_cp_gfx_load_microcode() 2722 unsigned i, fw_size; in gfx_v7_0_cp_compute_load_microcode() local 2739 fw_size = le32_to_cpu(mec_hdr->header.ucode_size_bytes) / 4; in gfx_v7_0_cp_compute_load_microcode() 2741 for (i = 0; i < fw_size; i++) in gfx_v7_0_cp_compute_load_microcode() [all …]
|
/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 …]
|
D | hideep.c | 174 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()
|
D | silead.c | 285 unsigned int fw_size, i; in silead_ts_load_fw() local 298 fw_size = fw->size / sizeof(*fw_data); in silead_ts_load_fw() 301 for (i = 0; i < fw_size; i++) { in silead_ts_load_fw()
|
/drivers/staging/media/atomisp/pci/ |
D | sh_css_firmware.c | 229 unsigned int fw_size) in sh_css_load_firmware() argument 257 if (!fw_data || fw_size < sizeof(struct sh_css_fw_bi_file_h)) in sh_css_load_firmware() 295 if (bi->blob.offset + bi->blob.size > fw_size) in sh_css_load_firmware()
|
D | sh_css_firmware.h | 47 unsigned int fw_size);
|
/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()
|
/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()
|
/drivers/net/ethernet/marvell/prestera/ |
D | prestera_pci.c | 543 const char *img, u32 fw_size) in prestera_ldr_fw_send() argument 557 for (pos = 0; pos < fw_size; pos += PRESTERA_FW_BLK_SZ) { in prestera_ldr_fw_send() 558 if (pos + PRESTERA_FW_BLK_SZ > fw_size) in prestera_ldr_fw_send() 566 if (pos < fw_size) { in prestera_ldr_fw_send() 567 err = prestera_ldr_send(fw, img + pos, fw_size - pos); in prestera_ldr_fw_send()
|
/drivers/remoteproc/ |
D | remoteproc_elf_loader.c | 256 size_t fw_size = fw->size; local 281 if (offset + size > fw_size || offset + size < size) {
|
/drivers/net/wireless/ath/ath9k/ |
D | hif_usb.h | 120 size_t fw_size; member
|
/drivers/net/wireless/quantenna/qtnfmac/pcie/ |
D | pearl_pcie.c | 955 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()
|
/drivers/misc/habanalabs/common/ |
D | firmware_if.c | 53 size_t fw_size; in hl_request_fw() local 63 fw_size = (*firmware_p)->size; in hl_request_fw() 64 if ((fw_size % 4) != 0) { in hl_request_fw() 66 fw_name, fw_size); in hl_request_fw() 71 dev_dbg(hdev->dev, "%s firmware size == %zu\n", fw_name, fw_size); in hl_request_fw() 73 if (fw_size > FW_FILE_MAX_SIZE) { in hl_request_fw() 76 fw_size, FW_FILE_MAX_SIZE); in hl_request_fw()
|
/drivers/gpu/drm/i915/display/ |
D | intel_dmc.c | 190 u32 fw_size; member 501 payload_size = dmc_header->fw_size * 4; in parse_dmc_fw_header() 509 dmc_info->dmc_fw_size = dmc_header->fw_size; in parse_dmc_fw_header()
|
/drivers/media/usb/s2255/ |
D | s2255drv.c | 181 int fw_size; member 516 if (data->fw_loaded < data->fw_size) { in s2255_fwchunk_complete() 517 len = (data->fw_loaded + CHUNK_SIZE) > data->fw_size ? in s2255_fwchunk_complete() 518 data->fw_size % CHUNK_SIZE : CHUNK_SIZE; in s2255_fwchunk_complete() 2185 dev->fw_data->fw_size = dev->fw_data->fw->size; in s2255_fwload_start() 2208 int fw_size; in s2255_probe() local 2284 fw_size = dev->fw_data->fw->size; in s2255_probe() 2285 pdata = (__le32 *) &dev->fw_data->fw->data[fw_size - 8]; in s2255_probe() 2294 pRel = (__le32 *) &dev->fw_data->fw->data[fw_size - 4]; in s2255_probe()
|