/sound/soc/codecs/ |
D | sigmadsp.c | 46 const struct firmware *fw; member 119 while (ssfw->pos + sizeof(*sa) <= ssfw->fw->size) { in process_sigma_actions() 120 sa = (struct sigma_action *)(ssfw->fw->data + ssfw->pos); in process_sigma_actions() 124 if (ssfw->pos > ssfw->fw->size || size == 0) in process_sigma_actions() 135 if (ssfw->pos != ssfw->fw->size) in process_sigma_actions() 146 const struct firmware *fw; in _process_sigma_firmware() local 152 ret = request_firmware(&fw, name, dev); in _process_sigma_firmware() 157 ssfw->fw = fw; in _process_sigma_firmware() 168 if (fw->size < sizeof(*ssfw_head) || fw->size >= 0x4000000) { in _process_sigma_firmware() 173 ssfw_head = (void *)fw->data; in _process_sigma_firmware() [all …]
|
D | wm8958-dsp2.c | 43 const struct firmware *fw, bool check) in wm8958_dsp2_fw() argument 54 if (wm8994->cur_fw == fw) in wm8958_dsp2_fw() 57 if (fw->size < 32) { in wm8958_dsp2_fw() 59 name, fw->size); in wm8958_dsp2_fw() 63 if (memcmp(fw->data, "WMFW", 4) != 0) { in wm8958_dsp2_fw() 64 memcpy(&data32, fw->data, sizeof(data32)); in wm8958_dsp2_fw() 71 memcpy(&data32, fw->data + 4, sizeof(data32)); in wm8958_dsp2_fw() 74 memcpy(&data32, fw->data + 8, sizeof(data32)); in wm8958_dsp2_fw() 93 memcpy(&data64, fw->data + 24, sizeof(u64)); in wm8958_dsp2_fw() 101 data = fw->data + len; in wm8958_dsp2_fw() [all …]
|
D | wm0010.c | 353 const struct firmware *fw; in wm0010_firmware_load() local 362 ret = request_firmware(&fw, name, codec->dev); in wm0010_firmware_load() 369 rec = (const struct dfw_binrec *)fw->data; in wm0010_firmware_load() 406 while (offset < fw->size) { in wm0010_firmware_load() 466 if (offset >= fw->size) { in wm0010_firmware_load() 499 release_firmware(fw); in wm0010_firmware_load() 507 const struct firmware *fw; in wm0010_stage2_load() local 515 ret = request_firmware(&fw, "wm0010_stage2.bin", codec->dev); in wm0010_stage2_load() 522 dev_dbg(codec->dev, "Downloading %zu byte stage 2 loader\n", fw->size); in wm0010_stage2_load() 525 img = kzalloc(fw->size, GFP_KERNEL); in wm0010_stage2_load() [all …]
|
D | wm_adsp.c | 225 ucontrol->value.integer.value[0] = adsp[e->shift_l].fw; in wm_adsp_fw_get() 237 if (ucontrol->value.integer.value[0] == adsp[e->shift_l].fw) in wm_adsp_fw_put() 246 adsp[e->shift_l].fw = ucontrol->value.integer.value[0]; in wm_adsp_fw_put() 361 wm_adsp_fw[dsp->fw].file); in wm_adsp_load() 596 dsp->fw_id = be32_to_cpu(adsp1_id.fw.id); in wm_adsp_setup_algs() 599 (be32_to_cpu(adsp1_id.fw.ver) & 0xff0000) >> 16, in wm_adsp_setup_algs() 600 (be32_to_cpu(adsp1_id.fw.ver) & 0xff00) >> 8, in wm_adsp_setup_algs() 601 be32_to_cpu(adsp1_id.fw.ver) & 0xff, in wm_adsp_setup_algs() 608 region->alg = be32_to_cpu(adsp1_id.fw.id); in wm_adsp_setup_algs() 616 region->alg = be32_to_cpu(adsp1_id.fw.id); in wm_adsp_setup_algs() [all …]
|
D | wmfw.h | 61 struct wmfw_id_hdr fw; member 68 struct wmfw_id_hdr fw; member
|
D | wm2000.c | 819 const struct firmware *fw = NULL; in wm2000_i2c_probe() local 890 ret = request_firmware(&fw, filename, &i2c->dev); in wm2000_i2c_probe() 897 wm2000->anc_download_size = fw->size + 2; in wm2000_i2c_probe() 909 memcpy(wm2000->anc_download + 2, fw->data, fw->size); in wm2000_i2c_probe() 924 release_firmware(fw); in wm2000_i2c_probe()
|
D | wm_adsp.h | 54 int fw; member
|
/sound/usb/6fire/ |
D | firmware.c | 145 static int usb6fire_fw_ihex_init(const struct firmware *fw, in usb6fire_fw_ihex_init() argument 148 record->txt_data = fw->data; in usb6fire_fw_ihex_init() 149 record->txt_length = fw->size; in usb6fire_fw_ihex_init() 212 const struct firmware *fw = NULL; in usb6fire_fw_ezusb_upload() local 219 ret = request_firmware(&fw, fwname, &device->dev); in usb6fire_fw_ezusb_upload() 226 ret = usb6fire_fw_ihex_init(fw, rec); in usb6fire_fw_ezusb_upload() 229 release_firmware(fw); in usb6fire_fw_ezusb_upload() 239 release_firmware(fw); in usb6fire_fw_ezusb_upload() 250 release_firmware(fw); in usb6fire_fw_ezusb_upload() 257 release_firmware(fw); in usb6fire_fw_ezusb_upload() [all …]
|
/sound/soc/sh/ |
D | siu_dai.c | 163 struct siu_firmware *fw = &info->fw; in siu_dai_spbAselect() local 164 u32 *ydef = fw->yram0; in siu_dai_spbAselect() 173 ydef[0] = (fw->spbpar[idx].ab1a << 16) | in siu_dai_spbAselect() 174 (fw->spbpar[idx].ab0a << 8) | in siu_dai_spbAselect() 175 (fw->spbpar[idx].dir << 7) | 3; in siu_dai_spbAselect() 176 ydef[1] = fw->yram0[1]; /* 0x03000300 */ in siu_dai_spbAselect() 178 ydef[3] = fw->yram0[3]; /* 0 */ in siu_dai_spbAselect() 179 ydef[4] = fw->yram0[4]; /* 0 */ in siu_dai_spbAselect() 180 ydef[7] = fw->spbpar[idx].event; in siu_dai_spbAselect() 181 port_info->stfifo |= fw->spbpar[idx].stfifo; in siu_dai_spbAselect() [all …]
|
D | siu.h | 109 struct siu_firmware fw; member
|
/sound/drivers/vx/ |
D | vx_hwdep.c | 70 const struct firmware *fw; in snd_vx_setup_firmware() local 74 if (request_firmware(&fw, path, chip->dev)) { in snd_vx_setup_firmware() 78 err = chip->ops->load_dsp(chip, i, fw); in snd_vx_setup_firmware() 80 release_firmware(fw); in snd_vx_setup_firmware() 86 chip->firmware[i] = fw; in snd_vx_setup_firmware() 88 release_firmware(fw); in snd_vx_setup_firmware()
|
/sound/pci/echoaudio/ |
D | echoaudio_dsp.c | 180 const struct firmware *fw; in load_asic_generic() local 185 err = get_firmware(&fw, chip, asic); in load_asic_generic() 191 code = (u8 *)fw->data; in load_asic_generic() 192 size = fw->size; in load_asic_generic() 208 free_firmware(fw); in load_asic_generic() 213 free_firmware(fw); in load_asic_generic() 232 const struct firmware *fw; in install_resident_loader() local 248 i = get_firmware(&fw, chip, FW_361_LOADER); in install_resident_loader() 266 code = (u16 *)fw->data; in install_resident_loader() 319 free_firmware(fw); in install_resident_loader() [all …]
|
/sound/pcmcia/vx/ |
D | vxp_ops.c | 148 static int vxp_load_xilinx_binary(struct vx_core *_chip, const struct firmware *fw) in vxp_load_xilinx_binary() argument 175 image = fw->data; in vxp_load_xilinx_binary() 176 for (i = 0; i < fw->size; i++, image++) { in vxp_load_xilinx_binary() 204 snd_printdd(KERN_DEBUG "xilinx: dsp size received 0x%x, orig 0x%Zx\n", c, fw->size); in vxp_load_xilinx_binary() 246 static int vxp_load_dsp(struct vx_core *vx, int index, const struct firmware *fw) in vxp_load_dsp() argument 255 if ((err = snd_vx_load_boot_image(vx, fw)) < 0) in vxp_load_dsp() 260 return vxp_load_xilinx_binary(vx, fw); in vxp_load_dsp() 263 return snd_vx_dsp_boot(vx, fw); in vxp_load_dsp() 266 return snd_vx_dsp_load(vx, fw); in vxp_load_dsp()
|
/sound/pci/hda/ |
D | hda_intel.c | 515 const struct firmware *fw; member 3173 if (chip->fw) in azx_free() 3174 release_firmware(chip->fw); in azx_free() 3661 static void azx_firmware_cb(const struct firmware *fw, void *context) in azx_firmware_cb() argument 3667 if (!fw) { in azx_firmware_cb() 3673 chip->fw = fw; in azx_firmware_cb() 3785 if (chip->fw) { in azx_probe_continue() 3786 err = snd_hda_load_patch(chip->bus, chip->fw->size, in azx_probe_continue() 3787 chip->fw->data); in azx_probe_continue() 3791 release_firmware(chip->fw); /* no longer needed */ in azx_probe_continue() [all …]
|
/sound/pci/rme9652/ |
D | hdsp.c | 5119 const struct firmware *fw; in hdsp_request_fw_loader() local 5153 if (request_firmware(&fw, fwfile, &hdsp->pci->dev)) { in hdsp_request_fw_loader() 5157 if (fw->size < HDSP_FIRMWARE_SIZE) { in hdsp_request_fw_loader() 5159 (int)fw->size, HDSP_FIRMWARE_SIZE); in hdsp_request_fw_loader() 5163 hdsp->firmware = fw; in hdsp_request_fw_loader()
|