Lines Matching refs:cs_dsp

35 	dev_crit(_dsp->cs_dsp.dev, "%s: " fmt, _dsp->cs_dsp.name, ##__VA_ARGS__)
37 dev_err(_dsp->cs_dsp.dev, "%s: " fmt, _dsp->cs_dsp.name, ##__VA_ARGS__)
39 dev_warn(_dsp->cs_dsp.dev, "%s: " fmt, _dsp->cs_dsp.name, ##__VA_ARGS__)
41 dev_info(_dsp->cs_dsp.dev, "%s: " fmt, _dsp->cs_dsp.name, ##__VA_ARGS__)
43 dev_dbg(_dsp->cs_dsp.dev, "%s: " fmt, _dsp->cs_dsp.name, ##__VA_ARGS__)
344 mutex_lock(&dsp[e->shift_l].cs_dsp.pwr_lock); in wm_adsp_fw_put()
346 if (dsp[e->shift_l].cs_dsp.booted || !list_empty(&dsp[e->shift_l].compr_list)) in wm_adsp_fw_put()
351 mutex_unlock(&dsp[e->shift_l].cs_dsp.pwr_lock); in wm_adsp_fw_put()
561 cs_dsp); in wm_adsp_ctl_work()
599 struct wm_adsp *dsp = container_of(cs_ctl->dsp, struct wm_adsp, cs_dsp); in wm_adsp_control_add()
600 struct cs_dsp *cs_dsp = &dsp->cs_dsp; in wm_adsp_control_add() local
615 switch (cs_dsp->fw_ver) { in wm_adsp_control_add()
619 "%s %s %x", cs_dsp->name, region_name, in wm_adsp_control_add()
624 "%s%c %.12s %x", cs_dsp->name, *region_name, in wm_adsp_control_add()
629 "%s %.12s %x", cs_dsp->name, in wm_adsp_control_add()
686 struct cs_dsp_coeff_ctl *cs_ctl = cs_dsp_get_ctl(&dsp->cs_dsp, name, type, alg); in wm_adsp_write_ctl()
690 mutex_lock(&dsp->cs_dsp.pwr_lock); in wm_adsp_write_ctl()
692 mutex_unlock(&dsp->cs_dsp.pwr_lock); in wm_adsp_write_ctl()
711 mutex_lock(&dsp->cs_dsp.pwr_lock); in wm_adsp_read_ctl()
712 ret = cs_dsp_coeff_read_ctrl(cs_dsp_get_ctl(&dsp->cs_dsp, name, type, alg), in wm_adsp_read_ctl()
714 mutex_unlock(&dsp->cs_dsp.pwr_lock); in wm_adsp_read_ctl()
741 struct cs_dsp *cs_dsp = &dsp->cs_dsp; in wm_adsp_request_firmware_file() local
775 ret = firmware_request_nowarn(firmware, *filename, cs_dsp->dev); in wm_adsp_request_firmware_file()
880 p = devm_kstrdup(dsp->cs_dsp.dev, dsp->cs_dsp.name, GFP_KERNEL); in wm_adsp_common_init()
896 dsp->cs_dsp.client_ops = &wm_adsp1_client_ops; in wm_adsp1_init()
898 ret = cs_dsp_adsp1_init(&dsp->cs_dsp); in wm_adsp1_init()
929 ret = cs_dsp_adsp1_power_up(&dsp->cs_dsp, in wm_adsp1_event()
939 cs_dsp_adsp1_power_down(&dsp->cs_dsp); in wm_adsp1_event()
955 return cs_dsp_set_dspclk(&dsp->cs_dsp, freq); in wm_adsp2_set_dspclk()
988 snprintf(preload, ARRAY_SIZE(preload), "%s Preload", dsp->cs_dsp.name); in wm_adsp2_preloader_put()
1026 ret = cs_dsp_power_up(&dsp->cs_dsp, in wm_adsp_power_up()
1041 cs_dsp_power_down(&dsp->cs_dsp); in wm_adsp_power_down()
1076 static int wm_adsp_pre_run(struct cs_dsp *cs_dsp) in wm_adsp_pre_run() argument
1078 struct wm_adsp *dsp = container_of(cs_dsp, struct wm_adsp, cs_dsp); in wm_adsp_pre_run()
1086 static int wm_adsp_event_post_run(struct cs_dsp *cs_dsp) in wm_adsp_event_post_run() argument
1088 struct wm_adsp *dsp = container_of(cs_dsp, struct wm_adsp, cs_dsp); in wm_adsp_event_post_run()
1096 static void wm_adsp_event_post_stop(struct cs_dsp *cs_dsp) in wm_adsp_event_post_stop() argument
1098 struct wm_adsp *dsp = container_of(cs_dsp, struct wm_adsp, cs_dsp); in wm_adsp_event_post_stop()
1117 ret = cs_dsp_run(&dsp->cs_dsp); in wm_adsp_event()
1120 cs_dsp_stop(&dsp->cs_dsp); in wm_adsp_event()
1134 if (!dsp->cs_dsp.no_core_startstop) { in wm_adsp2_component_probe()
1135 snprintf(preload, ARRAY_SIZE(preload), "%s Preload", dsp->cs_dsp.name); in wm_adsp2_component_probe()
1139 cs_dsp_init_debugfs(&dsp->cs_dsp, component->debugfs_root); in wm_adsp2_component_probe()
1149 cs_dsp_cleanup_debugfs(&dsp->cs_dsp); in wm_adsp2_component_remove()
1162 dsp->cs_dsp.client_ops = &wm_adsp2_client_ops; in wm_adsp2_init()
1164 ret = cs_dsp_adsp2_init(&dsp->cs_dsp); in wm_adsp2_init()
1179 dsp->cs_dsp.client_ops = &wm_adsp2_client_ops; in wm_halo_init()
1181 ret = cs_dsp_halo_init(&dsp->cs_dsp); in wm_halo_init()
1191 cs_dsp_remove(&dsp->cs_dsp); in wm_adsp2_remove()
1244 mutex_lock(&dsp->cs_dsp.pwr_lock); in wm_adsp_compr_open()
1284 mutex_unlock(&dsp->cs_dsp.pwr_lock); in wm_adsp_compr_open()
1296 mutex_lock(&dsp->cs_dsp.pwr_lock); in wm_adsp_compr_free()
1304 mutex_unlock(&dsp->cs_dsp.pwr_lock); in wm_adsp_compr_free()
1421 return cs_dsp_read_data_word(&buf->dsp->cs_dsp, buf->host_buf_mem_type, in wm_adsp_buffer_read()
1428 return cs_dsp_write_data_word(&buf->dsp->cs_dsp, buf->host_buf_mem_type, in wm_adsp_buffer_write()
1501 alg_region = cs_dsp_find_alg_region(&dsp->cs_dsp, WMFW_ADSP2_XM, dsp->cs_dsp.fw_id); in wm_adsp_buffer_parse_legacy()
1510 ret = cs_dsp_read_data_word(&dsp->cs_dsp, WMFW_ADSP2_XM, addr, &magic); in wm_adsp_buffer_parse_legacy()
1523 ret = cs_dsp_read_data_word(&dsp->cs_dsp, WMFW_ADSP2_XM, addr, in wm_adsp_buffer_parse_legacy()
1561 struct wm_adsp *dsp = container_of(cs_ctl->dsp, struct wm_adsp, cs_dsp); in wm_adsp_buffer_parse_coeff()
1635 list_for_each_entry(cs_ctl, &dsp->cs_dsp.ctl_list, list) { in wm_adsp_buffer_init()
1710 mutex_lock(&dsp->cs_dsp.pwr_lock); in wm_adsp_compr_trigger()
1746 mutex_unlock(&dsp->cs_dsp.pwr_lock); in wm_adsp_compr_trigger()
1808 mutex_lock(&dsp->cs_dsp.pwr_lock); in wm_adsp_compr_handle_irq()
1846 mutex_unlock(&dsp->cs_dsp.pwr_lock); in wm_adsp_compr_handle_irq()
1876 mutex_lock(&dsp->cs_dsp.pwr_lock); in wm_adsp_compr_pointer()
1920 mutex_unlock(&dsp->cs_dsp.pwr_lock); in wm_adsp_compr_pointer()
1958 ret = cs_dsp_read_raw_data_block(&buf->dsp->cs_dsp, mem_type, adsp_addr, in wm_adsp_buffer_capture_block()
2032 mutex_lock(&dsp->cs_dsp.pwr_lock); in wm_adsp_compr_copy()
2039 mutex_unlock(&dsp->cs_dsp.pwr_lock); in wm_adsp_compr_copy()
2045 static void wm_adsp_fatal_error(struct cs_dsp *cs_dsp) in wm_adsp_fatal_error() argument
2047 struct wm_adsp *dsp = container_of(cs_dsp, struct wm_adsp, cs_dsp); in wm_adsp_fatal_error()
2062 cs_dsp_adsp2_bus_error(&dsp->cs_dsp); in wm_adsp2_bus_error()
2072 cs_dsp_halo_bus_error(&dsp->cs_dsp); in wm_halo_bus_error()
2082 cs_dsp_halo_wdt_expire(&dsp->cs_dsp); in wm_halo_wdt_expire()