/linux-6.3-rc2/drivers/net/wireless/intersil/orinoco/ |
A D | fw.c | 105 const struct firmware *fw_entry; in orinoco_dl_firmware() local 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 304 fw_entry->data + fw_entry->size, 0); in symbol_dl_firmware() 307 release_firmware(fw_entry); in symbol_dl_firmware() 323 fw_entry->data + fw_entry->size, 1); in symbol_dl_firmware() 325 release_firmware(fw_entry); in symbol_dl_firmware() [all …]
|
/linux-6.3-rc2/drivers/staging/rtl8192u/ |
A 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()
|
/linux-6.3-rc2/Documentation/driver-api/firmware/ |
A D | request_firmware.rst | 8 if(request_firmware(&fw_entry, $FIRMWARE, device) == 0) 9 copy_fw_to_device(fw_entry->data, fw_entry->size); 10 release_firmware(fw_entry); 76 the driver has the firmware image accessible in fw_entry->{data,size}. 77 If something went wrong request_firmware() returns non-zero and fw_entry 79 can call release_firmware(fw_entry) to release the firmware image
|
/linux-6.3-rc2/drivers/misc/ti-st/ |
A 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 …]
|
/linux-6.3-rc2/drivers/net/wireless/rsi/ |
A D | rsi_91x_hal.c | 891 const struct firmware *fw_entry = NULL; in rsi_load_9113_firmware() local 921 content_size = fw_entry->size; in rsi_load_9113_firmware() 926 fw_entry->data[LMAC_VER_OFFSET_9113] & 0xFF; in rsi_load_9113_firmware() 928 fw_entry->data[LMAC_VER_OFFSET_9113 + 1] & 0xFF; in rsi_load_9113_firmware() 930 fw_entry->data[LMAC_VER_OFFSET_9113 + 2] & 0xFF; in rsi_load_9113_firmware() 994 release_firmware(fw_entry); in rsi_load_9113_firmware() 999 release_firmware(fw_entry); in rsi_load_9113_firmware() 1007 const struct firmware *fw_entry; in rsi_load_9116_firmware() local 1043 ta_firmware = kmemdup(fw_entry->data, fw_entry->size, GFP_KERNEL); in rsi_load_9116_firmware() 1049 instructions_sz = fw_entry->size; in rsi_load_9116_firmware() [all …]
|
/linux-6.3-rc2/drivers/media/usb/go7007/ |
A 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()
|
A 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()
|
/linux-6.3-rc2/sound/pci/pcxhr/ |
A D | pcxhr_hwdep.c | 370 const struct firmware *fw_entry; in pcxhr_setup_firmware() local 378 if (request_firmware(&fw_entry, path, &mgr->pci->dev)) { in pcxhr_setup_firmware() 385 err = pcxhr_dsp_load(mgr, i, fw_entry); in pcxhr_setup_firmware() 386 release_firmware(fw_entry); in pcxhr_setup_firmware()
|
/linux-6.3-rc2/drivers/soc/ixp4xx/ |
A D | ixp4xx-npe.c | 510 const struct firmware *fw_entry; in npe_load_firmware() local 536 if ((err = request_firmware(&fw_entry, name, dev)) != 0) in npe_load_firmware() 540 if (fw_entry->size < sizeof(struct dl_image)) { in npe_load_firmware() 544 image = (struct dl_image*)fw_entry->data; in npe_load_firmware() 559 if ((image->size * 4 + sizeof(struct dl_image)) != fw_entry->size) { in npe_load_firmware() 657 release_firmware(fw_entry); in npe_load_firmware() 666 release_firmware(fw_entry); in npe_load_firmware()
|
/linux-6.3-rc2/drivers/crypto/cavium/cpt/ |
A 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()
|
/linux-6.3-rc2/drivers/input/touchscreen/ |
A 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()
|
/linux-6.3-rc2/sound/sh/ |
A D | aica.c | 513 const struct firmware *fw_entry; in load_aica_firmware() local 515 err = request_firmware(&fw_entry, "aica_firmware.bin", &pd->dev); in load_aica_firmware() 520 spu_memload(0, fw_entry->data, fw_entry->size); in load_aica_firmware() 522 release_firmware(fw_entry); in load_aica_firmware()
|
/linux-6.3-rc2/sound/pci/mixart/ |
A D | mixart_hwdep.c | 564 const struct firmware *fw_entry; in snd_mixart_setup_firmware() local 569 if (request_firmware(&fw_entry, path, &mgr->pci->dev)) { in snd_mixart_setup_firmware() 575 err = mixart_dsp_load(mgr, i, fw_entry); in snd_mixart_setup_firmware() 576 release_firmware(fw_entry); in snd_mixart_setup_firmware()
|
/linux-6.3-rc2/drivers/video/fbdev/ |
A 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()
|
A 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()
|
/linux-6.3-rc2/drivers/net/wireless/intel/iwlwifi/ |
A D | iwl-nvm-parse.c | 1732 const struct firmware *fw_entry; in iwl_read_external_nvm() local 1765 ret = request_firmware(&fw_entry, nvm_file_name, trans->dev); in iwl_read_external_nvm() 1773 nvm_file_name, fw_entry->size); in iwl_read_external_nvm() 1775 if (fw_entry->size > MAX_NVM_FILE_LEN) { in iwl_read_external_nvm() 1781 eof = fw_entry->data + fw_entry->size; in iwl_read_external_nvm() 1782 dword_buff = (const __le32 *)fw_entry->data; in iwl_read_external_nvm() 1791 if (fw_entry->size > NVM_HEADER_SIZE && in iwl_read_external_nvm() 1794 file_sec = (const void *)(fw_entry->data + NVM_HEADER_SIZE); in iwl_read_external_nvm() 1807 file_sec = (const void *)fw_entry->data; in iwl_read_external_nvm() 1878 release_firmware(fw_entry); in iwl_read_external_nvm()
|
/linux-6.3-rc2/drivers/staging/ks7010/ |
A 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()
|
/linux-6.3-rc2/sound/soc/sh/ |
A D | siu_dai.c | 718 const struct firmware *fw_entry; in siu_probe() local 729 ret = request_firmware(&fw_entry, "siu_spb.bin", &pdev->dev); in siu_probe() 737 memcpy(&info->fw, fw_entry->data, fw_entry->size); in siu_probe() 739 release_firmware(fw_entry); in siu_probe()
|
/linux-6.3-rc2/sound/pci/echoaudio/ |
A D | echoaudio.h | 442 static int get_firmware(const struct firmware **fw_entry, 444 static void free_firmware(const struct firmware *fw_entry,
|
/linux-6.3-rc2/drivers/media/usb/ttusb-dec/ |
A 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()
|
/linux-6.3-rc2/drivers/staging/wlan-ng/ |
A 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()
|
/linux-6.3-rc2/drivers/media/radio/wl128x/ |
A D | fmdrv_common.c | 1232 const struct firmware *fw_entry; in fm_download_firmware() local 1242 ret = request_firmware(&fw_entry, fw_name, in fm_download_firmware() 1248 fmdbg("Firmware(%s) length : %zu bytes\n", fw_name, fw_entry->size); in fm_download_firmware() 1250 fw_data = (void *)fw_entry->data; in fm_download_firmware() 1251 fw_len = fw_entry->size; in fm_download_firmware() 1289 release_firmware(fw_entry); in fm_download_firmware()
|
/linux-6.3-rc2/drivers/net/wireless/ath/ath6kl/ |
A 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()
|
/linux-6.3-rc2/drivers/usb/atm/ |
A 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()
|
/linux-6.3-rc2/drivers/media/usb/pvrusb2/ |
A 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() 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() 1479 release_firmware(fw_entry); in pvr2_upload_firmware1() 1559 release_firmware(fw_entry); in pvr2_upload_firmware2() 1565 fw_len = fw_entry->size; in pvr2_upload_firmware2() 1571 release_firmware(fw_entry); in pvr2_upload_firmware2() 1578 release_firmware(fw_entry); in pvr2_upload_firmware2() [all …]
|