Home
last modified time | relevance | path

Searched refs:fw_data (Results 1 – 25 of 81) sorted by relevance

1234

/openbmc/linux/drivers/staging/media/atomisp/pci/
H A Dsh_css_firmware.c82 setup_binary(struct ia_css_fw_info *fw, const char *fw_data, in setup_binary() argument
87 if ((!fw) || (!fw_data)) in setup_binary()
90 blob_data = fw_data + fw->blob.offset; in setup_binary()
189 sh_css_check_firmware_version(struct device *dev, const char *fw_data) in sh_css_check_firmware_version() argument
199 firmware_header = (struct firmware_header *)fw_data; in sh_css_check_firmware_version()
227 sh_css_load_firmware(struct device *dev, const char *fw_data, 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()
240 firmware_header = (struct firmware_header *)fw_data; in sh_css_load_firmware()
253 ret = sh_css_check_firmware_version(dev, fw_data); in sh_css_load_firmware()
289 err = sh_css_load_blob_info(fw_data, bi, &bd, i); in sh_css_load_firmware()
[all …]
H A Dsh_css_firmware.h40 sh_css_check_firmware_version(struct device *dev, const char *fw_data);
43 sh_css_load_firmware(struct device *dev, const char *fw_data,
/openbmc/linux/drivers/fpga/
H A Dxilinx-spi.c134 const char *fw_data = buf; in xilinx_spi_write() local
135 const char *fw_data_end = fw_data + count; in xilinx_spi_write()
137 while (fw_data < fw_data_end) { in xilinx_spi_write()
141 remaining = fw_data_end - fw_data; in xilinx_spi_write()
144 ret = spi_write(conf->spi, fw_data, stride); in xilinx_spi_write()
150 fw_data += stride; in xilinx_spi_write()
H A Daltera-ps-spi.c179 const char *fw_data = buf; in altera_ps_write() local
180 const char *fw_data_end = fw_data + count; in altera_ps_write()
182 while (fw_data < fw_data_end) { in altera_ps_write()
184 size_t stride = min_t(size_t, fw_data_end - fw_data, SZ_4K); in altera_ps_write()
187 rev_buf((char *)fw_data, stride); in altera_ps_write()
189 ret = spi_write(conf->spi, fw_data, stride); in altera_ps_write()
195 fw_data += stride; in altera_ps_write()
/openbmc/linux/drivers/media/usb/s2255/
H A Ds2255drv.c258 struct s2255_fw *fw_data; member
475 struct s2255_fw *data = dev->fw_data; in s2255_timer()
1414 state = atomic_read(&dev->fw_data->fw_state); in s2255_open()
1422 wait_event_timeout(dev->fw_data->wait_fw, in s2255_open()
1423 ((atomic_read(&dev->fw_data->fw_state) in s2255_open()
1425 (atomic_read(&dev->fw_data->fw_state) in s2255_open()
1429 state = atomic_read(&dev->fw_data->fw_state); in s2255_open()
1436 wait_event_timeout(dev->fw_data->wait_fw, in s2255_open()
1437 ((atomic_read(&dev->fw_data->fw_state) in s2255_open()
1439 (atomic_read(&dev->fw_data->fw_state) in s2255_open()
[all …]
/openbmc/linux/drivers/net/wireless/purelifi/plfxlc/
H A Dfirmware.c36 unsigned char *fw_data; in plfxlc_download_fpga() local
88 fw_data = kmemdup(&fw->data[fw_data_i], blk_tran_len, in plfxlc_download_fpga()
90 if (!fw_data) { in plfxlc_download_fpga()
97 fw_data[tbuf_idx] = bitrev8(fw_data[tbuf_idx]); in plfxlc_download_fpga()
102 fw_data, in plfxlc_download_fpga()
110 kfree(fw_data); in plfxlc_download_fpga()
/openbmc/linux/drivers/bluetooth/
H A Dbtrtl.c92 u8 *fw_data; member
527 .data = btrtl_dev->fw_data, in rtlbt_parse_firmware_v2()
653 if (!memcmp(btrtl_dev->fw_data, RTL_EPATCH_SIGNATURE, 8)) in rtlbt_parse_firmware()
656 else if (!memcmp(btrtl_dev->fw_data, RTL_EPATCH_SIGNATURE_V2, 8)) in rtlbt_parse_firmware()
665 fwptr = btrtl_dev->fw_data + btrtl_dev->fw_len - sizeof(extension_sig); in rtlbt_parse_firmware()
677 while (fwptr >= btrtl_dev->fw_data + (sizeof(*epatch_info) + 3)) { in rtlbt_parse_firmware()
726 if (memcmp(btrtl_dev->fw_data, RTL_EPATCH_SIGNATURE, 8) != 0) { in rtlbt_parse_firmware()
727 if (!memcmp(btrtl_dev->fw_data, RTL_EPATCH_SIGNATURE_V2, 8)) in rtlbt_parse_firmware()
733 epatch_info = (struct rtl_epatch_header *)btrtl_dev->fw_data; in rtlbt_parse_firmware()
750 chip_id_base = btrtl_dev->fw_data + sizeof(struct rtl_epatch_header); in rtlbt_parse_firmware()
[all …]
H A Dbcm203x.c58 unsigned char *fw_data; member
119 data->fw_data + data->fw_sent, len, bcm203x_complete, data); in bcm203x_complete()
209 data->fw_data = kmemdup(firmware->data, firmware->size, GFP_KERNEL); in bcm203x_probe()
210 if (!data->fw_data) { in bcm203x_probe()
247 kfree(data->fw_data); in bcm203x_disconnect()
H A Dbtqca.c294 u8 *fw_data, size_t fw_size, in qca_tlv_check_data() argument
318 bt_dev_dbg(hdev, "File Class : 0x%x", fw_data[4]); in qca_tlv_check_data()
319 bt_dev_dbg(hdev, "Data Encoding : 0x%x", fw_data[5]); in qca_tlv_check_data()
320 bt_dev_dbg(hdev, "File version : 0x%x", fw_data[6]); in qca_tlv_check_data()
326 tlv = (struct tlv_type_hdr *)fw_data; in qca_tlv_check_data()
368 tlv = (struct tlv_type_hdr *)fw_data; in qca_tlv_check_data()
395 if (fw_size < length + (tlv->data - fw_data)) in qca_tlv_check_data()
/openbmc/linux/drivers/usb/host/
H A Dxhci-pci-renesas.c119 static int renesas_fw_verify(const void *fw_data, in renesas_fw_verify() argument
140 if (get_unaligned_le16(fw_data) != 0x55aa) { in renesas_fw_verify()
146 fw_version_pointer = get_unaligned_le16(fw_data + 4); in renesas_fw_verify()
288 const u32 *fw_data = (const u32 *)fw->data; in renesas_fw_download() local
310 err = renesas_fw_download_image(pdev, fw_data, i, false); in renesas_fw_download()
426 const u32 *fw_data = (const u32 *)fw->data; in renesas_setup_rom() local
455 err = renesas_fw_download_image(pdev, fw_data, i, true); in renesas_setup_rom()
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A Dgfx_v11_0.c1031 const void *fw_data, in gfx_v11_0_rlc_backdoor_autoload_copy_ucode() argument
1051 memcpy(ptr + toc_offset, fw_data, fw_size); in gfx_v11_0_rlc_backdoor_autoload_copy_ucode()
1084 const __le32 *fw_data; in gfx_v11_0_rlc_backdoor_autoload_copy_gfx_ucode() local
1097 fw_data = (const __le32 *)(adev->gfx.pfp_fw->data + in gfx_v11_0_rlc_backdoor_autoload_copy_gfx_ucode()
1101 fw_data, fw_size, fw_autoload_mask); in gfx_v11_0_rlc_backdoor_autoload_copy_gfx_ucode()
1103 fw_data = (const __le32 *)(adev->gfx.pfp_fw->data + in gfx_v11_0_rlc_backdoor_autoload_copy_gfx_ucode()
1107 fw_data, fw_size, fw_autoload_mask); in gfx_v11_0_rlc_backdoor_autoload_copy_gfx_ucode()
1109 fw_data, fw_size, fw_autoload_mask); in gfx_v11_0_rlc_backdoor_autoload_copy_gfx_ucode()
1114 fw_data = (const __le32 *)(adev->gfx.me_fw->data + in gfx_v11_0_rlc_backdoor_autoload_copy_gfx_ucode()
1118 fw_data, fw_size, fw_autoload_mask); in gfx_v11_0_rlc_backdoor_autoload_copy_gfx_ucode()
[all …]
H A Dimu_v11_0.c87 const __le32 *fw_data; in imu_v11_0_load_microcode() local
96 fw_data = (const __le32 *)(adev->gfx.imu_fw->data + in imu_v11_0_load_microcode()
103 WREG32_SOC15(GC, 0, regGFX_IMU_I_RAM_DATA, le32_to_cpup(fw_data++)); in imu_v11_0_load_microcode()
107 fw_data = (const __le32 *)(adev->gfx.imu_fw->data + in imu_v11_0_load_microcode()
115 WREG32_SOC15(GC, 0, regGFX_IMU_D_RAM_DATA, le32_to_cpup(fw_data++)); in imu_v11_0_load_microcode()
H A Damdgpu_rlc.c191 const __le32 *fw_data; in amdgpu_gfx_rlc_setup_cp_table() local
205 fw_data = (const __le32 *) in amdgpu_gfx_rlc_setup_cp_table()
213 fw_data = (const __le32 *) in amdgpu_gfx_rlc_setup_cp_table()
221 fw_data = (const __le32 *) in amdgpu_gfx_rlc_setup_cp_table()
229 fw_data = (const __le32 *) in amdgpu_gfx_rlc_setup_cp_table()
237 fw_data = (const __le32 *) in amdgpu_gfx_rlc_setup_cp_table()
246 cpu_to_le32(le32_to_cpu(fw_data[table_offset + i])); in amdgpu_gfx_rlc_setup_cp_table()
H A Dsdma_v6_0.c629 const __le32 *fw_data; in sdma_v6_0_load_microcode() local
650 fw_data = (const __le32 *) in sdma_v6_0_load_microcode()
659 … WREG32(sdma_v6_0_get_reg_offset(adev, 0, regSDMA0_BROADCAST_UCODE_DATA), le32_to_cpup(fw_data++)); in sdma_v6_0_load_microcode()
665 fw_data = (const __le32 *) in sdma_v6_0_load_microcode()
674 … WREG32(sdma_v6_0_get_reg_offset(adev, 0, regSDMA0_BROADCAST_UCODE_DATA), le32_to_cpup(fw_data++)); in sdma_v6_0_load_microcode()
684 fw_data = (const __le32 *) in sdma_v6_0_load_microcode()
693 WREG32(sdma_v6_0_get_reg_offset(adev, i, regSDMA0_UCODE_DATA), le32_to_cpup(fw_data++)); in sdma_v6_0_load_microcode()
701 fw_data = (const __le32 *) in sdma_v6_0_load_microcode()
710 WREG32(sdma_v6_0_get_reg_offset(adev, i, regSDMA0_UCODE_DATA), le32_to_cpup(fw_data++)); in sdma_v6_0_load_microcode()
/openbmc/linux/drivers/gpu/drm/radeon/
H A Dcik_sdma.c474 const __le32 *fw_data; in cik_sdma_load_microcode() local
480 fw_data = (const __le32 *) in cik_sdma_load_microcode()
485 WREG32(SDMA0_UCODE_DATA + SDMA0_REGISTER_OFFSET, le32_to_cpup(fw_data++)); in cik_sdma_load_microcode()
489 fw_data = (const __le32 *) in cik_sdma_load_microcode()
494 WREG32(SDMA0_UCODE_DATA + SDMA1_REGISTER_OFFSET, le32_to_cpup(fw_data++)); in cik_sdma_load_microcode()
497 const __be32 *fw_data; in cik_sdma_load_microcode() local
500 fw_data = (const __be32 *)rdev->sdma_fw->data; in cik_sdma_load_microcode()
503 WREG32(SDMA0_UCODE_DATA + SDMA0_REGISTER_OFFSET, be32_to_cpup(fw_data++)); in cik_sdma_load_microcode()
507 fw_data = (const __be32 *)rdev->sdma_fw->data; in cik_sdma_load_microcode()
510 WREG32(SDMA0_UCODE_DATA + SDMA1_REGISTER_OFFSET, be32_to_cpup(fw_data++)); in cik_sdma_load_microcode()
H A Dcik.c1862 const __be32 *fw_data = NULL; in ci_mc_load_microcode() local
1899 fw_data = (const __be32 *)rdev->mc_fw->data; in ci_mc_load_microcode()
1933 WREG32(MC_SEQ_SUP_PGM, be32_to_cpup(fw_data++)); in ci_mc_load_microcode()
3900 const __le32 *fw_data; in cik_cp_gfx_load_microcode() local
3908 fw_data = (const __le32 *) in cik_cp_gfx_load_microcode()
3913 WREG32(CP_PFP_UCODE_DATA, le32_to_cpup(fw_data++)); in cik_cp_gfx_load_microcode()
3917 fw_data = (const __le32 *) in cik_cp_gfx_load_microcode()
3922 WREG32(CP_CE_UCODE_DATA, le32_to_cpup(fw_data++)); in cik_cp_gfx_load_microcode()
3926 fw_data = (const __be32 *) in cik_cp_gfx_load_microcode()
3931 WREG32(CP_ME_RAM_DATA, le32_to_cpup(fw_data++)); in cik_cp_gfx_load_microcode()
[all …]
/openbmc/linux/drivers/media/usb/as102/
H A Das102_fw.c40 static int parse_hex_line(unsigned char *fw_data, unsigned char *addr, in parse_hex_line() argument
47 if (*fw_data++ != ':') { in parse_hex_line()
53 for (src = fw_data; *src != '\n'; src += 2) { in parse_hex_line()
/openbmc/linux/drivers/bus/mhi/host/
H A Dboot.c394 const u8 *fw_data; in mhi_fw_load_handler() local
429 mhi_cntrl->fw_data && mhi_cntrl->fw_sz) { in mhi_fw_load_handler()
436 fw_data = mhi_cntrl->fw_data; in mhi_fw_load_handler()
460 fw_data = firmware->data; in mhi_fw_load_handler()
472 memcpy(buf, fw_data, size); in mhi_fw_load_handler()
505 mhi_firmware_copy(mhi_cntrl, fw_data, fw_sz, mhi_cntrl->fbc_image); in mhi_fw_load_handler()
/openbmc/linux/drivers/net/wireless/ath/ath10k/
H A Dswap.c21 const u8 *fw_data = data; in ath10k_swap_code_seg_fill() local
34 swap_item = (union ath10k_swap_code_seg_item *)fw_data; in ath10k_swap_code_seg_fill()
59 fw_data += length; in ath10k_swap_code_seg_fill()
/openbmc/u-boot/drivers/usb/host/
H A Dxhci-rcar.c43 static int xhci_rcar_download_fw(struct rcar_xhci *ctx, const u32 *fw_data, in xhci_rcar_download_fw() argument
53 writel(fw_data[i], regs + RCAR_USB3_FW_DATA0); in xhci_rcar_download_fw()
/openbmc/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_init_ops.c311 array_data = cdev->fw_data->arr_data; in qed_init_cmd_array()
504 modes_tree_buf = cdev->fw_data->modes_tree_buf; in qed_init_cmd_mode_match()
558 num_init_ops = cdev->fw_data->init_ops_size; in qed_init_run()
559 init_ops = cdev->fw_data->init_ops; in qed_init_run()
625 struct qed_fw_data *fw = cdev->fw_data; in qed_init_fw_data()
/openbmc/u-boot/common/spl/
H A Dspl.c175 ulong fw_data = 0, dt_data = 0, img_data = 0; in spl_load_fit_image() local
186 FIT_LOAD_REQUIRED, &fw_data, &fw_len); in spl_load_fit_image()
191 spl_image->entry_point = fw_data; in spl_load_fit_image()
192 spl_image->load_addr = fw_data; in spl_load_fit_image()
/openbmc/linux/drivers/input/touchscreen/
H A Dsilead.c399 struct silead_fw_data *fw_data; in silead_ts_load_fw() local
450 fw_size = fw->size / sizeof(*fw_data); in silead_ts_load_fw()
451 fw_data = (struct silead_fw_data *)fw->data; in silead_ts_load_fw()
455 fw_data[i].offset, in silead_ts_load_fw()
457 (u8 *)&fw_data[i].val); in silead_ts_load_fw()
H A Dili210x.c701 u8 fw_data[33]; in ili251x_firmware_write_to_ic() local
728 fw_data[0] = REG_WRITE_DATA; in ili251x_firmware_write_to_ic()
729 memcpy(&(fw_data[1]), fwbuf + fw_addr, 32); in ili251x_firmware_write_to_ic()
730 error = i2c_master_send(client, fw_data, 33); in ili251x_firmware_write_to_ic()
731 if (error != sizeof(fw_data)) in ili251x_firmware_write_to_ic()
/openbmc/linux/drivers/net/wireless/ath/carl9170/
H A Dfw.c365 carl9170_find_fw_desc(struct ar9170 *ar, const __u8 *fw_data, const size_t len) in carl9170_find_fw_desc() argument
376 if (fw_data[scan++] == otus_magic[found]) in carl9170_find_fw_desc()
391 return (void *)&fw_data[scan - found]; in carl9170_find_fw_desc()

1234