Lines Matching refs:wm_adsp
437 struct wm_adsp *dsp;
454 struct wm_adsp *dsp;
488 static int wm_adsp_buffer_init(struct wm_adsp *dsp);
489 static int wm_adsp_buffer_free(struct wm_adsp *dsp);
604 struct wm_adsp *dsp;
641 static void wm_adsp_debugfs_save_wmfwname(struct wm_adsp *dsp, const char *s) in wm_adsp_debugfs_save_wmfwname()
649 static void wm_adsp_debugfs_save_binname(struct wm_adsp *dsp, const char *s) in wm_adsp_debugfs_save_binname()
657 static void wm_adsp_debugfs_clear(struct wm_adsp *dsp) in wm_adsp_debugfs_clear()
669 struct wm_adsp *dsp = file->private_data; in wm_adsp_debugfs_wmfw_read()
689 struct wm_adsp *dsp = file->private_data; in wm_adsp_debugfs_bin_read()
725 static void wm_adsp2_init_debugfs(struct wm_adsp *dsp, in wm_adsp2_init_debugfs()
745 static void wm_adsp2_cleanup_debugfs(struct wm_adsp *dsp) in wm_adsp2_cleanup_debugfs()
751 static inline void wm_adsp2_init_debugfs(struct wm_adsp *dsp, in wm_adsp2_init_debugfs()
756 static inline void wm_adsp2_cleanup_debugfs(struct wm_adsp *dsp) in wm_adsp2_cleanup_debugfs()
760 static inline void wm_adsp_debugfs_save_wmfwname(struct wm_adsp *dsp, in wm_adsp_debugfs_save_wmfwname()
765 static inline void wm_adsp_debugfs_save_binname(struct wm_adsp *dsp, in wm_adsp_debugfs_save_binname()
770 static inline void wm_adsp_debugfs_clear(struct wm_adsp *dsp) in wm_adsp_debugfs_clear()
780 struct wm_adsp *dsp = snd_soc_component_get_drvdata(component); in wm_adsp_fw_get()
793 struct wm_adsp *dsp = snd_soc_component_get_drvdata(component); in wm_adsp_fw_put()
826 static struct wm_adsp_region const *wm_adsp_find_region(struct wm_adsp *dsp, in wm_adsp_find_region()
873 static void wm_adsp_read_fw_status(struct wm_adsp *dsp, in wm_adsp_read_fw_status()
888 static void wm_adsp2_show_fw_status(struct wm_adsp *dsp) in wm_adsp2_show_fw_status()
900 static void wm_adsp2v2_show_fw_status(struct wm_adsp *dsp) in wm_adsp2v2_show_fw_status()
911 static void wm_halo_show_fw_status(struct wm_adsp *dsp) in wm_halo_show_fw_status()
931 struct wm_adsp *dsp = ctl->dsp; in wm_coeff_base_reg()
973 struct wm_adsp *dsp = ctl->dsp; in wm_coeff_write_acked_control()
1033 struct wm_adsp *dsp = ctl->dsp; in wm_coeff_write_control()
1138 struct wm_adsp *dsp = ctl->dsp; in wm_coeff_read_control()
1238 struct wm_adsp *dsp;
1274 static int wmfw_add_ctl(struct wm_adsp *dsp, struct wm_coeff_ctl *ctl) in wmfw_add_ctl()
1323 static int wm_coeff_init_control_caches(struct wm_adsp *dsp) in wm_coeff_init_control_caches()
1349 static int wm_coeff_sync_controls(struct wm_adsp *dsp) in wm_coeff_sync_controls()
1367 static void wm_adsp_signal_event_controls(struct wm_adsp *dsp, in wm_adsp_signal_event_controls()
1405 static int wm_adsp_create_control(struct wm_adsp *dsp, in wm_adsp_create_control()
1579 static inline void wm_coeff_parse_alg(struct wm_adsp *dsp, const u8 **data, in wm_coeff_parse_alg()
1609 static inline void wm_coeff_parse_coeff(struct wm_adsp *dsp, const u8 **data, in wm_coeff_parse_coeff()
1655 static int wm_adsp_check_coeff_flags(struct wm_adsp *dsp, in wm_adsp_check_coeff_flags()
1670 static int wm_adsp_parse_coeff(struct wm_adsp *dsp, in wm_adsp_parse_coeff()
1741 static unsigned int wm_adsp1_parse_sizes(struct wm_adsp *dsp, in wm_adsp1_parse_sizes()
1757 static unsigned int wm_adsp2_parse_sizes(struct wm_adsp *dsp, in wm_adsp2_parse_sizes()
1773 static bool wm_adsp_validate_version(struct wm_adsp *dsp, unsigned int version) in wm_adsp_validate_version()
1787 static bool wm_halo_validate_version(struct wm_adsp *dsp, unsigned int version) in wm_halo_validate_version()
1797 static int wm_adsp_load(struct wm_adsp *dsp) in wm_adsp_load()
1998 static void wm_adsp_ctl_fixup_base(struct wm_adsp *dsp, in wm_adsp_ctl_fixup_base()
2012 static void *wm_adsp_read_algs(struct wm_adsp *dsp, size_t n_algs, in wm_adsp_read_algs()
2065 wm_adsp_find_alg_region(struct wm_adsp *dsp, int type, unsigned int id) in wm_adsp_find_alg_region()
2077 static struct wm_adsp_alg_region *wm_adsp_create_region(struct wm_adsp *dsp, in wm_adsp_create_region()
2099 static void wm_adsp_free_alg_regions(struct wm_adsp *dsp) in wm_adsp_free_alg_regions()
2112 static void wmfw_parse_id_header(struct wm_adsp *dsp, in wmfw_parse_id_header()
2124 static void wmfw_v3_parse_id_header(struct wm_adsp *dsp, in wmfw_v3_parse_id_header()
2138 static int wm_adsp_create_regions(struct wm_adsp *dsp, __be32 id, int nregions, in wm_adsp_create_regions()
2153 static int wm_adsp1_setup_algs(struct wm_adsp *dsp) in wm_adsp1_setup_algs()
2254 static int wm_adsp2_setup_algs(struct wm_adsp *dsp) in wm_adsp2_setup_algs()
2383 static int wm_halo_create_regions(struct wm_adsp *dsp, __be32 id, in wm_halo_create_regions()
2395 static int wm_halo_setup_algs(struct wm_adsp *dsp) in wm_halo_setup_algs()
2455 static int wm_adsp_load_coeff(struct wm_adsp *dsp) in wm_adsp_load_coeff()
2648 static int wm_adsp_create_name(struct wm_adsp *dsp) in wm_adsp_create_name()
2672 static int wm_adsp_common_init(struct wm_adsp *dsp) in wm_adsp_common_init()
2690 int wm_adsp1_init(struct wm_adsp *dsp) in wm_adsp1_init()
2703 struct wm_adsp *dsps = snd_soc_component_get_drvdata(component); in wm_adsp1_event()
2704 struct wm_adsp *dsp = &dsps[w->shift]; in wm_adsp1_event()
2813 static int wm_adsp2v2_enable_core(struct wm_adsp *dsp) in wm_adsp2v2_enable_core()
2840 static int wm_adsp2_enable_core(struct wm_adsp *dsp) in wm_adsp2_enable_core()
2852 static int wm_adsp2_lock(struct wm_adsp *dsp, unsigned int lock_regions) in wm_adsp2_lock()
2882 static int wm_adsp2_enable_memory(struct wm_adsp *dsp) in wm_adsp2_enable_memory()
2888 static void wm_adsp2_disable_memory(struct wm_adsp *dsp) in wm_adsp2_disable_memory()
2894 static void wm_adsp2_disable_core(struct wm_adsp *dsp) in wm_adsp2_disable_core()
2904 static void wm_adsp2v2_disable_core(struct wm_adsp *dsp) in wm_adsp2v2_disable_core()
2913 struct wm_adsp *dsp = container_of(work, in wm_adsp_boot_work()
2914 struct wm_adsp, in wm_adsp_boot_work()
2968 static int wm_halo_configure_mpu(struct wm_adsp *dsp, unsigned int lock_regions) in wm_halo_configure_mpu()
3002 struct wm_adsp *dsps = snd_soc_component_get_drvdata(component); in wm_adsp2_set_dspclk()
3003 struct wm_adsp *dsp = &dsps[w->shift]; in wm_adsp2_set_dspclk()
3020 struct wm_adsp *dsps = snd_soc_component_get_drvdata(component); in wm_adsp2_preloader_get()
3023 struct wm_adsp *dsp = &dsps[mc->shift - 1]; in wm_adsp2_preloader_get()
3035 struct wm_adsp *dsps = snd_soc_component_get_drvdata(component); in wm_adsp2_preloader_put()
3039 struct wm_adsp *dsp = &dsps[mc->shift - 1]; in wm_adsp2_preloader_put()
3059 static void wm_adsp_stop_watchdog(struct wm_adsp *dsp) in wm_adsp_stop_watchdog()
3065 static void wm_halo_stop_watchdog(struct wm_adsp *dsp) in wm_halo_stop_watchdog()
3075 struct wm_adsp *dsps = snd_soc_component_get_drvdata(component); in wm_adsp_early_event()
3076 struct wm_adsp *dsp = &dsps[w->shift]; in wm_adsp_early_event()
3113 static int wm_adsp2_start_core(struct wm_adsp *dsp) in wm_adsp2_start_core()
3120 static void wm_adsp2_stop_core(struct wm_adsp *dsp) in wm_adsp2_stop_core()
3130 struct wm_adsp *dsps = snd_soc_component_get_drvdata(component); in wm_adsp_event()
3131 struct wm_adsp *dsp = &dsps[w->shift]; in wm_adsp_event()
3227 static int wm_halo_start_core(struct wm_adsp *dsp) in wm_halo_start_core()
3234 static void wm_halo_stop_core(struct wm_adsp *dsp) in wm_halo_stop_core()
3244 int wm_adsp2_component_probe(struct wm_adsp *dsp, struct snd_soc_component *component) in wm_adsp2_component_probe()
3259 int wm_adsp2_component_remove(struct wm_adsp *dsp, struct snd_soc_component *component) in wm_adsp2_component_remove()
3267 int wm_adsp2_init(struct wm_adsp *dsp) in wm_adsp2_init()
3305 int wm_halo_init(struct wm_adsp *dsp) in wm_halo_init()
3321 void wm_adsp2_remove(struct wm_adsp *dsp) in wm_adsp2_remove()
3377 int wm_adsp_compr_open(struct wm_adsp *dsp, struct snd_compr_stream *stream) in wm_adsp_compr_open()
3432 struct wm_adsp *dsp = compr->dsp; in wm_adsp_compr_free()
3452 struct wm_adsp *dsp = compr->dsp; in wm_adsp_compr_check_params()
3554 static int wm_adsp_read_data_block(struct wm_adsp *dsp, int mem_type, in wm_adsp_read_data_block()
3578 static inline int wm_adsp_read_data_word(struct wm_adsp *dsp, int mem_type, in wm_adsp_read_data_word()
3584 static int wm_adsp_write_data_word(struct wm_adsp *dsp, int mem_type, in wm_adsp_write_data_word()
3675 static struct wm_adsp_compr_buf *wm_adsp_buffer_alloc(struct wm_adsp *dsp) in wm_adsp_buffer_alloc()
3692 static int wm_adsp_buffer_parse_legacy(struct wm_adsp *dsp) in wm_adsp_buffer_parse_legacy()
3825 static int wm_adsp_buffer_init(struct wm_adsp *dsp) in wm_adsp_buffer_init()
3863 static int wm_adsp_buffer_free(struct wm_adsp *dsp) in wm_adsp_buffer_free()
3899 struct wm_adsp *dsp = compr->dsp; in wm_adsp_compr_trigger()
3996 int wm_adsp_compr_handle_irq(struct wm_adsp *dsp) in wm_adsp_compr_handle_irq()
4063 struct wm_adsp *dsp = compr->dsp; in wm_adsp_compr_pointer()
4177 struct wm_adsp *dsp = compr->dsp; in wm_adsp_compr_read()
4221 struct wm_adsp *dsp = compr->dsp; in wm_adsp_compr_copy()
4237 static void wm_adsp_fatal_error(struct wm_adsp *dsp) in wm_adsp_fatal_error()
4251 struct wm_adsp *dsp = (struct wm_adsp *)data; in wm_adsp2_bus_error()
4317 struct wm_adsp *dsp = (struct wm_adsp *)data; in wm_halo_bus_error()
4374 struct wm_adsp *dsp = data; in wm_halo_wdt_expire()