Home
last modified time | relevance | path

Searched refs:cs_dsp (Results 1 – 25 of 45) sorted by relevance

12

/linux-6.15/include/linux/firmware/cirrus/
H A Dcs_dsp.h100 struct cs_dsp *dsp;
152 struct cs_dsp { struct
214 int (*pre_run)(struct cs_dsp *dsp);
215 int (*post_run)(struct cs_dsp *dsp);
216 void (*pre_stop)(struct cs_dsp *dsp);
217 void (*post_stop)(struct cs_dsp *dsp);
223 int cs_dsp_halo_init(struct cs_dsp *dsp);
230 int cs_dsp_power_up(struct cs_dsp *dsp,
235 int cs_dsp_run(struct cs_dsp *dsp);
236 void cs_dsp_stop(struct cs_dsp *dsp);
[all …]
H A Dcs_dsp_test_utils.h25 struct cs_dsp *dsp;
95 unsigned int cs_dsp_mock_size_of_region(const struct cs_dsp *dsp, int mem_type);
/linux-6.15/sound/soc/codecs/
H A Dwm_adsp.c36 dev_crit(_dsp->cs_dsp.dev, "%s: " fmt, _dsp->cs_dsp.name, ##__VA_ARGS__)
38 dev_err(_dsp->cs_dsp.dev, "%s: " fmt, _dsp->cs_dsp.name, ##__VA_ARGS__)
40 dev_warn(_dsp->cs_dsp.dev, "%s: " fmt, _dsp->cs_dsp.name, ##__VA_ARGS__)
44 dev_dbg(_dsp->cs_dsp.dev, "%s: " fmt, _dsp->cs_dsp.name, ##__VA_ARGS__)
550 cs_dsp); in wm_adsp_ctl_work()
589 struct cs_dsp *cs_dsp = &dsp->cs_dsp; in wm_adsp_control_add() local
736 struct cs_dsp *cs_dsp = &dsp->cs_dsp; in wm_adsp_request_firmware_file() local
1060 static int wm_adsp_pre_run(struct cs_dsp *cs_dsp) in wm_adsp_pre_run() argument
1070 static int wm_adsp_event_post_run(struct cs_dsp *cs_dsp) in wm_adsp_event_post_run() argument
1080 static void wm_adsp_event_post_stop(struct cs_dsp *cs_dsp) in wm_adsp_event_post_stop() argument
[all …]
H A Dcs35l56-shared.c658 void cs35l56_init_cs_dsp(struct cs35l56_base *cs35l56_base, struct cs_dsp *cs_dsp) in cs35l56_init_cs_dsp() argument
660 cs_dsp->num = 1; in cs35l56_init_cs_dsp()
661 cs_dsp->type = WMFW_HALO; in cs35l56_init_cs_dsp()
662 cs_dsp->rev = 0; in cs35l56_init_cs_dsp()
663 cs_dsp->dev = cs35l56_base->dev; in cs35l56_init_cs_dsp()
664 cs_dsp->regmap = cs35l56_base->regmap; in cs35l56_init_cs_dsp()
665 cs_dsp->base = CS35L56_DSP1_CORE_BASE; in cs35l56_init_cs_dsp()
666 cs_dsp->base_sysinfo = CS35L56_DSP1_SYS_INFO_ID; in cs35l56_init_cs_dsp()
667 cs_dsp->mem = cs35l56_dsp1_regions; in cs35l56_init_cs_dsp()
668 cs_dsp->num_mems = ARRAY_SIZE(cs35l56_dsp1_regions); in cs35l56_init_cs_dsp()
[all …]
H A Dcs35l45.c53 if (!cs35l45->dsp.cs_dsp.running) { in cs35l45_set_cspl_mbox_cmd()
124 if (cs35l45->dsp.cs_dsp.booted) in cs35l45_dsp_preload_ev()
129 if (cs35l45->dsp.cs_dsp.running) in cs35l45_dsp_preload_ev()
140 if (cs35l45->dsp.cs_dsp.running) { in cs35l45_dsp_preload_ev()
1356 dsp->cs_dsp.num = 1; in cs35l45_dsp_init()
1357 dsp->cs_dsp.type = WMFW_HALO; in cs35l45_dsp_init()
1358 dsp->cs_dsp.rev = 0; in cs35l45_dsp_init()
1359 dsp->cs_dsp.dev = cs35l45->dev; in cs35l45_dsp_init()
1360 dsp->cs_dsp.regmap = cs35l45->regmap; in cs35l45_dsp_init()
1363 dsp->cs_dsp.mem = cs35l45_dsp1_regions; in cs35l45_dsp_init()
[all …]
H A Dcs-amp-lib.c23 static int cs_amp_write_cal_coeff(struct cs_dsp *dsp, in cs_amp_write_cal_coeff()
50 static int _cs_amp_write_cal_coeffs(struct cs_dsp *dsp, in _cs_amp_write_cal_coeffs()
91 int cs_amp_write_cal_coeffs(struct cs_dsp *dsp, in cs_amp_write_cal_coeffs()
H A Dwm2200.c2206 wm2200->dsp[i].cs_dsp.type = WMFW_ADSP1; in wm2200_i2c_probe()
2208 wm2200->dsp[i].cs_dsp.num = i + 1; in wm2200_i2c_probe()
2209 wm2200->dsp[i].cs_dsp.dev = &i2c->dev; in wm2200_i2c_probe()
2210 wm2200->dsp[i].cs_dsp.regmap = wm2200->regmap; in wm2200_i2c_probe()
2211 wm2200->dsp[i].cs_dsp.sysclk_reg = WM2200_CLOCKING_3; in wm2200_i2c_probe()
2212 wm2200->dsp[i].cs_dsp.sysclk_mask = WM2200_SYSCLK_FREQ_MASK; in wm2200_i2c_probe()
2213 wm2200->dsp[i].cs_dsp.sysclk_shift = WM2200_SYSCLK_FREQ_SHIFT; in wm2200_i2c_probe()
2216 wm2200->dsp[0].cs_dsp.base = WM2200_DSP1_CONTROL_1; in wm2200_i2c_probe()
2217 wm2200->dsp[0].cs_dsp.mem = wm2200_dsp1_regions; in wm2200_i2c_probe()
2220 wm2200->dsp[1].cs_dsp.base = WM2200_DSP2_CONTROL_1; in wm2200_i2c_probe()
[all …]
H A Dwm_adsp.h28 struct cs_dsp cs_dsp; member
H A Dcs47l15.c1411 cs47l15->core.adsp[0].cs_dsp.num = 1; in cs47l15_probe()
1412 cs47l15->core.adsp[0].cs_dsp.type = WMFW_ADSP2; in cs47l15_probe()
1413 cs47l15->core.adsp[0].cs_dsp.rev = 2; in cs47l15_probe()
1414 cs47l15->core.adsp[0].cs_dsp.dev = madera->dev; in cs47l15_probe()
1415 cs47l15->core.adsp[0].cs_dsp.regmap = madera->regmap_32bit; in cs47l15_probe()
1417 cs47l15->core.adsp[0].cs_dsp.base = MADERA_DSP1_CONFIG_1; in cs47l15_probe()
1418 cs47l15->core.adsp[0].cs_dsp.mem = cs47l15_dsp1_regions; in cs47l15_probe()
1419 cs47l15->core.adsp[0].cs_dsp.num_mems = ARRAY_SIZE(cs47l15_dsp1_regions); in cs47l15_probe()
1421 cs47l15->core.adsp[0].cs_dsp.lock_regions = in cs47l15_probe()
H A Dcs35l41.c192 if (cs35l41->dsp.cs_dsp.booted) in cs35l41_dsp_preload_ev()
200 if (cs35l41->dsp.cs_dsp.running) { in cs35l41_dsp_preload_ev()
222 if (!cs35l41->dsp.cs_dsp.running) in cs35l41_dsp_audio_ev()
522 1, &cs35l41->dsp.cs_dsp); in cs35l41_main_amp_event()
526 0, &cs35l41->dsp.cs_dsp); in cs35l41_main_amp_event()
1093 cs35l41_configure_cs_dsp(cs35l41->dev, cs35l41->regmap, &dsp->cs_dsp); in cs35l41_dsp_init()
1394 if (!cs35l41->dsp.preloaded || !cs35l41->dsp.cs_dsp.running) in cs35l41_runtime_suspend()
1412 if (!cs35l41->dsp.preloaded || !cs35l41->dsp.cs_dsp.running) in cs35l41_runtime_resume()
/linux-6.15/drivers/firmware/cirrus/
H A Dcs_dsp.c291 int (*setup_algs)(struct cs_dsp *dsp);
305 int (*start_core)(struct cs_dsp *dsp);
473 struct cs_dsp *dsp = s->private; in cs_dsp_debugfs_read_controls_show()
662 struct cs_dsp *dsp = ctl->dsp; in cs_dsp_coeff_base_reg()
691 struct cs_dsp *dsp = ctl->dsp; in cs_dsp_coeff_write_acked_control()
757 struct cs_dsp *dsp = ctl->dsp; in cs_dsp_coeff_write_ctrl_raw()
846 struct cs_dsp *dsp = ctl->dsp; in cs_dsp_coeff_lock_and_write_ctrl()
862 struct cs_dsp *dsp = ctl->dsp; in cs_dsp_coeff_read_ctrl_raw()
945 struct cs_dsp *dsp = ctl->dsp; in cs_dsp_coeff_lock_and_read_ctrl()
2820 int cs_dsp_run(struct cs_dsp *dsp) in cs_dsp_run()
[all …]
H A DKconfig11 tristate "KUnit tests for Cirrus Logic cs_dsp" if !KUNIT_ALL_TESTS
16 This builds KUnit tests for cs_dsp.
H A DMakefile3 obj-$(CONFIG_FW_CS_DSP) += cs_dsp.o
/linux-6.15/sound/pci/hda/
H A Dhda_cs_dsp_ctl.c151 struct cs_dsp *cs_dsp = cs_ctl->dsp; in hda_cs_dsp_control_add() local
158 dev_warn(cs_dsp->dev, "Unknown region type: %d\n", cs_ctl->alg_region.type); in hda_cs_dsp_control_add()
163 cs_dsp->name, hda_cs_dsp_fw_text[info->fw_type], cs_ctl->alg_region.alg); in hda_cs_dsp_control_add()
180 void hda_cs_dsp_add_controls(struct cs_dsp *dsp, const struct hda_cs_dsp_ctl_info *info) in hda_cs_dsp_add_controls()
215 int hda_cs_dsp_write_ctl(struct cs_dsp *dsp, const char *name, int type, in hda_cs_dsp_write_ctl()
232 int hda_cs_dsp_read_ctl(struct cs_dsp *dsp, const char *name, int type, in hda_cs_dsp_read_ctl()
H A Dhda_cs_dsp_ctl.h32 void hda_cs_dsp_add_controls(struct cs_dsp *dsp, const struct hda_cs_dsp_ctl_info *info);
34 int hda_cs_dsp_write_ctl(struct cs_dsp *dsp, const char *name, int type,
36 int hda_cs_dsp_read_ctl(struct cs_dsp *dsp, const char *name, int type,
H A Dcs35l56_hda.c131 if (cs35l56->cs_dsp.booted) in cs35l56_hda_runtime_suspend()
132 cs_dsp_stop(&cs35l56->cs_dsp); in cs35l56_hda_runtime_suspend()
146 if (cs35l56->cs_dsp.booted) { in cs35l56_hda_runtime_resume()
147 ret = cs_dsp_run(&cs35l56->cs_dsp); in cs35l56_hda_runtime_resume()
588 cs_dsp_power_down(&cs35l56->cs_dsp); in cs35l56_hda_fw_load()
672 ret = cs_dsp_run(&cs35l56->cs_dsp); in cs35l56_hda_fw_load()
679 cs_dsp_stop(&cs35l56->cs_dsp); in cs35l56_hda_fw_load()
683 cs_dsp_power_down(&cs35l56->cs_dsp); in cs35l56_hda_fw_load()
748 cs_dsp_power_down(&cs35l56->cs_dsp); in cs35l56_hda_unbind()
1081 cs_dsp_remove(&cs35l56->cs_dsp); in cs35l56_hda_common_probe()
[all …]
H A Dcs35l56_hda.h31 struct cs_dsp cs_dsp; member
H A Dcs35l41_hda.c558 struct cs_dsp *dsp = &cs35l41->cs_dsp; in cs35l41_init_dsp()
610 struct cs_dsp *dsp = &cs35l41->cs_dsp; in cs35l41_shutdown_dsp()
620 struct cs_dsp *dsp = &cs35l41->cs_dsp; in cs35l41_remove_dsp()
660 if (cs35l41->cs_dsp.running) { in cs35l41_hda_play_start()
695 if (cs35l41->cs_dsp.running) { in cs35l41_mute()
719 &cs35l41->cs_dsp); in cs35l41_hda_play_done()
732 &cs35l41->cs_dsp); in cs35l41_hda_pause_start()
745 if (cs35l41->cs_dsp.running) { in cs35l41_hda_pause_done()
881 if (cs35l41->cs_dsp.running) { in cs35l41_ready_for_reset()
1044 if (cs35l41->cs_dsp.running) { in cs35l41_runtime_suspend()
[all …]
H A Dcs35l41_hda.h84 struct cs_dsp cs_dsp; member
/linux-6.15/include/sound/
H A Dcs-amp-lib.h13 struct cs_dsp;
47 int cs_amp_write_cal_coeffs(struct cs_dsp *dsp,
59 int (*write_cal_coeff)(struct cs_dsp *dsp,
H A Dcs35l56.h331 void cs35l56_init_cs_dsp(struct cs35l56_base *cs35l56_base, struct cs_dsp *cs_dsp);
/linux-6.15/drivers/firmware/cirrus/test/
H A Dcs_dsp_test_callbacks.c26 KUNIT_DEFINE_ACTION_WRAPPER(_cs_dsp_remove_wrapper, cs_dsp_remove, struct cs_dsp *)
40 struct cs_dsp *passed_dsp;
88 static int cs_dsp_test_pre_run_callback(struct cs_dsp *dsp) in cs_dsp_test_pre_run_callback()
100 static int cs_dsp_test_post_run_callback(struct cs_dsp *dsp) in cs_dsp_test_post_run_callback()
112 static void cs_dsp_test_pre_stop_callback(struct cs_dsp *dsp) in cs_dsp_test_pre_stop_callback()
122 static void cs_dsp_test_post_stop_callback(struct cs_dsp *dsp) in cs_dsp_test_post_stop_callback()
132 static void cs_dsp_test_watchdog_expired_callback(struct cs_dsp *dsp) in cs_dsp_test_watchdog_expired_callback()
434 static int cs_dsp_callbacks_test_common_init(struct kunit *test, struct cs_dsp *dsp, in cs_dsp_callbacks_test_common_init()
521 struct cs_dsp *dsp; in cs_dsp_callbacks_test_halo_init()
540 struct cs_dsp *dsp; in cs_dsp_callbacks_test_adsp2_32bit_init()
[all …]
H A Dcs_dsp_test_control_rw.c145 struct cs_dsp *dsp = priv->dsp; in cs_dsp_ctl_write_running()
216 struct cs_dsp *dsp = priv->dsp; in cs_dsp_ctl_read_volatile_running()
287 struct cs_dsp *dsp = priv->dsp; in cs_dsp_ctl_read_volatile_not_started()
337 struct cs_dsp *dsp = priv->dsp; in cs_dsp_ctl_read_volatile_stopped()
391 struct cs_dsp *dsp = priv->dsp; in cs_dsp_ctl_read_volatile_stopped_powered_down()
447 struct cs_dsp *dsp = priv->dsp; in cs_dsp_ctl_read_volatile_not_current_loaded_fw()
505 struct cs_dsp *dsp = priv->dsp; in cs_dsp_ctl_read_volatile_not_current_running_fw()
566 struct cs_dsp *dsp = priv->dsp; in cs_dsp_ctl_write_volatile_not_started()
2128 struct cs_dsp *dsp; in cs_dsp_ctl_rw_test_halo_init()
2147 struct cs_dsp *dsp; in cs_dsp_ctl_rw_test_adsp2_32bit_init()
[all …]
H A Dcs_dsp_test_control_cache.c149 struct cs_dsp *dsp = priv->dsp; in cs_dsp_ctl_v2_cache_alloc()
203 struct cs_dsp *dsp = priv->dsp; in cs_dsp_ctl_cache_init()
262 struct cs_dsp *dsp = priv->dsp; in cs_dsp_ctl_cache_init_write_only()
314 struct cs_dsp *dsp = priv->dsp; in cs_dsp_ctl_cache_init_multiple_fw_same_controls()
423 struct cs_dsp *dsp = priv->dsp; in cs_dsp_ctl_cache_init_multiple_fwalgid_same_controls()
531 struct cs_dsp *dsp = priv->dsp; in cs_dsp_ctl_cache_init_multiple_mems()
652 struct cs_dsp *dsp = priv->dsp; in cs_dsp_ctl_cache_init_multiple_algs()
753 struct cs_dsp *dsp = priv->dsp; in cs_dsp_ctl_cache_init_multiple_offsets()
2761 struct cs_dsp *dsp; in cs_dsp_ctl_cache_test_halo_init()
2780 struct cs_dsp *dsp; in cs_dsp_ctl_cache_test_adsp2_32bit_init()
[all …]
H A Dcs_dsp_test_bin_error.c22 KUNIT_DEFINE_ACTION_WRAPPER(_cs_dsp_remove_wrapper, cs_dsp_remove, struct cs_dsp *);
390 static int cs_dsp_bin_err_test_common_init(struct kunit *test, struct cs_dsp *dsp, in cs_dsp_bin_err_test_common_init()
482 struct cs_dsp *dsp; in cs_dsp_bin_err_test_halo_init()
501 struct cs_dsp *dsp; in cs_dsp_bin_err_test_adsp2_32bit_init()
520 struct cs_dsp *dsp; in cs_dsp_bin_err_test_adsp2_16bit_init()

12