Lines Matching refs:cs_dsp

36 	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__)
42 dev_info(_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__)
345 mutex_lock(&dsp[e->shift_l].cs_dsp.pwr_lock); in wm_adsp_fw_put()
347 if (dsp[e->shift_l].cs_dsp.booted || !list_empty(&dsp[e->shift_l].compr_list)) in wm_adsp_fw_put()
352 mutex_unlock(&dsp[e->shift_l].cs_dsp.pwr_lock); in wm_adsp_fw_put()
550 cs_dsp); in wm_adsp_ctl_work()
588 struct wm_adsp *dsp = container_of(cs_ctl->dsp, struct wm_adsp, cs_dsp); in wm_adsp_control_add()
589 struct cs_dsp *cs_dsp = &dsp->cs_dsp; in wm_adsp_control_add() local
604 switch (cs_dsp->wmfw_ver) { in wm_adsp_control_add()
608 "%s %s %x", cs_dsp->name, region_name, in wm_adsp_control_add()
613 "%s%c %.12s %x", cs_dsp->name, *region_name, in wm_adsp_control_add()
618 "%s %.12s %x", cs_dsp->name, in wm_adsp_control_add()
665 struct wm_adsp *dsp = container_of(cs_ctl->dsp, struct wm_adsp, cs_dsp); in wm_adsp_control_add_cb()
689 mutex_lock(&dsp->cs_dsp.pwr_lock); in wm_adsp_write_ctl()
690 cs_ctl = cs_dsp_get_ctl(&dsp->cs_dsp, name, type, alg); in wm_adsp_write_ctl()
692 mutex_unlock(&dsp->cs_dsp.pwr_lock); in wm_adsp_write_ctl()
706 mutex_lock(&dsp->cs_dsp.pwr_lock); in wm_adsp_read_ctl()
707 ret = cs_dsp_coeff_read_ctrl(cs_dsp_get_ctl(&dsp->cs_dsp, name, type, alg), in wm_adsp_read_ctl()
709 mutex_unlock(&dsp->cs_dsp.pwr_lock); in wm_adsp_read_ctl()
736 struct cs_dsp *cs_dsp = &dsp->cs_dsp; in wm_adsp_request_firmware_file() local
744 fwf = dsp->cs_dsp.name; in wm_adsp_request_firmware_file()
776 ret = firmware_request_nowarn(firmware, *filename, cs_dsp->dev); in wm_adsp_request_firmware_file()
862 dsp->fwf_name ? dsp->fwf_name : dsp->cs_dsp.name, in wm_adsp_request_firmware_files()
880 dsp->cs_dsp.client_ops = &wm_adsp1_client_ops; in wm_adsp1_init()
882 ret = cs_dsp_adsp1_init(&dsp->cs_dsp); in wm_adsp1_init()
913 ret = cs_dsp_adsp1_power_up(&dsp->cs_dsp, in wm_adsp1_event()
923 cs_dsp_adsp1_power_down(&dsp->cs_dsp); in wm_adsp1_event()
939 return cs_dsp_set_dspclk(&dsp->cs_dsp, freq); in wm_adsp2_set_dspclk()
972 snprintf(preload, ARRAY_SIZE(preload), "%s Preload", dsp->cs_dsp.name); in wm_adsp2_preloader_put()
1010 ret = cs_dsp_power_up(&dsp->cs_dsp, in wm_adsp_power_up()
1025 cs_dsp_power_down(&dsp->cs_dsp); in wm_adsp_power_down()
1060 static int wm_adsp_pre_run(struct cs_dsp *cs_dsp) in wm_adsp_pre_run() argument
1062 struct wm_adsp *dsp = container_of(cs_dsp, struct wm_adsp, cs_dsp); in wm_adsp_pre_run()
1070 static int wm_adsp_event_post_run(struct cs_dsp *cs_dsp) in wm_adsp_event_post_run() argument
1072 struct wm_adsp *dsp = container_of(cs_dsp, struct wm_adsp, cs_dsp); in wm_adsp_event_post_run()
1080 static void wm_adsp_event_post_stop(struct cs_dsp *cs_dsp) in wm_adsp_event_post_stop() argument
1082 struct wm_adsp *dsp = container_of(cs_dsp, struct wm_adsp, cs_dsp); in wm_adsp_event_post_stop()
1094 return cs_dsp_run(&dsp->cs_dsp); in wm_adsp_run()
1100 cs_dsp_stop(&dsp->cs_dsp); in wm_adsp_stop()
1127 if (!dsp->cs_dsp.no_core_startstop) { in wm_adsp2_component_probe()
1128 snprintf(preload, ARRAY_SIZE(preload), "%s Preload", dsp->cs_dsp.name); in wm_adsp2_component_probe()
1132 cs_dsp_init_debugfs(&dsp->cs_dsp, component->debugfs_root); in wm_adsp2_component_probe()
1142 cs_dsp_cleanup_debugfs(&dsp->cs_dsp); in wm_adsp2_component_remove()
1155 dsp->cs_dsp.client_ops = &wm_adsp2_client_ops; in wm_adsp2_init()
1157 ret = cs_dsp_adsp2_init(&dsp->cs_dsp); in wm_adsp2_init()
1172 dsp->cs_dsp.client_ops = &wm_adsp2_client_ops; in wm_halo_init()
1174 ret = cs_dsp_halo_init(&dsp->cs_dsp); in wm_halo_init()
1184 cs_dsp_remove(&dsp->cs_dsp); in wm_adsp2_remove()
1237 mutex_lock(&dsp->cs_dsp.pwr_lock); in wm_adsp_compr_open()
1277 mutex_unlock(&dsp->cs_dsp.pwr_lock); in wm_adsp_compr_open()
1289 mutex_lock(&dsp->cs_dsp.pwr_lock); in wm_adsp_compr_free()
1297 mutex_unlock(&dsp->cs_dsp.pwr_lock); in wm_adsp_compr_free()
1414 return cs_dsp_read_data_word(&buf->dsp->cs_dsp, buf->host_buf_mem_type, in wm_adsp_buffer_read()
1421 return cs_dsp_write_data_word(&buf->dsp->cs_dsp, buf->host_buf_mem_type, in wm_adsp_buffer_write()
1498 alg_region = cs_dsp_find_alg_region(&dsp->cs_dsp, WMFW_ADSP2_XM, dsp->cs_dsp.fw_id); in wm_adsp_buffer_parse_legacy()
1507 ret = cs_dsp_read_data_word(&dsp->cs_dsp, WMFW_ADSP2_XM, addr, &magic); in wm_adsp_buffer_parse_legacy()
1520 ret = cs_dsp_read_data_word(&dsp->cs_dsp, WMFW_ADSP2_XM, addr, in wm_adsp_buffer_parse_legacy()
1558 struct wm_adsp *dsp = container_of(cs_ctl->dsp, struct wm_adsp, cs_dsp); in wm_adsp_buffer_parse_coeff()
1632 list_for_each_entry(cs_ctl, &dsp->cs_dsp.ctl_list, list) { in wm_adsp_buffer_init()
1707 mutex_lock(&dsp->cs_dsp.pwr_lock); in wm_adsp_compr_trigger()
1743 mutex_unlock(&dsp->cs_dsp.pwr_lock); in wm_adsp_compr_trigger()
1805 mutex_lock(&dsp->cs_dsp.pwr_lock); in wm_adsp_compr_handle_irq()
1843 mutex_unlock(&dsp->cs_dsp.pwr_lock); in wm_adsp_compr_handle_irq()
1873 mutex_lock(&dsp->cs_dsp.pwr_lock); in wm_adsp_compr_pointer()
1917 mutex_unlock(&dsp->cs_dsp.pwr_lock); in wm_adsp_compr_pointer()
1955 ret = cs_dsp_read_raw_data_block(&buf->dsp->cs_dsp, mem_type, adsp_addr, in wm_adsp_buffer_capture_block()
2029 mutex_lock(&dsp->cs_dsp.pwr_lock); in wm_adsp_compr_copy()
2036 mutex_unlock(&dsp->cs_dsp.pwr_lock); in wm_adsp_compr_copy()
2042 static void wm_adsp_fatal_error(struct cs_dsp *cs_dsp) in wm_adsp_fatal_error() argument
2044 struct wm_adsp *dsp = container_of(cs_dsp, struct wm_adsp, cs_dsp); in wm_adsp_fatal_error()
2059 cs_dsp_adsp2_bus_error(&dsp->cs_dsp); in wm_adsp2_bus_error()
2069 cs_dsp_halo_bus_error(&dsp->cs_dsp); in wm_halo_bus_error()
2079 cs_dsp_halo_wdt_expire(&dsp->cs_dsp); in wm_halo_wdt_expire()