Lines Matching refs:wm_adsp
3 * wm_adsp.c -- Wolfson ADSP support
33 #include "wm_adsp.h"
441 struct wm_adsp *dsp;
458 struct wm_adsp *dsp;
492 static int wm_adsp_buffer_init(struct wm_adsp *dsp);
493 static int wm_adsp_buffer_free(struct wm_adsp *dsp);
613 struct wm_adsp *dsp;
650 static void wm_adsp_debugfs_save_wmfwname(struct wm_adsp *dsp, const char *s)
658 static void wm_adsp_debugfs_save_binname(struct wm_adsp *dsp, const char *s)
666 static void wm_adsp_debugfs_clear(struct wm_adsp *dsp)
678 struct wm_adsp *dsp = file->private_data;
698 struct wm_adsp *dsp = file->private_data;
734 static void wm_adsp2_init_debugfs(struct wm_adsp *dsp,
754 static void wm_adsp2_cleanup_debugfs(struct wm_adsp *dsp)
760 static inline void wm_adsp2_init_debugfs(struct wm_adsp *dsp,
765 static inline void wm_adsp2_cleanup_debugfs(struct wm_adsp *dsp)
769 static inline void wm_adsp_debugfs_save_wmfwname(struct wm_adsp *dsp,
774 static inline void wm_adsp_debugfs_save_binname(struct wm_adsp *dsp,
779 static inline void wm_adsp_debugfs_clear(struct wm_adsp *dsp)
789 struct wm_adsp *dsp = snd_soc_component_get_drvdata(component);
802 struct wm_adsp *dsp = snd_soc_component_get_drvdata(component);
835 static struct wm_adsp_region const *wm_adsp_find_region(struct wm_adsp *dsp,
882 static void wm_adsp_read_fw_status(struct wm_adsp *dsp,
897 static void wm_adsp2_show_fw_status(struct wm_adsp *dsp)
909 static void wm_adsp2v2_show_fw_status(struct wm_adsp *dsp)
920 static void wm_halo_show_fw_status(struct wm_adsp *dsp)
940 struct wm_adsp *dsp = ctl->dsp;
982 struct wm_adsp *dsp = ctl->dsp;
1042 struct wm_adsp *dsp = ctl->dsp;
1150 struct wm_adsp *dsp = ctl->dsp;
1250 struct wm_adsp *dsp;
1286 static int wmfw_add_ctl(struct wm_adsp *dsp, struct wm_coeff_ctl *ctl)
1335 static int wm_coeff_init_control_caches(struct wm_adsp *dsp)
1361 static int wm_coeff_sync_controls(struct wm_adsp *dsp)
1380 static void wm_adsp_signal_event_controls(struct wm_adsp *dsp,
1419 static int wm_adsp_create_control(struct wm_adsp *dsp,
1605 static inline void wm_coeff_parse_alg(struct wm_adsp *dsp, const u8 **data,
1635 static inline void wm_coeff_parse_coeff(struct wm_adsp *dsp, const u8 **data,
1681 static int wm_adsp_check_coeff_flags(struct wm_adsp *dsp,
1696 static int wm_adsp_parse_coeff(struct wm_adsp *dsp,
1767 static unsigned int wm_adsp1_parse_sizes(struct wm_adsp *dsp,
1783 static unsigned int wm_adsp2_parse_sizes(struct wm_adsp *dsp,
1799 static bool wm_adsp_validate_version(struct wm_adsp *dsp, unsigned int version)
1813 static bool wm_halo_validate_version(struct wm_adsp *dsp, unsigned int version)
1823 static int wm_adsp_load(struct wm_adsp *dsp)
2029 static struct wm_coeff_ctl *wm_adsp_get_ctl(struct wm_adsp *dsp,
2052 int wm_adsp_write_ctl(struct wm_adsp *dsp, const char *name, int type,
2094 int wm_adsp_read_ctl(struct wm_adsp *dsp, const char *name, int type,
2110 static void wm_adsp_ctl_fixup_base(struct wm_adsp *dsp,
2124 static void *wm_adsp_read_algs(struct wm_adsp *dsp, size_t n_algs,
2177 wm_adsp_find_alg_region(struct wm_adsp *dsp, int type, unsigned int id)
2189 static struct wm_adsp_alg_region *wm_adsp_create_region(struct wm_adsp *dsp,
2211 static void wm_adsp_free_alg_regions(struct wm_adsp *dsp)
2224 static void wmfw_parse_id_header(struct wm_adsp *dsp,
2236 static void wmfw_v3_parse_id_header(struct wm_adsp *dsp,
2250 static int wm_adsp_create_regions(struct wm_adsp *dsp, __be32 id, int nregions,
2265 static int wm_adsp1_setup_algs(struct wm_adsp *dsp)
2366 static int wm_adsp2_setup_algs(struct wm_adsp *dsp)
2495 static int wm_halo_create_regions(struct wm_adsp *dsp, __be32 id,
2507 static int wm_halo_setup_algs(struct wm_adsp *dsp)
2567 static int wm_adsp_load_coeff(struct wm_adsp *dsp)
2761 static int wm_adsp_create_name(struct wm_adsp *dsp)
2785 static int wm_adsp_common_init(struct wm_adsp *dsp)
2803 int wm_adsp1_init(struct wm_adsp *dsp)
2816 struct wm_adsp *dsps = snd_soc_component_get_drvdata(component);
2817 struct wm_adsp *dsp = &dsps[w->shift];
2926 static int wm_adsp2v2_enable_core(struct wm_adsp *dsp)
2953 static int wm_adsp2_enable_core(struct wm_adsp *dsp)
2965 static int wm_adsp2_lock(struct wm_adsp *dsp, unsigned int lock_regions)
2995 static int wm_adsp2_enable_memory(struct wm_adsp *dsp)
3001 static void wm_adsp2_disable_memory(struct wm_adsp *dsp)
3007 static void wm_adsp2_disable_core(struct wm_adsp *dsp)
3017 static void wm_adsp2v2_disable_core(struct wm_adsp *dsp)
3026 struct wm_adsp *dsp = container_of(work,
3027 struct wm_adsp,
3081 static int wm_halo_configure_mpu(struct wm_adsp *dsp, unsigned int lock_regions)
3115 struct wm_adsp *dsps = snd_soc_component_get_drvdata(component);
3116 struct wm_adsp *dsp = &dsps[w->shift];
3133 struct wm_adsp *dsps = snd_soc_component_get_drvdata(component);
3136 struct wm_adsp *dsp = &dsps[mc->shift - 1];
3148 struct wm_adsp *dsps = snd_soc_component_get_drvdata(component);
3152 struct wm_adsp *dsp = &dsps[mc->shift - 1];
3172 static void wm_adsp_stop_watchdog(struct wm_adsp *dsp)
3178 static void wm_halo_stop_watchdog(struct wm_adsp *dsp)
3188 struct wm_adsp *dsps = snd_soc_component_get_drvdata(component);
3189 struct wm_adsp *dsp = &dsps[w->shift];
3226 static int wm_adsp2_start_core(struct wm_adsp *dsp)
3233 static void wm_adsp2_stop_core(struct wm_adsp *dsp)
3243 struct wm_adsp *dsps = snd_soc_component_get_drvdata(component);
3244 struct wm_adsp *dsp = &dsps[w->shift];
3340 static int wm_halo_start_core(struct wm_adsp *dsp)
3347 static void wm_halo_stop_core(struct wm_adsp *dsp)
3357 int wm_adsp2_component_probe(struct wm_adsp *dsp, struct snd_soc_component *component)
3372 int wm_adsp2_component_remove(struct wm_adsp *dsp, struct snd_soc_component *component)
3380 int wm_adsp2_init(struct wm_adsp *dsp)
3418 int wm_halo_init(struct wm_adsp *dsp)
3434 void wm_adsp2_remove(struct wm_adsp *dsp)
3490 int wm_adsp_compr_open(struct wm_adsp *dsp, struct snd_compr_stream *stream)
3546 struct wm_adsp *dsp = compr->dsp;
3566 struct wm_adsp *dsp = compr->dsp;
3670 static int wm_adsp_read_data_block(struct wm_adsp *dsp, int mem_type,
3694 static inline int wm_adsp_read_data_word(struct wm_adsp *dsp, int mem_type,
3700 static int wm_adsp_write_data_word(struct wm_adsp *dsp, int mem_type,
3795 static struct wm_adsp_compr_buf *wm_adsp_buffer_alloc(struct wm_adsp *dsp)
3812 static int wm_adsp_buffer_parse_legacy(struct wm_adsp *dsp)
3945 static int wm_adsp_buffer_init(struct wm_adsp *dsp)
3983 static int wm_adsp_buffer_free(struct wm_adsp *dsp)
4020 struct wm_adsp *dsp = compr->dsp;
4117 int wm_adsp_compr_handle_irq(struct wm_adsp *dsp)
4185 struct wm_adsp *dsp = compr->dsp;
4299 struct wm_adsp *dsp = compr->dsp;
4344 struct wm_adsp *dsp = compr->dsp;
4360 static void wm_adsp_fatal_error(struct wm_adsp *dsp)
4374 struct wm_adsp *dsp = (struct wm_adsp *)data;
4440 struct wm_adsp *dsp = (struct wm_adsp *)data;
4497 struct wm_adsp *dsp = data;