Home
last modified time | relevance | path

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

123

/drivers/staging/rtl8188eu/hal/
Dfw.c151 u8 *download_data, *fw_data; in rtl88eu_download_fw() local
169 fw_data = kmalloc(fw->size + trailing_zeros_length, GFP_KERNEL); in rtl88eu_download_fw()
170 if (!fw_data) { in rtl88eu_download_fw()
175 memcpy(fw_data, fw->data, fw->size); in rtl88eu_download_fw()
176 memset(fw_data + fw->size, 0, trailing_zeros_length); in rtl88eu_download_fw()
178 pfwheader = (struct rtl92c_firmware_header *)fw_data; in rtl88eu_download_fw()
181 download_data = fw_data + 32; in rtl88eu_download_fw()
184 download_data = fw_data; in rtl88eu_download_fw()
200 kfree(fw_data); in rtl88eu_download_fw()
/drivers/staging/media/atomisp/pci/
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
200 firmware_header = (struct firmware_header *)fw_data; in sh_css_check_firmware_version()
228 sh_css_load_firmware(struct device *dev, const char *fw_data, in sh_css_load_firmware() argument
242 firmware_header = (struct firmware_header *)fw_data; in sh_css_load_firmware()
247 ret = sh_css_check_firmware_version(dev, fw_data); in sh_css_load_firmware()
257 if (!fw_data || fw_size < sizeof(struct sh_css_fw_bi_file_h)) in sh_css_load_firmware()
290 err = sh_css_load_blob_info(fw_data, bi, &bd, i); in sh_css_load_firmware()
[all …]
Dsh_css_firmware.h43 sh_css_check_firmware_version(struct device *dev, const char *fw_data);
46 sh_css_load_firmware(struct device *dev, const char *fw_data,
/drivers/bluetooth/
Dbtrtl.c54 u8 *fw_data; member
284 fwptr = btrtl_dev->fw_data + btrtl_dev->fw_len - sizeof(extension_sig); in rtlbt_parse_firmware()
296 while (fwptr >= btrtl_dev->fw_data + (sizeof(*epatch_info) + 3)) { in rtlbt_parse_firmware()
343 epatch_info = (struct rtl_epatch_header *)btrtl_dev->fw_data; in rtlbt_parse_firmware()
363 chip_id_base = btrtl_dev->fw_data + sizeof(struct rtl_epatch_header); in rtlbt_parse_firmware()
397 memcpy(buf, btrtl_dev->fw_data + patch_offset, patch_length - 4); in rtlbt_parse_firmware()
503 if (!memcmp(btrtl_dev->fw_data, RTL_EPATCH_SIGNATURE, 8)) { in btrtl_setup_rtl8723a()
508 return rtl_download_firmware(hdev, btrtl_dev->fw_data, in btrtl_setup_rtl8723a()
515 unsigned char *fw_data = NULL; in btrtl_setup_rtl8723b() local
519 ret = rtlbt_parse_firmware(hdev, btrtl_dev, &fw_data); in btrtl_setup_rtl8723b()
[all …]
Dbcm203x.c59 unsigned char *fw_data; member
120 data->fw_data + data->fw_sent, len, bcm203x_complete, data); in bcm203x_complete()
210 data->fw_data = kmemdup(firmware->data, firmware->size, GFP_KERNEL); in bcm203x_probe()
211 if (!data->fw_data) { in bcm203x_probe()
248 kfree(data->fw_data); in bcm203x_disconnect()
/drivers/media/usb/s2255/
Ds2255drv.c258 struct s2255_fw *fw_data; member
475 struct s2255_fw *data = dev->fw_data; in s2255_timer()
1416 state = atomic_read(&dev->fw_data->fw_state); in s2255_open()
1424 wait_event_timeout(dev->fw_data->wait_fw, in s2255_open()
1425 ((atomic_read(&dev->fw_data->fw_state) in s2255_open()
1427 (atomic_read(&dev->fw_data->fw_state) in s2255_open()
1431 state = atomic_read(&dev->fw_data->fw_state); in s2255_open()
1438 wait_event_timeout(dev->fw_data->wait_fw, in s2255_open()
1439 ((atomic_read(&dev->fw_data->fw_state) in s2255_open()
1441 (atomic_read(&dev->fw_data->fw_state) in s2255_open()
[all …]
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_rlc.c186 const __le32 *fw_data; in amdgpu_gfx_rlc_setup_cp_table() local
200 fw_data = (const __le32 *) in amdgpu_gfx_rlc_setup_cp_table()
208 fw_data = (const __le32 *) in amdgpu_gfx_rlc_setup_cp_table()
216 fw_data = (const __le32 *) in amdgpu_gfx_rlc_setup_cp_table()
224 fw_data = (const __le32 *) in amdgpu_gfx_rlc_setup_cp_table()
232 fw_data = (const __le32 *) in amdgpu_gfx_rlc_setup_cp_table()
241 cpu_to_le32(le32_to_cpu(fw_data[table_offset + i])); in amdgpu_gfx_rlc_setup_cp_table()
Dmes_v10_1.c344 const __le32 *fw_data; in mes_v10_1_allocate_ucode_buffer() local
350 fw_data = (const __le32 *)(adev->mes.fw->data + 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()
376 const __le32 *fw_data; in mes_v10_1_allocate_ucode_data_buffer() local
382 fw_data = (const __le32 *)(adev->mes.fw->data + 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()
/drivers/fpga/
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()
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()
/drivers/usb/host/
Dxhci-pci-renesas.c119 static int renesas_fw_verify(const void *fw_data, in renesas_fw_verify() argument
141 if (get_unaligned_le16(fw_data) != 0x55aa) { in renesas_fw_verify()
147 fw_version_pointer = get_unaligned_le16(fw_data + 4); in renesas_fw_verify()
153 fw_version = get_unaligned_le16(fw_data + fw_version_pointer); in renesas_fw_verify()
292 const u32 *fw_data = (const u32 *)fw->data; in renesas_fw_download() local
314 err = renesas_fw_download_image(pdev, fw_data, i, false); in renesas_fw_download()
430 const u32 *fw_data = (const u32 *)fw->data; in renesas_setup_rom() local
459 err = renesas_fw_download_image(pdev, fw_data, i, true); in renesas_setup_rom()
/drivers/gpu/drm/radeon/
Dcik_sdma.c475 const __le32 *fw_data; in cik_sdma_load_microcode() local
481 fw_data = (const __le32 *) in cik_sdma_load_microcode()
486 WREG32(SDMA0_UCODE_DATA + SDMA0_REGISTER_OFFSET, le32_to_cpup(fw_data++)); in cik_sdma_load_microcode()
490 fw_data = (const __le32 *) in cik_sdma_load_microcode()
495 WREG32(SDMA0_UCODE_DATA + SDMA1_REGISTER_OFFSET, le32_to_cpup(fw_data++)); in cik_sdma_load_microcode()
498 const __be32 *fw_data; in cik_sdma_load_microcode() local
501 fw_data = (const __be32 *)rdev->sdma_fw->data; in cik_sdma_load_microcode()
504 WREG32(SDMA0_UCODE_DATA + SDMA0_REGISTER_OFFSET, be32_to_cpup(fw_data++)); in cik_sdma_load_microcode()
508 fw_data = (const __be32 *)rdev->sdma_fw->data; in cik_sdma_load_microcode()
511 WREG32(SDMA0_UCODE_DATA + SDMA1_REGISTER_OFFSET, be32_to_cpup(fw_data++)); in cik_sdma_load_microcode()
Dcik.c1871 const __be32 *fw_data = NULL; in ci_mc_load_microcode() local
1908 fw_data = (const __be32 *)rdev->mc_fw->data; in ci_mc_load_microcode()
1942 WREG32(MC_SEQ_SUP_PGM, be32_to_cpup(fw_data++)); in ci_mc_load_microcode()
3910 const __le32 *fw_data; in cik_cp_gfx_load_microcode() local
3918 fw_data = (const __le32 *) in cik_cp_gfx_load_microcode()
3923 WREG32(CP_PFP_UCODE_DATA, le32_to_cpup(fw_data++)); in cik_cp_gfx_load_microcode()
3927 fw_data = (const __le32 *) in cik_cp_gfx_load_microcode()
3932 WREG32(CP_CE_UCODE_DATA, le32_to_cpup(fw_data++)); in cik_cp_gfx_load_microcode()
3936 fw_data = (const __be32 *) in cik_cp_gfx_load_microcode()
3941 WREG32(CP_ME_RAM_DATA, le32_to_cpup(fw_data++)); in cik_cp_gfx_load_microcode()
[all …]
/drivers/media/usb/as102/
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()
/drivers/net/wireless/ath/ath10k/
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()
/drivers/net/ethernet/qlogic/qed/
Dqed_init_ops.c293 array_data = cdev->fw_data->arr_data; in qed_init_cmd_array()
487 modes_tree_buf = cdev->fw_data->modes_tree_buf; in qed_init_cmd_mode_match()
542 num_init_ops = cdev->fw_data->init_ops_size; in qed_init_run()
543 init_ops = cdev->fw_data->init_ops; in qed_init_run()
609 struct qed_fw_data *fw = cdev->fw_data; in qed_init_fw_data()
/drivers/input/touchscreen/
Dsilead.c287 struct silead_fw_data *fw_data; in silead_ts_load_fw() local
298 fw_size = fw->size / sizeof(*fw_data); in silead_ts_load_fw()
299 fw_data = (struct silead_fw_data *)fw->data; in silead_ts_load_fw()
303 fw_data[i].offset, in silead_ts_load_fw()
305 (u8 *)&fw_data[i].val); in silead_ts_load_fw()
/drivers/net/wireless/ath/carl9170/
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()
/drivers/scsi/csiostor/
Dcsio_hw.c668 csio_hw_fw_dload(struct csio_hw *hw, uint8_t *fw_data, uint32_t size) in csio_hw_fw_dload() argument
675 const __be32 *p = (const __be32 *)fw_data; in csio_hw_fw_dload()
676 struct fw_hdr *hdr = (struct fw_hdr *)fw_data; in csio_hw_fw_dload()
731 memcpy(first_page, fw_data, SF_PAGE_SIZE); in csio_hw_fw_dload()
743 fw_data += SF_PAGE_SIZE; in csio_hw_fw_dload()
744 ret = csio_hw_write_flash(hw, addr, SF_PAGE_SIZE, fw_data); in csio_hw_fw_dload()
1323 const u8 *fw_data, uint32_t size, int32_t force) in csio_hw_fw_upgrade() argument
1325 const struct fw_hdr *fw_hdr = (const struct fw_hdr *)fw_data; in csio_hw_fw_upgrade()
1332 ret = csio_hw_fw_dload(hw, (uint8_t *) fw_data, size); in csio_hw_fw_upgrade()
2315 const u8 *fw_data, unsigned int fw_size, in csio_hw_prep_fw() argument
[all …]
/drivers/media/radio/wl128x/
Dfmdrv_common.c1235 u8 *fw_data; in fm_download_firmware() local
1249 fw_data = (void *)fw_entry->data; in fm_download_firmware()
1252 fw_header = (struct bts_header *)fw_data; in fm_download_firmware()
1261 fw_data += sizeof(struct bts_header); in fm_download_firmware()
1264 while (fw_data && fw_len > 0) { in fm_download_firmware()
1265 action = (struct bts_action *)fw_data; in fm_download_firmware()
1283 fw_data += (sizeof(struct bts_action) + (action->size)); in fm_download_firmware()
/drivers/gpu/drm/r128/
Dr128_cce.c153 const __be32 *fw_data; in r128_cce_load_microcode() local
180 fw_data = (const __be32 *)fw->data; in r128_cce_load_microcode()
184 be32_to_cpup(&fw_data[i * 2])); in r128_cce_load_microcode()
186 be32_to_cpup(&fw_data[i * 2 + 1])); in r128_cce_load_microcode()
/drivers/net/wireless/mediatek/mt76/
Dmt76x02_usb_mcu.c231 const void *fw_data, int len, u32 dst_addr) in __mt76x02u_mcu_fw_send_data() argument
242 memcpy(data + sizeof(info), fw_data, len); in __mt76x02u_mcu_fw_send_data()
/drivers/misc/habanalabs/common/
Dfirmware_if.c32 const u64 *fw_data; in hl_fw_load_fw_to_device() local
60 fw_data = (const u64 *) fw->data; in hl_fw_load_fw_to_device()
62 memcpy_toio(dst, fw_data, fw_size); in hl_fw_load_fw_to_device()
/drivers/net/wireless/ath/ath9k/
Dhif_usb.h119 const void *fw_data; member
/drivers/net/wireless/marvell/mwifiex/
Dusb.h134 struct fw_data { struct

123