/drivers/net/wireless/intersil/orinoco/ |
D | fw.c | 105 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 …]
|
D | orinoco_usb.c | 1612 const struct firmware *fw_entry = NULL; in ezusb_probe() local 1702 if (request_firmware(&fw_entry, "orinoco_ezusb_fw", in ezusb_probe() 1704 firmware.size = fw_entry->size; in ezusb_probe() 1705 firmware.code = fw_entry->data; in ezusb_probe() 1755 if (fw_entry) { in ezusb_probe() 1758 release_firmware(fw_entry); in ezusb_probe()
|
/drivers/staging/rtl8192u/ |
D | r819xU_firmware.c | 210 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/ |
D | st_kim.c | 295 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/ |
D | rsi_91x_hal.c | 894 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/ |
D | go7007-driver.c | 80 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()
|
D | go7007-fw.c | 1545 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/ |
D | ixp4xx-npe.c | 505 const struct firmware *fw_entry; in npe_load_firmware() local 531 if ((err = request_firmware(&fw_entry, name, dev)) != 0) in npe_load_firmware() 535 if (fw_entry->size < sizeof(struct dl_image)) { in npe_load_firmware() 539 image = (struct dl_image*)fw_entry->data; in npe_load_firmware() 554 if ((image->size * 4 + sizeof(struct dl_image)) != fw_entry->size) { in npe_load_firmware() 652 release_firmware(fw_entry); in npe_load_firmware() 661 release_firmware(fw_entry); in npe_load_firmware()
|
/drivers/input/touchscreen/ |
D | hideep.c | 866 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/ |
D | gs_fpgaboot.c | 133 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()
|
D | gs_fpgaboot.h | 29 const struct firmware *fw_entry; member
|
/drivers/crypto/cavium/cpt/ |
D | cptpf_main.c | 253 const struct firmware *fw_entry; in cpt_ucode_load_fw() local 260 ret = request_firmware(&fw_entry, fw, dev); in cpt_ucode_load_fw() 264 ucode = (struct ucode_header *)fw_entry->data; in cpt_ucode_load_fw() 266 memcpy(mcode->version, (u8 *)fw_entry->data, CPT_UCODE_VERSION_SZ); in cpt_ucode_load_fw() 287 memcpy((void *)mcode->code, (void *)(fw_entry->data + sizeof(*ucode)), in cpt_ucode_load_fw() 314 release_firmware(fw_entry); in cpt_ucode_load_fw()
|
/drivers/net/wireless/intel/iwlwifi/ |
D | iwl-nvm-parse.c | 1464 const struct firmware *fw_entry; in iwl_read_external_nvm() local 1497 ret = request_firmware(&fw_entry, nvm_file_name, trans->dev); in iwl_read_external_nvm() 1505 nvm_file_name, fw_entry->size); in iwl_read_external_nvm() 1507 if (fw_entry->size > MAX_NVM_FILE_LEN) { in iwl_read_external_nvm() 1513 eof = fw_entry->data + fw_entry->size; in iwl_read_external_nvm() 1514 dword_buff = (__le32 *)fw_entry->data; in iwl_read_external_nvm() 1523 if (fw_entry->size > NVM_HEADER_SIZE && in iwl_read_external_nvm() 1526 file_sec = (void *)(fw_entry->data + NVM_HEADER_SIZE); in iwl_read_external_nvm() 1539 file_sec = (void *)fw_entry->data; in iwl_read_external_nvm() 1610 release_firmware(fw_entry); in iwl_read_external_nvm()
|
/drivers/video/fbdev/ |
D | broadsheetfb.c | 740 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()
|
D | metronomefb.c | 582 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/ |
D | ks7010_sdio.c | 697 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/ |
D | ttusb_dec.c | 1315 const struct firmware *fw_entry = NULL; in ttusb_dec_boot_dsp() local 1319 result = request_firmware(&fw_entry, dec->firmware_name, &dec->udev->dev); in ttusb_dec_boot_dsp() 1326 firmware = fw_entry->data; in ttusb_dec_boot_dsp() 1327 firmware_size = fw_entry->size; in ttusb_dec_boot_dsp() 1332 release_firmware(fw_entry); in ttusb_dec_boot_dsp() 1345 release_firmware(fw_entry); in ttusb_dec_boot_dsp() 1361 release_firmware(fw_entry); in ttusb_dec_boot_dsp() 1370 release_firmware(fw_entry); in ttusb_dec_boot_dsp() 1401 release_firmware(fw_entry); in ttusb_dec_boot_dsp()
|
/drivers/staging/wlan-ng/ |
D | prism2fw.c | 210 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/ |
D | fmdrv_common.c | 1231 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/ |
D | init.c | 677 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/ |
D | pvrusb2-hdw.c | 1351 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/ |
D | ueagle-atm.c | 599 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/ |
D | qlcnic_init.c | 694 struct qlcnic_flt_entry fw_entry; in qlcnic_check_flash_fw_ver() local 700 &fw_entry); in qlcnic_check_flash_fw_ver() 703 &fw_entry); in qlcnic_check_flash_fw_ver() 707 qlcnic_rom_fast_read(adapter, fw_entry.start_addr + 4, in qlcnic_check_flash_fw_ver()
|
/drivers/net/wireless/ath/ath11k/ |
D | qmi.c | 1925 const struct firmware *fw_entry; in ath11k_qmi_prepare_bdf_download() local 1945 fw_entry = ath11k_core_firmware_request(ab, ATH11K_DEFAULT_CAL_FILE); in ath11k_qmi_prepare_bdf_download() 1946 if (IS_ERR(fw_entry)) { in ath11k_qmi_prepare_bdf_download() 1947 ret = PTR_ERR(fw_entry); in ath11k_qmi_prepare_bdf_download() 1954 fw_entry->size); in ath11k_qmi_prepare_bdf_download() 1957 fw_entry->data, fw_size); in ath11k_qmi_prepare_bdf_download() 1959 release_firmware(fw_entry); in ath11k_qmi_prepare_bdf_download()
|
/drivers/net/wireless/zydas/ |
D | zd1201.c | 50 const struct firmware *fw_entry; in zd1201_fw_upload() local 63 err = request_firmware(&fw_entry, fwfile, &dev->dev); in zd1201_fw_upload() 71 data = fw_entry->data; in zd1201_fw_upload() 72 len = fw_entry->size; in zd1201_fw_upload() 114 release_firmware(fw_entry); in zd1201_fw_upload()
|