/drivers/net/wireless/ralink/rt2x00/ |
D | rt2x00firmware.c | 34 const struct firmware *fw; in rt2x00lib_request_firmware() local 51 retval = request_firmware(&fw, fw_name, device); in rt2x00lib_request_firmware() 57 if (!fw || !fw->size || !fw->data) { in rt2x00lib_request_firmware() 59 release_firmware(fw); in rt2x00lib_request_firmware() 64 fw->data[fw->size - 4], fw->data[fw->size - 3]); in rt2x00lib_request_firmware() 67 fw->data[fw->size - 4], fw->data[fw->size - 3]); in rt2x00lib_request_firmware() 69 retval = rt2x00dev->ops->lib->check_firmware(rt2x00dev, fw->data, fw->size); in rt2x00lib_request_firmware() 78 fw->size); in rt2x00lib_request_firmware() 85 rt2x00dev->fw = fw; in rt2x00lib_request_firmware() 90 release_firmware(fw); in rt2x00lib_request_firmware() [all …]
|
/drivers/gpu/host1x/ |
D | job.c | 365 static int check_register(struct host1x_firewall *fw, unsigned long offset) in check_register() argument 367 if (!fw->job->is_addr_reg) in check_register() 370 if (fw->job->is_addr_reg(fw->dev, fw->class, offset)) { in check_register() 371 if (!fw->num_relocs) in check_register() 374 if (!check_reloc(fw->reloc, fw->cmdbuf, fw->offset)) in check_register() 377 fw->num_relocs--; in check_register() 378 fw->reloc++; in check_register() 382 if (fw->class != HOST1X_CLASS_HOST1X) in check_register() 385 if (!fw->num_waitchks) in check_register() 388 if (!check_wait(fw->waitchk, fw->cmdbuf, fw->offset)) in check_register() [all …]
|
/drivers/firmware/ |
D | raspberrypi.c | 35 struct rpi_firmware *fw = container_of(cl, struct rpi_firmware, cl); in response_callback() local 36 complete(&fw->c); in response_callback() 44 rpi_firmware_transaction(struct rpi_firmware *fw, u32 chan, u32 data) in rpi_firmware_transaction() argument 52 reinit_completion(&fw->c); in rpi_firmware_transaction() 53 ret = mbox_send_message(fw->chan, &message); in rpi_firmware_transaction() 55 wait_for_completion(&fw->c); in rpi_firmware_transaction() 58 dev_err(fw->cl.dev, "mbox_send_message returned %d\n", ret); in rpi_firmware_transaction() 79 int rpi_firmware_property_list(struct rpi_firmware *fw, in rpi_firmware_property_list() argument 91 buf = dma_alloc_coherent(fw->cl.dev, PAGE_ALIGN(size), &bus_addr, in rpi_firmware_property_list() 105 ret = rpi_firmware_transaction(fw, MBOX_CHAN_PROPERTY, bus_addr); in rpi_firmware_property_list() [all …]
|
/drivers/gpu/drm/i915/ |
D | intel_huc.c | 81 struct intel_uc_fw *huc_fw = &dev_priv->huc.fw; in huc_ucode_xfer() 146 huc->fw.path = NULL; in intel_huc_select_fw() 147 huc->fw.fetch_status = INTEL_UC_FIRMWARE_NONE; in intel_huc_select_fw() 148 huc->fw.load_status = INTEL_UC_FIRMWARE_NONE; in intel_huc_select_fw() 149 huc->fw.type = INTEL_UC_FW_TYPE_HUC; in intel_huc_select_fw() 152 huc->fw.path = i915.huc_firmware_path; in intel_huc_select_fw() 153 huc->fw.major_ver_wanted = 0; in intel_huc_select_fw() 154 huc->fw.minor_ver_wanted = 0; in intel_huc_select_fw() 156 huc->fw.path = I915_SKL_HUC_UCODE; in intel_huc_select_fw() 157 huc->fw.major_ver_wanted = SKL_HUC_FW_MAJOR; in intel_huc_select_fw() [all …]
|
D | intel_guc_loader.c | 192 struct intel_uc_fw *guc_fw = &dev_priv->guc.fw; in guc_ucode_xfer_dma() 264 struct intel_uc_fw *guc_fw = &dev_priv->guc.fw; in guc_ucode_xfer() 341 const char *fw_path = guc->fw.path; in intel_guc_init_hw() 346 intel_uc_fw_status_repr(guc->fw.fetch_status), in intel_guc_init_hw() 347 intel_uc_fw_status_repr(guc->fw.load_status)); in intel_guc_init_hw() 349 if (guc->fw.fetch_status != INTEL_UC_FIRMWARE_SUCCESS) in intel_guc_init_hw() 352 guc->fw.load_status = INTEL_UC_FIRMWARE_PENDING; in intel_guc_init_hw() 355 intel_uc_fw_status_repr(guc->fw.fetch_status), in intel_guc_init_hw() 356 intel_uc_fw_status_repr(guc->fw.load_status)); in intel_guc_init_hw() 363 guc->fw.load_status = INTEL_UC_FIRMWARE_SUCCESS; in intel_guc_init_hw() [all …]
|
/drivers/net/wireless/ath/carl9170/ |
D | fw.c | 38 carl9170fw_for_each_hdr(iter, ar->fw.desc) { in carl9170_fw_find_desc() 208 ar->fw.tx_seq_table = le32_to_cpu(txsq_desc->seq_table_addr); in carl9170_fw_tx_sequence() 209 if (!valid_cpu_addr(ar->fw.tx_seq_table)) in carl9170_fw_tx_sequence() 212 ar->fw.tx_seq_table = 0; in carl9170_fw_tx_sequence() 221 if (ar->fw.vif_num < 2) in carl9170_fw_set_if_combinations() 224 ar->if_comb_limits[0].max = ar->fw.vif_num; in carl9170_fw_set_if_combinations() 228 ar->if_combs[0].max_interfaces = ar->fw.vif_num; in carl9170_fw_set_if_combinations() 261 ar->fw.api_version = otus_desc->api_ver; in carl9170_fw() 263 if (ar->fw.api_version < CARL9170FW_API_MIN_VER || in carl9170_fw() 264 ar->fw.api_version > CARL9170FW_API_MAX_VER) { in carl9170_fw() [all …]
|
/drivers/nfc/s3fwrn5/ |
D | firmware.c | 296 struct s3fwrn5_fw_image *fw = &fw_info->fw; in s3fwrn5_fw_request_firmware() local 302 ret = request_firmware(&fw->fw, fw_info->fw_name, in s3fwrn5_fw_request_firmware() 307 if (fw->fw->size < S3FWRN5_FW_IMAGE_HEADER_SIZE) in s3fwrn5_fw_request_firmware() 310 memcpy(fw->date, fw->fw->data + 0x00, 12); in s3fwrn5_fw_request_firmware() 311 fw->date[12] = '\0'; in s3fwrn5_fw_request_firmware() 313 memcpy(&fw->version, fw->fw->data + 0x10, 4); in s3fwrn5_fw_request_firmware() 315 memcpy(&sig_off, fw->fw->data + 0x14, 4); in s3fwrn5_fw_request_firmware() 316 fw->sig = fw->fw->data + sig_off; in s3fwrn5_fw_request_firmware() 317 memcpy(&fw->sig_size, fw->fw->data + 0x18, 4); in s3fwrn5_fw_request_firmware() 319 memcpy(&image_off, fw->fw->data + 0x1C, 4); in s3fwrn5_fw_request_firmware() [all …]
|
/drivers/scsi/qla2xxx/ |
D | qla_dbg.c | 732 struct qla2300_fw_dump *fw; in qla2300_fw_dump() local 756 fw = &ha->fw_dump->isp.isp23; in qla2300_fw_dump() 760 fw->hccr = htons(RD_REG_WORD(®->hccr)); in qla2300_fw_dump() 780 for (cnt = 0; cnt < sizeof(fw->pbiu_reg) / 2; cnt++, dmp_reg++) in qla2300_fw_dump() 781 fw->pbiu_reg[cnt] = htons(RD_REG_WORD(dmp_reg)); in qla2300_fw_dump() 784 for (cnt = 0; cnt < sizeof(fw->risc_host_reg) / 2; in qla2300_fw_dump() 786 fw->risc_host_reg[cnt] = htons(RD_REG_WORD(dmp_reg)); in qla2300_fw_dump() 789 for (cnt = 0; cnt < sizeof(fw->mailbox_reg) / 2; in qla2300_fw_dump() 791 fw->mailbox_reg[cnt] = htons(RD_REG_WORD(dmp_reg)); in qla2300_fw_dump() 794 qla2xxx_read_window(reg, 32, fw->resp_dma_reg); in qla2300_fw_dump() [all …]
|
/drivers/net/wireless/intel/iwlwifi/pcie/ |
D | ctxt-info.c | 58 static int iwl_pcie_get_num_sections(const struct fw_img *fw, in iwl_pcie_get_num_sections() argument 63 while (start < fw->num_sec && in iwl_pcie_get_num_sections() 64 fw->sec[start].offset != CPU1_CPU2_SEPARATOR_SECTION && in iwl_pcie_get_num_sections() 65 fw->sec[start].offset != PAGING_SEPARATOR_SECTION) { in iwl_pcie_get_num_sections() 95 if (!dram->fw) { in iwl_pcie_ctxt_info_free_fw_img() 101 dma_free_coherent(trans->dev, dram->fw[i].size, in iwl_pcie_ctxt_info_free_fw_img() 102 dram->fw[i].block, dram->fw[i].physical); in iwl_pcie_ctxt_info_free_fw_img() 104 kfree(dram->fw); in iwl_pcie_ctxt_info_free_fw_img() 106 dram->fw = NULL; in iwl_pcie_ctxt_info_free_fw_img() 132 const struct fw_img *fw, in iwl_pcie_ctxt_info_init_fw_sec() argument [all …]
|
/drivers/net/wireless/intel/iwlwifi/ |
D | iwl-drv.c | 111 struct iwl_fw fw; member 176 kfree(drv->fw.dbg_dest_tlv); in iwl_dealloc_ucode() 177 for (i = 0; i < ARRAY_SIZE(drv->fw.dbg_conf_tlv); i++) in iwl_dealloc_ucode() 178 kfree(drv->fw.dbg_conf_tlv[i]); in iwl_dealloc_ucode() 179 for (i = 0; i < ARRAY_SIZE(drv->fw.dbg_trigger_tlv); i++) in iwl_dealloc_ucode() 180 kfree(drv->fw.dbg_trigger_tlv[i]); in iwl_dealloc_ucode() 181 kfree(drv->fw.dbg_mem_tlv); in iwl_dealloc_ucode() 184 iwl_free_fw_img(drv, drv->fw.img + i); in iwl_dealloc_ucode() 376 static int iwl_store_cscheme(struct iwl_fw *fw, const u8 *data, const u32 len) in iwl_store_cscheme() argument 393 fw->cs[j++] = *fwcs; in iwl_store_cscheme() [all …]
|
/drivers/remoteproc/ |
D | remoteproc_internal.h | 39 const struct firmware *fw, 42 struct rproc *rproc, const struct firmware *fw); 43 int (*load)(struct rproc *rproc, const struct firmware *fw); 44 int (*sanity_check)(struct rproc *rproc, const struct firmware *fw); 45 u32 (*get_boot_addr)(struct rproc *rproc, const struct firmware *fw); 78 int rproc_fw_sanity_check(struct rproc *rproc, const struct firmware *fw) in rproc_fw_sanity_check() argument 81 return rproc->fw_ops->sanity_check(rproc, fw); in rproc_fw_sanity_check() 87 u32 rproc_get_boot_addr(struct rproc *rproc, const struct firmware *fw) in rproc_get_boot_addr() argument 90 return rproc->fw_ops->get_boot_addr(rproc, fw); in rproc_get_boot_addr() 96 int rproc_load_segments(struct rproc *rproc, const struct firmware *fw) in rproc_load_segments() argument [all …]
|
D | remoteproc_elf_loader.c | 43 rproc_elf_sanity_check(struct rproc *rproc, const struct firmware *fw) argument 50 if (!fw) { 55 if (fw->size < sizeof(struct elf32_hdr)) { 60 ehdr = (struct elf32_hdr *)fw->data; 79 if (fw->size < ehdr->e_shoff + sizeof(struct elf32_shdr)) { 94 if (ehdr->e_phoff > fw->size) { 114 u32 rproc_elf_get_boot_addr(struct rproc *rproc, const struct firmware *fw) argument 116 struct elf32_hdr *ehdr = (struct elf32_hdr *)fw->data; 146 rproc_elf_load_segments(struct rproc *rproc, const struct firmware *fw) argument 152 const u8 *elf_data = fw->data; [all …]
|
/drivers/fmc/ |
D | fmc-write-eeprom.c | 32 static int fwe_run_tlv(struct fmc_device *fmc, const struct firmware *fw, in fwe_run_tlv() argument 35 const uint8_t *p = fw->data; in fwe_run_tlv() 36 int len = fw->size; in fwe_run_tlv() 46 p - fw->data); in fwe_run_tlv() 68 static int fwe_run_bin(struct fmc_device *fmc, const struct firmware *fw) in fwe_run_bin() argument 72 dev_info(&fmc->dev, "programming %zi bytes\n", fw->size); in fwe_run_bin() 73 ret = fmc_write_ee(fmc, 0, (void *)fw->data, fw->size); in fwe_run_bin() 82 static int fwe_run(struct fmc_device *fmc, const struct firmware *fw, char *s) in fwe_run() argument 88 return fwe_run_bin(fmc, fw); in fwe_run() 90 err = fwe_run_tlv(fmc, fw, 0); in fwe_run() [all …]
|
/drivers/net/wireless/intersil/orinoco/ |
D | fw.c | 98 const struct fw_info *fw, in orinoco_dl_firmware() argument 114 pda = kzalloc(fw->pda_size, GFP_KERNEL); in orinoco_dl_firmware() 119 firmware = fw->ap_fw; in orinoco_dl_firmware() 121 firmware = fw->sta_fw; in orinoco_dl_firmware() 126 err = hw->ops->read_pda(hw, pda, fw->pda_addr, fw->pda_size); in orinoco_dl_firmware() 175 &pda[fw->pda_size / sizeof(*pda)]); in orinoco_dl_firmware() 205 symbol_dl_image(struct orinoco_private *priv, const struct fw_info *fw, in symbol_dl_image() argument 224 pda = kzalloc(fw->pda_size, GFP_KERNEL); in symbol_dl_image() 228 ret = hw->ops->read_pda(hw, pda, fw->pda_addr, fw->pda_size); in symbol_dl_image() 250 &pda[fw->pda_size / sizeof(*pda)]); in symbol_dl_image() [all …]
|
/drivers/firmware/meson/ |
D | meson_sm.c | 59 static struct meson_sm_firmware fw; variable 110 if (!fw.chip) in meson_sm_call() 113 cmd = meson_sm_get_cmd(fw.chip, cmd_index); in meson_sm_call() 148 if (!fw.chip) in meson_sm_call_read() 151 if (!fw.chip->cmd_shmem_out_base) in meson_sm_call_read() 154 if (bsize > fw.chip->shmem_size) in meson_sm_call_read() 169 memcpy(buffer, fw.sm_shmem_out_base, size); in meson_sm_call_read() 194 if (!fw.chip) in meson_sm_call_write() 197 if (size > fw.chip->shmem_size) in meson_sm_call_write() 200 if (!fw.chip->cmd_shmem_in_base) in meson_sm_call_write() [all …]
|
/drivers/bluetooth/ |
D | btrtl.c | 68 const struct firmware *fw, in rtl8723b_parse_firmware() argument 98 if (fw->size < min_size) in rtl8723b_parse_firmware() 101 fwptr = fw->data + fw->size - sizeof(extension_sig); in rtl8723b_parse_firmware() 113 while (fwptr >= fw->data + (sizeof(struct rtl_epatch_header) + 3)) { in rtl8723b_parse_firmware() 159 epatch_info = (struct rtl_epatch_header *)fw->data; in rtl8723b_parse_firmware() 176 if (fw->size < min_size) in rtl8723b_parse_firmware() 179 chip_id_base = fw->data + sizeof(struct rtl_epatch_header); in rtl8723b_parse_firmware() 202 if (fw->size < min_size) in rtl8723b_parse_firmware() 209 buf = kmemdup(fw->data + patch_offset, patch_length, GFP_KERNEL); in rtl8723b_parse_firmware() 273 const struct firmware *fw; in rtl_load_config() local [all …]
|
D | hci_ag6xx.c | 171 const struct firmware *fw; in ag6xx_setup() local 211 err = request_firmware(&fw, fwname, &hdev->dev); in ag6xx_setup() 217 fw_ptr = fw->data; in ag6xx_setup() 221 skb = __hci_cmd_sync_ev(hdev, 0xfc2f, fw->size, fw->data, in ag6xx_setup() 225 release_firmware(fw); in ag6xx_setup() 230 release_firmware(fw); in ag6xx_setup() 249 err = request_firmware(&fw, fwname, &hdev->dev); in ag6xx_setup() 255 fw_ptr = fw->data; in ag6xx_setup() 269 while (fw->size > fw_ptr - fw->data) { in ag6xx_setup() 282 if (fw->data + fw->size <= pbn->data + plen) { in ag6xx_setup() [all …]
|
/drivers/media/pci/cx18/ |
D | cx18-firmware.c | 98 const struct firmware *fw = NULL; in load_cpu_fw_direct() local 104 if (request_firmware(&fw, fn, &cx->pci_dev->dev)) { in load_cpu_fw_direct() 110 src = (const u32 *)fw->data; in load_cpu_fw_direct() 112 for (i = 0; i < fw->size; i += 4096) { in load_cpu_fw_direct() 114 for (j = i; j < fw->size && j < i + 4096; j += 4) { in load_cpu_fw_direct() 119 release_firmware(fw); in load_cpu_fw_direct() 128 CX18_INFO("loaded %s firmware (%zu bytes)\n", fn, fw->size); in load_cpu_fw_direct() 129 size = fw->size; in load_cpu_fw_direct() 130 release_firmware(fw); in load_cpu_fw_direct() 138 const struct firmware *fw = NULL; in load_apu_fw_direct() local [all …]
|
D | cx18-av-firmware.c | 31 static int cx18_av_verifyfw(struct cx18 *cx, const struct firmware *fw) in cx18_av_verifyfw() argument 53 data = fw->data; in cx18_av_verifyfw() 54 size = fw->size; in cx18_av_verifyfw() 75 const struct firmware *fw = NULL; in cx18_av_loadfw() local 82 if (request_firmware(&fw, FWFILE, &cx->pci_dev->dev) != 0) { in cx18_av_loadfw() 101 ptr = fw->data; in cx18_av_loadfw() 102 size = fw->size; in cx18_av_loadfw() 135 release_firmware(fw); in cx18_av_loadfw() 140 0x03000000 | fw->size, 0x03000000, 0x13000000); in cx18_av_loadfw() 144 if (cx18_av_verifyfw(cx, fw) == 0) in cx18_av_loadfw() [all …]
|
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | firmware.h | 41 const char *fw; member 45 #define BRCMF_FW_NVRAM_DEF(fw_nvram_name, fw, nvram) \ argument 47 BRCMF_FW_DEFAULT_PATH fw; \ 50 MODULE_FIRMWARE(BRCMF_FW_DEFAULT_PATH fw); 52 #define BRCMF_FW_DEF(fw_name, fw) \ argument 54 BRCMF_FW_DEFAULT_PATH fw; \ 55 MODULE_FIRMWARE(BRCMF_FW_DEFAULT_PATH fw) \ 77 const struct firmware *fw, 83 const struct firmware *fw,
|
/drivers/staging/media/atomisp/i2c/ |
D | libmsrlisthelper.c | 135 int apply_msr_data(struct i2c_client *client, const struct firmware *fw) in apply_msr_data() argument 140 if (!fw) { in apply_msr_data() 145 if (sizeof(*header) > fw->size) in apply_msr_data() 148 header = (struct tbd_header *)fw->data; in apply_msr_data() 154 if (header->size != fw->size) in apply_msr_data() 157 if (sizeof(*header) + sizeof(*record) > fw->size) in apply_msr_data() 174 const struct firmware **fw) in load_msr_list() argument 176 int ret = request_firmware(fw, name, &client->dev); in load_msr_list() 184 (unsigned long)(*fw)->size); in load_msr_list() 190 void release_msr_list(struct i2c_client *client, const struct firmware *fw) in release_msr_list() argument [all …]
|
/drivers/staging/rtl8188eu/hal/ |
D | fw.c | 159 const struct firmware *fw; in rtl88eu_download_fw() local 166 if (request_firmware(&fw, fw_name, device)) { in rtl88eu_download_fw() 171 if (fw->size > FW_8188E_SIZE) { in rtl88eu_download_fw() 174 release_firmware(fw); in rtl88eu_download_fw() 178 trailing_zeros_length = (4 - fw->size % 4) % 4; in rtl88eu_download_fw() 180 fw_data = kmalloc(fw->size + trailing_zeros_length, GFP_KERNEL); in rtl88eu_download_fw() 182 release_firmware(fw); in rtl88eu_download_fw() 186 memcpy(fw_data, fw->data, fw->size); in rtl88eu_download_fw() 187 memset(fw_data + fw->size, 0, trailing_zeros_length); in rtl88eu_download_fw() 193 download_size = fw->size + trailing_zeros_length - 32; in rtl88eu_download_fw() [all …]
|
/drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ |
D | acr.c | 35 const struct firmware *fw; in nvkm_acr_load_firmware() local 39 ret = nvkm_firmware_get(subdev->device, name, &fw); in nvkm_acr_load_firmware() 42 if (fw->size < min_size) { in nvkm_acr_load_firmware() 45 nvkm_firmware_put(fw); in nvkm_acr_load_firmware() 48 blob = kmemdup(fw->data, fw->size, GFP_KERNEL); in nvkm_acr_load_firmware() 49 nvkm_firmware_put(fw); in nvkm_acr_load_firmware()
|
/drivers/media/usb/dvb-usb/ |
D | dvb-usb-firmware.c | 37 int usb_cypress_load_firmware(struct usb_device *udev, const struct firmware *fw, int type) in usb_cypress_load_firmware() argument 54 while ((ret = dvb_usb_get_hexline(fw, hx, &pos)) > 0) { in usb_cypress_load_firmware() 90 const struct firmware *fw = NULL; in dvb_usb_download_firmware() local 92 if ((ret = request_firmware(&fw, props->firmware, &udev->dev)) != 0) { in dvb_usb_download_firmware() 104 ret = usb_cypress_load_firmware(udev, fw, props->usb_ctrl); in dvb_usb_download_firmware() 108 ret = props->download_firmware(udev,fw); in dvb_usb_download_firmware() 119 release_firmware(fw); in dvb_usb_download_firmware() 123 int dvb_usb_get_hexline(const struct firmware *fw, struct hexline *hx, in dvb_usb_get_hexline() argument 126 u8 *b = (u8 *) &fw->data[*pos]; in dvb_usb_get_hexline() 128 if (*pos >= fw->size) in dvb_usb_get_hexline() [all …]
|
/drivers/scsi/sym53c8xx_2/ |
D | sym_fw.h | 152 #define SYM_FW_ENTRY(fw, name) \ argument 155 (u32 *) &fw##a_scr, sizeof(fw##a_scr), &fw##a_ofs, \ 156 (u32 *) &fw##b_scr, sizeof(fw##b_scr), &fw##b_ofs, \ 157 (u32 *) &fw##z_scr, sizeof(fw##z_scr), &fw##z_ofs, \ 158 fw##_setup, fw##_patch \
|