Home
last modified time | relevance | path

Searched refs:fw_entry (Results 1 – 25 of 33) sorted by relevance

12

/drivers/net/wireless/intersil/orinoco/
Dfw.c105 const struct firmware *fw_entry; in orinoco_dl_firmware() local
132 err = request_firmware(&fw_entry, firmware, priv->dev); in orinoco_dl_firmware()
140 fw_entry = orinoco_cached_fw_get(priv, false); in orinoco_dl_firmware()
142 hdr = (const struct orinoco_fw_header *) fw_entry->data; in orinoco_dl_firmware()
144 fw_err = validate_fw(hdr, fw_entry->size); in orinoco_dl_firmware()
159 first_block = (fw_entry->data + in orinoco_dl_firmware()
162 end = fw_entry->data + fw_entry->size; in orinoco_dl_firmware()
170 first_block = (fw_entry->data + in orinoco_dl_firmware()
192 release_firmware(fw_entry); in orinoco_dl_firmware()
292 const struct firmware *fw_entry; in symbol_dl_firmware() local
[all …]
Dorinoco_usb.c1568 const struct firmware *fw_entry = NULL; in ezusb_probe() local
1658 if (request_firmware(&fw_entry, "orinoco_ezusb_fw", in ezusb_probe()
1660 firmware.size = fw_entry->size; in ezusb_probe()
1661 firmware.code = fw_entry->data; in ezusb_probe()
1711 if (fw_entry) { in ezusb_probe()
1714 release_firmware(fw_entry); in ezusb_probe()
/drivers/staging/rtl8192u/
Dr819xU_firmware.c210 const struct firmware *fw_entry; in init_firmware() local
242 rc = request_firmware(&fw_entry, fw_name[init_step], &priv->udev->dev); in init_firmware()
248 if (fw_entry->size > sizeof(pfirmware->firmware_buf)) { in init_firmware()
254 memcpy(pfirmware->firmware_buf, fw_entry->data, fw_entry->size); in init_firmware()
256 file_length = fw_entry->size; in init_firmware()
259 memcpy(&pfirmware->firmware_buf[128], fw_entry->data, fw_entry->size); in init_firmware()
261 file_length = fw_entry->size + 128; in init_firmware()
279 release_firmware(fw_entry); in init_firmware()
/drivers/misc/ti-st/
Dst_kim.c295 request_firmware(&kim_gdata->fw_entry, bts_scr_name, in download_firmware()
297 if (unlikely((err != 0) || (kim_gdata->fw_entry->data == NULL) || in download_firmware()
298 (kim_gdata->fw_entry->size == 0))) { in download_firmware()
303 ptr = (void *)kim_gdata->fw_entry->data; in download_firmware()
304 len = kim_gdata->fw_entry->size; in download_firmware()
345 release_firmware(kim_gdata->fw_entry); in download_firmware()
356 release_firmware(kim_gdata->fw_entry); in download_firmware()
374 release_firmware(kim_gdata->fw_entry); in download_firmware()
385 release_firmware(kim_gdata->fw_entry); in download_firmware()
397 release_firmware(kim_gdata->fw_entry); in download_firmware()
[all …]
/drivers/net/wireless/rsi/
Drsi_91x_hal.c894 const struct firmware *fw_entry = NULL; in rsi_load_9113_firmware() local
918 status = request_firmware(&fw_entry, metadata_p->name, adapter->device); in rsi_load_9113_firmware()
924 content_size = fw_entry->size; in rsi_load_9113_firmware()
929 fw_entry->data[LMAC_VER_OFFSET_9113] & 0xFF; in rsi_load_9113_firmware()
931 fw_entry->data[LMAC_VER_OFFSET_9113 + 1] & 0xFF; in rsi_load_9113_firmware()
933 fw_entry->data[LMAC_VER_OFFSET_9113 + 2] & 0xFF; in rsi_load_9113_firmware()
935 fw_entry->data[LMAC_VER_OFFSET_9113 + 3] & 0xFF; in rsi_load_9113_firmware()
937 fw_entry->data[LMAC_VER_OFFSET_9113 + 4] & 0xFF; in rsi_load_9113_firmware()
941 status = bl_write_header(adapter, (u8 *)fw_entry->data, content_size); in rsi_load_9113_firmware()
983 status = auto_fw_upgrade(adapter, (u8 *)fw_entry->data, content_size); in rsi_load_9113_firmware()
[all …]
/drivers/media/usb/go7007/
Dgo7007-driver.c80 const struct firmware *fw_entry; in go7007_load_encoder() local
87 if (request_firmware(&fw_entry, fw_name, go->dev)) { in go7007_load_encoder()
91 if (fw_entry->size < 16 || memcmp(fw_entry->data, "WISGO7007FW", 11)) { in go7007_load_encoder()
93 release_firmware(fw_entry); in go7007_load_encoder()
96 fw_len = fw_entry->size - 16; in go7007_load_encoder()
97 bounce = kmemdup(fw_entry->data + 16, fw_len, GFP_KERNEL); in go7007_load_encoder()
100 release_firmware(fw_entry); in go7007_load_encoder()
103 release_firmware(fw_entry); in go7007_load_encoder()
Dgo7007-fw.c1545 const struct firmware *fw_entry; in go7007_construct_fw_image() local
1568 if (request_firmware(&fw_entry, GO7007_FW_NAME, go->dev)) { in go7007_construct_fw_image()
1578 src = (__le16 *)fw_entry->data; in go7007_construct_fw_image()
1579 srclen = fw_entry->size / 2; in go7007_construct_fw_image()
1612 release_firmware(fw_entry); in go7007_construct_fw_image()
1619 release_firmware(fw_entry); in go7007_construct_fw_image()
/drivers/soc/ixp4xx/
Dixp4xx-npe.c503 const struct firmware *fw_entry; in npe_load_firmware() local
529 if ((err = request_firmware(&fw_entry, name, dev)) != 0) in npe_load_firmware()
533 if (fw_entry->size < sizeof(struct dl_image)) { in npe_load_firmware()
537 image = (struct dl_image*)fw_entry->data; in npe_load_firmware()
552 if ((image->size * 4 + sizeof(struct dl_image)) != fw_entry->size) { in npe_load_firmware()
650 release_firmware(fw_entry); in npe_load_firmware()
659 release_firmware(fw_entry); in npe_load_firmware()
/drivers/net/wireless/intersil/prism54/
Dislpci_dev.c78 const struct firmware *fw_entry = NULL; in isl_upload_firmware() local
82 rc = request_firmware(&fw_entry, priv->firmware, PRISM_FW_PDEV); in isl_upload_firmware()
92 fw_ptr = (u32 *) fw_entry->data; in isl_upload_firmware()
93 fw_len = fw_entry->size; in isl_upload_firmware()
99 release_firmware(fw_entry); in isl_upload_firmware()
139 priv->ndev->name, fw_entry->data + 40); in isl_upload_firmware()
141 release_firmware(fw_entry); in isl_upload_firmware()
/drivers/net/wireless/intel/iwlwifi/
Diwl-nvm-parse.c1368 const struct firmware *fw_entry; in iwl_read_external_nvm() local
1401 ret = request_firmware(&fw_entry, nvm_file_name, trans->dev); in iwl_read_external_nvm()
1409 nvm_file_name, fw_entry->size); in iwl_read_external_nvm()
1411 if (fw_entry->size > MAX_NVM_FILE_LEN) { in iwl_read_external_nvm()
1417 eof = fw_entry->data + fw_entry->size; in iwl_read_external_nvm()
1418 dword_buff = (__le32 *)fw_entry->data; in iwl_read_external_nvm()
1427 if (fw_entry->size > NVM_HEADER_SIZE && in iwl_read_external_nvm()
1430 file_sec = (void *)(fw_entry->data + NVM_HEADER_SIZE); in iwl_read_external_nvm()
1443 file_sec = (void *)fw_entry->data; in iwl_read_external_nvm()
1514 release_firmware(fw_entry); in iwl_read_external_nvm()
/drivers/input/touchscreen/
Dhideep.c866 const struct firmware *fw_entry; in hideep_update_fw() local
880 error = request_firmware(&fw_entry, fw_name, dev); in hideep_update_fw()
887 if (fw_entry->size % sizeof(__be32)) { in hideep_update_fw()
888 dev_err(dev, "invalid firmware size %zu\n", fw_entry->size); in hideep_update_fw()
893 if (fw_entry->size > ts->fw_size) { in hideep_update_fw()
895 fw_entry->size, ts->fw_size); in hideep_update_fw()
903 error = hideep_update_firmware(ts, (const __be32 *)fw_entry->data, in hideep_update_fw()
904 fw_entry->size); in hideep_update_fw()
910 release_firmware(fw_entry); in hideep_update_fw()
/drivers/staging/gs_fpgaboot/
Dgs_fpgaboot.c133 bitdata = (u8 *)fimage->fw_entry->data; in gs_read_bitstream()
191 err = request_firmware(&fimage->fw_entry, fw_file, &firmware_pdev->dev); in gs_load_image()
268 release_firmware(fimage->fw_entry); in gs_release_image()
Dgs_fpgaboot.h29 const struct firmware *fw_entry; member
/drivers/crypto/cavium/cpt/
Dcptpf_main.c254 const struct firmware *fw_entry; in cpt_ucode_load_fw() local
261 ret = request_firmware(&fw_entry, fw, dev); in cpt_ucode_load_fw()
265 ucode = (struct ucode_header *)fw_entry->data; in cpt_ucode_load_fw()
267 memcpy(mcode->version, (u8 *)fw_entry->data, CPT_UCODE_VERSION_SZ); in cpt_ucode_load_fw()
288 memcpy((void *)mcode->code, (void *)(fw_entry->data + sizeof(*ucode)), in cpt_ucode_load_fw()
315 release_firmware(fw_entry); in cpt_ucode_load_fw()
/drivers/video/fbdev/
Dbroadsheetfb.c740 const struct firmware *fw_entry; in broadsheet_loadstore_waveform() local
745 err = request_firmware(&fw_entry, "broadsheet.wbf", dev); in broadsheet_loadstore_waveform()
752 if ((fw_entry->size < 8*1024) || (fw_entry->size > 64*1024)) { in broadsheet_loadstore_waveform()
759 err = broadsheet_store_waveform_to_spiflash(par, fw_entry->data, in broadsheet_loadstore_waveform()
760 fw_entry->size); in broadsheet_loadstore_waveform()
768 dev_info(dev, "Stored broadsheet waveform, size %zd\n", fw_entry->size); in broadsheet_loadstore_waveform()
773 release_firmware(fw_entry); in broadsheet_loadstore_waveform()
Dmetronomefb.c582 const struct firmware *fw_entry; in metronomefb_probe() local
681 retval = request_firmware(&fw_entry, "metronome.wbf", &dev->dev); in metronomefb_probe()
687 retval = load_waveform((u8 *) fw_entry->data, fw_entry->size, 3, 31, in metronomefb_probe()
689 release_firmware(fw_entry); in metronomefb_probe()
/drivers/staging/ks7010/
Dks7010_sdio.c697 const struct firmware *fw_entry) in ks7010_copy_firmware() argument
710 length = fw_entry->size; in ks7010_copy_firmware()
723 memcpy(rom_buf, fw_entry->data + n, size); in ks7010_copy_firmware()
758 const struct firmware *fw_entry = NULL; in ks7010_upload_firmware() local
772 ret = request_firmware(&fw_entry, ROM_FILE, in ks7010_upload_firmware()
777 ret = ks7010_copy_firmware(priv, fw_entry); in ks7010_upload_firmware()
800 release_firmware(fw_entry); in ks7010_upload_firmware()
/drivers/media/usb/ttusb-dec/
Dttusb_dec.c1322 const struct firmware *fw_entry = NULL; in ttusb_dec_boot_dsp() local
1326 result = request_firmware(&fw_entry, dec->firmware_name, &dec->udev->dev); in ttusb_dec_boot_dsp()
1333 firmware = fw_entry->data; in ttusb_dec_boot_dsp()
1334 firmware_size = fw_entry->size; in ttusb_dec_boot_dsp()
1339 release_firmware(fw_entry); in ttusb_dec_boot_dsp()
1352 release_firmware(fw_entry); in ttusb_dec_boot_dsp()
1368 release_firmware(fw_entry); in ttusb_dec_boot_dsp()
1377 release_firmware(fw_entry); in ttusb_dec_boot_dsp()
1408 release_firmware(fw_entry); in ttusb_dec_boot_dsp()
/drivers/staging/wlan-ng/
Dprism2fw.c210 const struct firmware *fw_entry = NULL; in prism2_fwtry() local
214 if (request_ihex_firmware(&fw_entry, in prism2_fwtry()
225 PRISM2_USB_FWFILE, fw_entry->size); in prism2_fwtry()
226 prism2_fwapply((const struct ihex_binrec *)fw_entry->data, wlandev); in prism2_fwtry()
228 release_firmware(fw_entry); in prism2_fwtry()
/drivers/media/radio/wl128x/
Dfmdrv_common.c1231 const struct firmware *fw_entry; in fm_download_firmware() local
1241 ret = request_firmware(&fw_entry, fw_name, in fm_download_firmware()
1247 fmdbg("Firmware(%s) length : %zu bytes\n", fw_name, fw_entry->size); in fm_download_firmware()
1249 fw_data = (void *)fw_entry->data; in fm_download_firmware()
1250 fw_len = fw_entry->size; in fm_download_firmware()
1288 release_firmware(fw_entry); in fm_download_firmware()
/drivers/net/wireless/ath/ath6kl/
Dinit.c677 const struct firmware *fw_entry; in ath6kl_get_fw() local
680 ret = request_firmware(&fw_entry, filename, ar->dev); in ath6kl_get_fw()
684 *fw_len = fw_entry->size; in ath6kl_get_fw()
685 *fw = kmemdup(fw_entry->data, fw_entry->size, GFP_KERNEL); in ath6kl_get_fw()
690 release_firmware(fw_entry); in ath6kl_get_fw()
/drivers/media/usb/pvrusb2/
Dpvrusb2-hdw.c1351 const struct firmware **fw_entry, in pvr2_locate_firmware() argument
1359 ret = request_firmware(fw_entry, in pvr2_locate_firmware()
1408 const struct firmware *fw_entry = NULL; in pvr2_upload_firmware1() local
1426 ret = pvr2_locate_firmware(hdw,&fw_entry,"fx2 controller", in pvr2_upload_firmware1()
1437 fwsize = fw_entry->size; in pvr2_upload_firmware1()
1450 release_firmware(fw_entry); in pvr2_upload_firmware1()
1456 release_firmware(fw_entry); in pvr2_upload_firmware1()
1468 memcpy(fw_ptr, fw_entry->data + address, 0x800); in pvr2_upload_firmware1()
1479 release_firmware(fw_entry); in pvr2_upload_firmware1()
1502 const struct firmware *fw_entry = NULL; in pvr2_upload_firmware2() local
[all …]
/drivers/usb/atm/
Dueagle-atm.c599 static void uea_upload_pre_firmware(const struct firmware *fw_entry, in uea_upload_pre_firmware() argument
609 if (!fw_entry) { in uea_upload_pre_firmware()
614 pfw = fw_entry->data; in uea_upload_pre_firmware()
615 size = fw_entry->size; in uea_upload_pre_firmware()
671 release_firmware(fw_entry); in uea_upload_pre_firmware()
1908 const struct firmware *fw_entry; in load_XILINX_firmware() local
1916 ret = request_firmware(&fw_entry, fw_name, &sc->usb_dev->dev); in load_XILINX_firmware()
1923 pfw = fw_entry->data; in load_XILINX_firmware()
1924 size = fw_entry->size; in load_XILINX_firmware()
1957 release_firmware(fw_entry); in load_XILINX_firmware()
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_init.c696 struct qlcnic_flt_entry fw_entry; in qlcnic_check_flash_fw_ver() local
702 &fw_entry); in qlcnic_check_flash_fw_ver()
705 &fw_entry); in qlcnic_check_flash_fw_ver()
709 qlcnic_rom_fast_read(adapter, fw_entry.start_addr + 4, in qlcnic_check_flash_fw_ver()
/drivers/net/wireless/ath/ath11k/
Dqmi.c1892 const struct firmware *fw_entry; in ath11k_qmi_prepare_bdf_download() local
1912 fw_entry = ath11k_core_firmware_request(ab, ATH11K_DEFAULT_CAL_FILE); in ath11k_qmi_prepare_bdf_download()
1913 if (IS_ERR(fw_entry)) { in ath11k_qmi_prepare_bdf_download()
1914 ret = PTR_ERR(fw_entry); in ath11k_qmi_prepare_bdf_download()
1921 fw_entry->size); in ath11k_qmi_prepare_bdf_download()
1924 fw_entry->data, fw_size); in ath11k_qmi_prepare_bdf_download()
1926 release_firmware(fw_entry); in ath11k_qmi_prepare_bdf_download()

12