/kernel/linux/linux-5.10/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, base + WRAPPER_FW_END_ADDR); in venus_reset_cpu() 35 writel(fw_size, base + WRAPPER_CPA_END_ADDR); in venus_reset_cpu() 36 writel(fw_size, base + WRAPPER_NONPIX_START_ADDR); in venus_reset_cpu() 37 writel(fw_size, base + WRAPPER_NONPIX_END_ADDR); in venus_reset_cpu() 71 ssize_t fw_size; in venus_load_fw() local 93 fw_size = qcom_mdt_get_size(mdt); in venus_load_fw() 94 if (fw_size < 0) { in venus_load_fw() 95 ret = fw_size; in venus_load_fw() 102 if (*mem_size < fw_size || fw_size > VENUS_FW_MEM_SIZE) { in venus_load_fw()
|
/kernel/linux/linux-5.10/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 | 166 size_t fw_size; in btbcm_patchram() local 185 fw_size = fw->size; in btbcm_patchram() 187 while (fw_size >= sizeof(*cmd)) { in btbcm_patchram() 192 fw_size -= sizeof(*cmd); in btbcm_patchram() 194 if (fw_size < cmd->plen) { in btbcm_patchram() 202 fw_size -= cmd->plen; in btbcm_patchram()
|
D | btmtksdio.c | 686 size_t fw_size; in mtk_setup_firmware() local 711 fw_size = fw->size; in mtk_setup_firmware() 714 if (fw_size < 30) { in mtk_setup_firmware() 719 fw_size -= 30; in mtk_setup_firmware() 726 while (fw_size > 0) { in mtk_setup_firmware() 727 dlen = min_t(int, 250, fw_size); in mtk_setup_firmware() 730 if (fw_size - dlen <= 0) in mtk_setup_firmware() 732 else if (fw_size < fw->size - 30) in mtk_setup_firmware() 746 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()
|
/kernel/linux/linux-5.10/drivers/misc/habanalabs/common/ |
D | firmware_if.c | 33 size_t fw_size; in hl_fw_load_fw_to_device() local 42 fw_size = fw->size; in hl_fw_load_fw_to_device() 43 if ((fw_size % 4) != 0) { in hl_fw_load_fw_to_device() 45 fw_name, fw_size); in hl_fw_load_fw_to_device() 50 dev_dbg(hdev->dev, "%s firmware size == %zu\n", fw_name, fw_size); in hl_fw_load_fw_to_device() 52 if (fw_size > FW_FILE_MAX_SIZE) { in hl_fw_load_fw_to_device() 55 fw_size, FW_FILE_MAX_SIZE); in hl_fw_load_fw_to_device() 62 memcpy_toio(dst, fw_data, fw_size); in hl_fw_load_fw_to_device()
|
/kernel/linux/linux-5.10/sound/pci/hda/ |
D | hda_sysfs.c | 681 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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/ |
D | intel_csr.c | 178 u32 fw_size; member 303 u32 i, fw_size; in intel_csr_load_program() local 317 fw_size = dev_priv->csr.dmc_fw_size; in intel_csr_load_program() 322 for (i = 0; i < fw_size; i++) in intel_csr_load_program() 462 payload_size = dmc_header->fw_size * 4; in parse_csr_fw_dmc() 470 csr->dmc_fw_size = dmc_header->fw_size; in parse_csr_fw_dmc()
|
/kernel/linux/linux-5.10/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 | 3825 adev->firmware.fw_size += in gfx_v10_0_init_microcode() 3832 adev->firmware.fw_size += in gfx_v10_0_init_microcode() 3839 adev->firmware.fw_size += in gfx_v10_0_init_microcode() 3847 adev->firmware.fw_size += in gfx_v10_0_init_microcode() 3856 adev->firmware.fw_size += in gfx_v10_0_init_microcode() 3862 adev->firmware.fw_size += in gfx_v10_0_init_microcode() 3868 adev->firmware.fw_size += in gfx_v10_0_init_microcode() 3876 adev->firmware.fw_size += in gfx_v10_0_init_microcode() 3882 adev->firmware.fw_size += in gfx_v10_0_init_microcode() 3892 adev->firmware.fw_size += in gfx_v10_0_init_microcode() [all …]
|
D | psp_gfx_if.h | 245 uint32_t fw_size; /* FW buffer size in bytes */ member
|
/kernel/linux/linux-5.10/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 | 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()
|
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()
|
/kernel/linux/linux-5.10/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);
|
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/prestera/ |
D | prestera_pci.c | 519 const char *img, u32 fw_size) in prestera_ldr_fw_send() argument 533 for (pos = 0; pos < fw_size; pos += PRESTERA_FW_BLK_SZ) { in prestera_ldr_fw_send() 534 if (pos + PRESTERA_FW_BLK_SZ > fw_size) in prestera_ldr_fw_send() 542 if (pos < fw_size) { in prestera_ldr_fw_send() 543 err = prestera_ldr_send(fw, img + pos, fw_size - pos); in prestera_ldr_fw_send()
|
/kernel/linux/linux-5.10/drivers/nfc/pn544/ |
D | i2c.c | 168 size_t fw_size; member 770 phy->fw_size = phy->fw->size; in pn544_hci_i2c_fw_work() 841 phy->fw_size -= phy->fw_blob_size + in pn544_hci_i2c_fw_work() 843 if (phy->fw_size >= PN544_FW_SECURE_BLOB_HEADER_LEN in pn544_hci_i2c_fw_work() 853 if (r < 0 || phy->fw_size == 0) in pn544_hci_i2c_fw_work()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
D | cik_sdma.c | 476 u32 fw_size; in cik_sdma_load_microcode() local 483 fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4; in cik_sdma_load_microcode() 485 for (i = 0; i < fw_size; i++) in cik_sdma_load_microcode() 492 fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4; in cik_sdma_load_microcode() 494 for (i = 0; i < fw_size; i++) in cik_sdma_load_microcode()
|
/kernel/linux/linux-5.10/drivers/remoteproc/ |
D | remoteproc_elf_loader.c | 243 size_t fw_size = fw->size; local 268 if (offset + size > fw_size || offset + size < size) {
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/ |
D | hif_usb.h | 120 size_t fw_size; member
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/scsi/ |
D | wd719x.h | 71 size_t fw_size; /* firmware buffer size */ member
|
/kernel/linux/linux-5.10/sound/soc/sof/ |
D | loader.c | 572 size_t fw_size = fw->size - fw_offset; in check_header() local 589 if (fw_size != header->file_size + sizeof(*header)) { in check_header() 591 fw_size, header->file_size + sizeof(*header)); in check_header()
|