Home
last modified time | relevance | path

Searched refs:fw (Results 1 – 25 of 43) sorted by relevance

12

/sound/usb/6fire/
Dfirmware.c141 static int usb6fire_fw_ihex_init(const struct firmware *fw, in usb6fire_fw_ihex_init() argument
144 record->txt_data = fw->data; in usb6fire_fw_ihex_init()
145 record->txt_length = fw->size; in usb6fire_fw_ihex_init()
196 const struct firmware *fw = NULL; in usb6fire_fw_ezusb_upload() local
203 ret = request_firmware(&fw, fwname, &device->dev); in usb6fire_fw_ezusb_upload()
210 ret = usb6fire_fw_ihex_init(fw, rec); in usb6fire_fw_ezusb_upload()
213 release_firmware(fw); in usb6fire_fw_ezusb_upload()
223 release_firmware(fw); in usb6fire_fw_ezusb_upload()
235 release_firmware(fw); in usb6fire_fw_ezusb_upload()
243 release_firmware(fw); in usb6fire_fw_ezusb_upload()
[all …]
/sound/soc/sh/
Dsiu_dai.c149 struct siu_firmware *fw = &info->fw; in siu_dai_spbAselect() local
150 u32 *ydef = fw->yram0; in siu_dai_spbAselect()
159 ydef[0] = (fw->spbpar[idx].ab1a << 16) | in siu_dai_spbAselect()
160 (fw->spbpar[idx].ab0a << 8) | in siu_dai_spbAselect()
161 (fw->spbpar[idx].dir << 7) | 3; in siu_dai_spbAselect()
162 ydef[1] = fw->yram0[1]; /* 0x03000300 */ in siu_dai_spbAselect()
164 ydef[3] = fw->yram0[3]; /* 0 */ in siu_dai_spbAselect()
165 ydef[4] = fw->yram0[4]; /* 0 */ in siu_dai_spbAselect()
166 ydef[7] = fw->spbpar[idx].event; in siu_dai_spbAselect()
167 port_info->stfifo |= fw->spbpar[idx].stfifo; in siu_dai_spbAselect()
[all …]
/sound/soc/intel/skylake/
Dskl-sst-utils.c229 int snd_skl_parse_uuids(struct sst_dsp *ctx, const struct firmware *fw, in snd_skl_parse_uuids() argument
243 stripped_fw.data = fw->data; in snd_skl_parse_uuids()
244 stripped_fw.size = fw->size; in snd_skl_parse_uuids()
337 int skl_dsp_strip_extended_manifest(struct firmware *fw) in skl_dsp_strip_extended_manifest() argument
342 if (fw->size < sizeof(hdr)) { in skl_dsp_strip_extended_manifest()
347 hdr = (struct skl_ext_manifest_hdr *)fw->data; in skl_dsp_strip_extended_manifest()
350 fw->size -= hdr->len; in skl_dsp_strip_extended_manifest()
351 fw->data += hdr->len; in skl_dsp_strip_extended_manifest()
391 if (linfo->fw == NULL) { in skl_prepare_lib_load()
392 ret = request_firmware(&linfo->fw, linfo->name, in skl_prepare_lib_load()
[all …]
Dskl-sst.c76 if (ctx->fw == NULL) { in skl_load_base_firmware()
77 ret = request_firmware(&ctx->fw, ctx->fw_name, ctx->dev); in skl_load_base_firmware()
86 ret = snd_skl_parse_uuids(ctx, ctx->fw, SKL_ADSP_FW_BIN_HDR_OFFSET, 0); in skl_load_base_firmware()
89 release_firmware(ctx->fw); in skl_load_base_firmware()
96 stripped_fw.data = ctx->fw->data; in skl_load_base_firmware()
97 stripped_fw.size = ctx->fw->size; in skl_load_base_firmware()
155 release_firmware(ctx->fw); in skl_load_base_firmware()
156 ctx->fw = NULL; in skl_load_base_firmware()
280 const struct firmware *fw; in skl_fill_module_table() local
285 ret = request_firmware(&fw, mod_name, ctx->dev); in skl_fill_module_table()
[all …]
Dcnl-sst.c130 if (!ctx->fw) { in cnl_load_base_firmware()
131 ret = request_firmware(&ctx->fw, ctx->fw_name, ctx->dev); in cnl_load_base_firmware()
140 ret = snd_skl_parse_uuids(ctx, ctx->fw, in cnl_load_base_firmware()
146 stripped_fw.data = ctx->fw->data; in cnl_load_base_firmware()
147 stripped_fw.size = ctx->fw->size; in cnl_load_base_firmware()
182 release_firmware(ctx->fw); in cnl_load_base_firmware()
183 ctx->fw = NULL; in cnl_load_base_firmware()
497 if (skl->dsp->fw) in cnl_sst_dsp_cleanup()
498 release_firmware(skl->dsp->fw); in cnl_sst_dsp_cleanup()
Dbxt-sst.c187 if (ctx->fw == NULL) { in bxt_load_base_firmware()
188 ret = request_firmware(&ctx->fw, ctx->fw_name, ctx->dev); in bxt_load_base_firmware()
197 ret = snd_skl_parse_uuids(ctx, ctx->fw, BXT_ADSP_FW_BIN_HDR_OFFSET, 0); in bxt_load_base_firmware()
202 stripped_fw.data = ctx->fw->data; in bxt_load_base_firmware()
203 stripped_fw.size = ctx->fw->size; in bxt_load_base_firmware()
247 release_firmware(ctx->fw); in bxt_load_base_firmware()
248 ctx->fw = NULL; in bxt_load_base_firmware()
620 if (skl->dsp->fw) in bxt_sst_dsp_cleanup()
621 release_firmware(skl->dsp->fw); in bxt_sst_dsp_cleanup()
Dskl-sst-dsp.h186 const struct firmware *fw; member
236 int snd_skl_parse_uuids(struct sst_dsp *ctx, const struct firmware *fw,
244 int skl_dsp_strip_extended_manifest(struct firmware *fw);
/sound/soc/intel/atom/sst/
Dsst_loader.c286 const struct firmware *fw) in sst_cache_and_parse_fw() argument
290 sst->fw_in_mem = kzalloc(fw->size, GFP_KERNEL); in sst_cache_and_parse_fw()
297 memcpy(sst->fw_in_mem, fw->data, fw->size); in sst_cache_and_parse_fw()
298 retval = sst_parse_fw_memcpy(sst, fw->size, &sst->memcpy_list); in sst_cache_and_parse_fw()
306 release_firmware(fw); in sst_cache_and_parse_fw()
311 void sst_firmware_load_cb(const struct firmware *fw, void *context) in sst_firmware_load_cb() argument
317 if (fw == NULL) { in sst_firmware_load_cb()
326 release_firmware(fw); in sst_firmware_load_cb()
332 sst_cache_and_parse_fw(ctx, fw); in sst_firmware_load_cb()
345 const struct firmware *fw; in sst_request_fw() local
[all …]
/sound/drivers/vx/
Dvx_hwdep.c57 const struct firmware *fw; in snd_vx_setup_firmware() local
61 if (request_firmware(&fw, path, chip->dev)) { in snd_vx_setup_firmware()
65 err = chip->ops->load_dsp(chip, i, fw); in snd_vx_setup_firmware()
67 release_firmware(fw); in snd_vx_setup_firmware()
73 chip->firmware[i] = fw; in snd_vx_setup_firmware()
75 release_firmware(fw); in snd_vx_setup_firmware()
/sound/soc/sof/
Dloader.c248 static ssize_t snd_sof_ext_man_size(const struct firmware *fw) in snd_sof_ext_man_size() argument
252 head = (struct sof_ext_man_header *)fw->data; in snd_sof_ext_man_size()
259 if (fw->size < sizeof(*head)) in snd_sof_ext_man_size()
275 const struct firmware *fw) in snd_sof_fw_ext_man_parse() argument
284 head = (struct sof_ext_man_header *)fw->data; in snd_sof_fw_ext_man_parse()
286 ext_man_size = snd_sof_ext_man_size(fw); in snd_sof_fw_ext_man_parse()
301 iptr = (uintptr_t)fw->data + head->header_size; in snd_sof_fw_ext_man_parse()
622 static int check_header(struct snd_sof_dev *sdev, const struct firmware *fw, in check_header() argument
626 size_t fw_size = fw->size - fw_offset; in check_header()
628 if (fw->size <= fw_offset) { in check_header()
[all …]
/sound/soc/intel/catpt/
Dloader.c461 struct catpt_fw_hdr *fw) in catpt_restore_firmware() argument
463 u32 offset = sizeof(*fw); in catpt_restore_firmware()
467 fw, sizeof(*fw), false); in catpt_restore_firmware()
469 for (i = 0; i < fw->modules; i++) { in catpt_restore_firmware()
473 mod = (struct catpt_fw_mod_hdr *)((u8 *)fw + offset); in catpt_restore_firmware()
474 if (strncmp(fw->signature, mod->signature, in catpt_restore_firmware()
507 struct catpt_fw_hdr *fw) in catpt_load_firmware() argument
509 u32 offset = sizeof(*fw); in catpt_load_firmware()
513 fw, sizeof(*fw), false); in catpt_load_firmware()
515 for (i = 0; i < fw->modules; i++) { in catpt_load_firmware()
[all …]
/sound/soc/codecs/
Dsigmadsp.c321 const struct firmware *fw) in sigmadsp_fw_load_v2() argument
331 if (fw->size < sizeof(*chunk) + sizeof(struct sigma_firmware_header)) in sigmadsp_fw_load_v2()
336 while (pos < fw->size - sizeof(*chunk)) { in sigmadsp_fw_load_v2()
337 chunk = (struct sigma_fw_chunk *)(fw->data + pos); in sigmadsp_fw_load_v2()
341 if (length > fw->size - pos || length < sizeof(*chunk)) in sigmadsp_fw_load_v2()
437 const struct firmware *fw) in sigmadsp_fw_load_v1() argument
445 while (pos + sizeof(*sa) <= fw->size) { in sigmadsp_fw_load_v1()
446 sa = (struct sigma_action *)(fw->data + pos); in sigmadsp_fw_load_v1()
450 if (pos > fw->size || size == 0) in sigmadsp_fw_load_v1()
461 if (pos != fw->size) in sigmadsp_fw_load_v1()
[all …]
Dwm8958-dsp2.c42 const struct firmware *fw, bool check) in wm8958_dsp2_fw() argument
53 if (wm8994->cur_fw == fw) in wm8958_dsp2_fw()
56 if (fw->size < 32) { in wm8958_dsp2_fw()
58 name, fw->size); in wm8958_dsp2_fw()
62 if (memcmp(fw->data, "WMFW", 4) != 0) { in wm8958_dsp2_fw()
63 data32 = get_unaligned_be32(fw->data); in wm8958_dsp2_fw()
69 len = get_unaligned_be32(fw->data + 4); in wm8958_dsp2_fw()
70 data32 = get_unaligned_be32(fw->data + 8); in wm8958_dsp2_fw()
89 data64 = get_unaligned_be64(fw->data + 24); in wm8958_dsp2_fw()
96 data = fw->data + len; in wm8958_dsp2_fw()
[all …]
Dwm0010.c350 const struct firmware *fw; in wm0010_firmware_load() local
359 ret = request_firmware(&fw, name, component->dev); in wm0010_firmware_load()
366 rec = (const struct dfw_binrec *)fw->data; in wm0010_firmware_load()
403 while (offset < fw->size) { in wm0010_firmware_load()
458 if (offset >= fw->size) { in wm0010_firmware_load()
491 release_firmware(fw); in wm0010_firmware_load()
499 const struct firmware *fw; in wm0010_stage2_load() local
507 ret = request_firmware(&fw, "wm0010_stage2.bin", component->dev); in wm0010_stage2_load()
514 dev_dbg(component->dev, "Downloading %zu byte stage 2 loader\n", fw->size); in wm0010_stage2_load()
517 img = kmemdup(&fw->data[0], fw->size, GFP_KERNEL | GFP_DMA); in wm0010_stage2_load()
[all …]
Drt5677-spi.h15 int rt5677_spi_write_firmware(u32 addr, const struct firmware *fw);
26 static inline int rt5677_spi_write_firmware(u32 addr, const struct firmware *fw) in rt5677_spi_write_firmware() argument
Drt5514.c330 const struct firmware *fw = NULL; in rt5514_dsp_voice_wake_up_put() local
371 request_firmware(&fw, RT5514_FIRMWARE1, component->dev); in rt5514_dsp_voice_wake_up_put()
372 if (fw) { in rt5514_dsp_voice_wake_up_put()
374 rt5514_spi_burst_write(0x4ff60000, fw->data, in rt5514_dsp_voice_wake_up_put()
375 ((fw->size/8)+1)*8); in rt5514_dsp_voice_wake_up_put()
380 release_firmware(fw); in rt5514_dsp_voice_wake_up_put()
381 fw = NULL; in rt5514_dsp_voice_wake_up_put()
384 request_firmware(&fw, RT5514_FIRMWARE2, component->dev); in rt5514_dsp_voice_wake_up_put()
385 if (fw) { in rt5514_dsp_voice_wake_up_put()
387 rt5514_spi_burst_write(0x4ffc0000, fw->data, in rt5514_dsp_voice_wake_up_put()
[all …]
Dwmfw.h82 struct wmfw_id_hdr fw; member
89 struct wmfw_id_hdr fw; member
97 struct wmfw_v3_id_hdr fw; member
Dmax98390.c762 const struct firmware *fw; in max98390_dsm_init() local
779 ret = request_firmware(&fw, filename, component->dev); in max98390_dsm_init()
781 ret = request_firmware(&fw, "dsm_param.bin", component->dev); in max98390_dsm_init()
783 ret = request_firmware(&fw, "dsmparam.bin", in max98390_dsm_init()
792 fw->size); in max98390_dsm_init()
793 if (fw->size < MAX98390_DSM_PARAM_MIN_SIZE) { in max98390_dsm_init()
799 dsm_param = (char *)fw->data; in max98390_dsm_init()
804 fw->size < param_size + MAX98390_DSM_PAYLOAD_OFFSET) { in max98390_dsm_init()
817 release_firmware(fw); in max98390_dsm_init()
Dwm_adsp.c785 ucontrol->value.enumerated.item[0] = dsp[e->shift_l].fw; in wm_adsp_fw_get()
799 if (ucontrol->value.enumerated.item[0] == dsp[e->shift_l].fw) in wm_adsp_fw_put()
810 dsp[e->shift_l].fw = ucontrol->value.enumerated.item[0]; in wm_adsp_fw_put()
1441 wm_adsp_fw_text[dsp->fw], alg_region->alg); in wm_adsp_create_control()
1446 wm_adsp_fw_text[dsp->fw], alg_region->alg); in wm_adsp_create_control()
1476 ctl->fw_name = wm_adsp_fw_text[dsp->fw]; in wm_adsp_create_control()
1840 wm_adsp_fw[dsp->fw].file); in wm_adsp_load()
2028 const char *fw_txt = wm_adsp_fw_text[dsp->fw]; in wm_adsp_get_ctl()
2109 if (ctl->fw_name == wm_adsp_fw_text[dsp->fw] && in wm_adsp_ctl_fixup_base()
2218 struct wmfw_id_hdr *fw, int nalgs) in wmfw_parse_id_header() argument
[all …]
Dwm2000.c816 const struct firmware *fw = NULL; in wm2000_i2c_probe() local
896 ret = request_firmware(&fw, filename, &i2c->dev); in wm2000_i2c_probe()
903 wm2000->anc_download_size = fw->size + 2; in wm2000_i2c_probe()
914 memcpy(wm2000->anc_download + 2, fw->data, fw->size); in wm2000_i2c_probe()
930 release_firmware(fw); in wm2000_i2c_probe()
Dzl38060.c165 const struct firmware *fw; in zl38_load_firmware() local
178 err = request_ihex_firmware(&fw, "zl38060.fw", dev); in zl38_load_firmware()
184 rec = (const struct ihex_binrec *)fw->data; in zl38_load_firmware()
205 release_firmware(fw); in zl38_load_firmware()
/sound/soc/
Dsoc-topology-test.c56 struct firmware fw; member
65 ret = snd_soc_tplg_component_load(component, NULL, &kunit_comp->fw); in d_probe()
231 ret = snd_soc_tplg_component_load(NULL, NULL, &kunit_comp->fw); in d_probe_null_comp()
409 kunit_comp->fw.data = (u8 *)data; in snd_soc_tplg_test_load_empty_tplg()
410 kunit_comp->fw.size = size; in snd_soc_tplg_test_load_empty_tplg()
465 kunit_comp->fw.data = (u8 *)data; in snd_soc_tplg_test_load_empty_tplg_bad_magic()
466 kunit_comp->fw.size = size; in snd_soc_tplg_test_load_empty_tplg_bad_magic()
521 kunit_comp->fw.data = (u8 *)data; in snd_soc_tplg_test_load_empty_tplg_bad_abi()
522 kunit_comp->fw.size = size; in snd_soc_tplg_test_load_empty_tplg_bad_abi()
577 kunit_comp->fw.data = (u8 *)data; in snd_soc_tplg_test_load_empty_tplg_bad_size()
[all …]
/sound/pci/echoaudio/
Dechoaudio_dsp.c182 const struct firmware *fw; in load_asic_generic() local
187 err = get_firmware(&fw, chip, asic); in load_asic_generic()
193 code = (u8 *)fw->data; in load_asic_generic()
194 size = fw->size; in load_asic_generic()
209 free_firmware(fw, chip); in load_asic_generic()
214 free_firmware(fw, chip); in load_asic_generic()
233 const struct firmware *fw; in install_resident_loader() local
250 i = get_firmware(&fw, chip, FW_361_LOADER); in install_resident_loader()
268 code = (u16 *)fw->data; in install_resident_loader()
324 free_firmware(fw, chip); in install_resident_loader()
[all …]
/sound/pcmcia/vx/
Dvxp_ops.c135 static int vxp_load_xilinx_binary(struct vx_core *_chip, const struct firmware *fw) in vxp_load_xilinx_binary() argument
162 image = fw->data; in vxp_load_xilinx_binary()
163 for (i = 0; i < fw->size; i++, image++) { in vxp_load_xilinx_binary()
191 snd_printdd(KERN_DEBUG "xilinx: dsp size received 0x%x, orig 0x%zx\n", c, fw->size); in vxp_load_xilinx_binary()
233 static int vxp_load_dsp(struct vx_core *vx, int index, const struct firmware *fw) in vxp_load_dsp() argument
243 err = snd_vx_load_boot_image(vx, fw); in vxp_load_dsp()
249 return vxp_load_xilinx_binary(vx, fw); in vxp_load_dsp()
252 return snd_vx_dsp_boot(vx, fw); in vxp_load_dsp()
255 return snd_vx_dsp_load(vx, fw); in vxp_load_dsp()
/sound/soc/sof/intel/
Dhda-loader.c305 if (plat_data->fw->size <= plat_data->fw_offset) { in hda_dsp_cl_boot_firmware_iccmax()
310 stripped_firmware.size = plat_data->fw->size - plat_data->fw_offset; in hda_dsp_cl_boot_firmware_iccmax()
353 if (plat_data->fw->size <= plat_data->fw_offset) { in hda_dsp_cl_boot_firmware()
358 stripped_firmware.data = plat_data->fw->data + plat_data->fw_offset; in hda_dsp_cl_boot_firmware()
359 stripped_firmware.size = plat_data->fw->size - plat_data->fw_offset; in hda_dsp_cl_boot_firmware()

12