/linux/sound/soc/intel/avs/ |
H A D | avs.h | 22 struct avs_dev; 46 int (* const power)(struct avs_dev *, u32, bool); 47 int (* const reset)(struct avs_dev *, u32, bool); 48 int (* const stall)(struct avs_dev *, u32, bool); 49 irqreturn_t (* const dsp_interrupt)(struct avs_dev *); 50 void (* const int_control)(struct avs_dev *, bool); 51 int (* const load_basefw)(struct avs_dev *, struct firmware *); 52 int (* const load_lib)(struct avs_dev *, struct firmware *, u32); 53 int (* const transfer_mods)(struct avs_dev *, bool, struct avs_module_entry *, u32); 54 int (* const config_basefw)(struct avs_dev *); 133 struct avs_dev { global() struct 134 baseavs_dev global() argument 135 devavs_dev global() argument 137 dsp_baavs_dev global() argument 138 specavs_dev global() argument 139 ipcavs_dev global() argument 141 fw_cfgavs_dev global() argument 142 hw_cfgavs_dev global() argument 143 mods_infoavs_dev global() argument 144 mod_idasavs_dev global() argument 145 modres_mutexavs_dev global() argument 146 modcfg_bufavs_dev global() argument 147 ppl_idaavs_dev global() argument 148 fw_listavs_dev global() argument 149 core_refsavs_dev global() argument 150 lib_namesavs_dev global() argument 151 num_lp_pathsavs_dev global() argument 152 l1sen_counteravs_dev global() argument 177 num_probe_streamsavs_dev global() argument [all...] |
H A D | messages.h | 14 struct avs_dev; 298 int avs_ipc_set_boot_config(struct avs_dev *adev, u32 dma_id, u32 purge); 301 int avs_ipc_load_modules(struct avs_dev *adev, u16 *mod_ids, u32 num_mod_ids); 302 int avs_ipc_unload_modules(struct avs_dev *adev, u16 *mod_ids, u32 num_mod_ids); 303 int avs_ipc_load_library(struct avs_dev *adev, u32 dma_id, u32 lib_id); 314 int avs_ipc_create_pipeline(struct avs_dev *adev, u16 req_size, u8 priority, 316 int avs_ipc_delete_pipeline(struct avs_dev *adev, u8 instance_id); 317 int avs_ipc_set_pipeline_state(struct avs_dev *adev, u8 instance_id, 319 int avs_ipc_get_pipeline_state(struct avs_dev *adev, u8 instance_id, 323 int avs_ipc_init_instance(struct avs_dev *ade [all...] |
H A D | utils.c | 16 static int avs_module_entry_index(struct avs_dev *adev, const guid_t *uuid) in avs_module_entry_index() 32 static int avs_module_id_entry_index(struct avs_dev *adev, u32 module_id) in avs_module_id_entry_index() 47 int avs_get_module_entry(struct avs_dev *adev, const guid_t *uuid, struct avs_module_entry *entry) in avs_get_module_entry() 61 int avs_get_module_id_entry(struct avs_dev *adev, u32 module_id, struct avs_module_entry *entry) in avs_get_module_id_entry() 75 int avs_get_module_id(struct avs_dev *adev, const guid_t *uuid) in avs_get_module_id() 84 bool avs_is_module_ida_empty(struct avs_dev *adev, u32 module_id) in avs_is_module_ida_empty() 100 static void avs_module_ida_destroy(struct avs_dev *adev) in avs_module_ida_destroy() 113 avs_module_ida_alloc(struct avs_dev *adev, struct avs_mods_info *newinfo, bool purge) in avs_module_ida_alloc() 157 int avs_module_info_init(struct avs_dev *adev, bool purge) in avs_module_info_init() 183 void avs_module_info_free(struct avs_dev *ade [all...] |
H A D | messages.c | 15 int avs_ipc_set_boot_config(struct avs_dev *adev, u32 dma_id, u32 purge) in avs_ipc_set_boot_config() 28 int avs_ipc_load_modules(struct avs_dev *adev, u16 *mod_ids, u32 num_mod_ids) in avs_ipc_load_modules() 42 int avs_ipc_unload_modules(struct avs_dev *adev, u16 *mod_ids, u32 num_mod_ids) in avs_ipc_unload_modules() 55 int avs_ipc_load_library(struct avs_dev *adev, u32 dma_id, u32 lib_id) in avs_ipc_load_library() 67 int avs_ipc_create_pipeline(struct avs_dev *adev, u16 req_size, u8 priority, in avs_ipc_create_pipeline() 83 int avs_ipc_delete_pipeline(struct avs_dev *adev, u8 instance_id) in avs_ipc_delete_pipeline() 94 int avs_ipc_set_pipeline_state(struct avs_dev *adev, u8 instance_id, in avs_ipc_set_pipeline_state() 107 int avs_ipc_get_pipeline_state(struct avs_dev *adev, u8 instance_id, in avs_ipc_get_pipeline_state() 142 int avs_ipc_init_instance(struct avs_dev *adev, u16 module_id, u8 instance_id, in avs_ipc_init_instance() 178 int avs_ipc_delete_instance(struct avs_dev *ade [all...] |
H A D | ipc.c | 21 avs_dsp_set_d0ix(struct avs_dev *adev, bool enable) in avs_dsp_set_d0ix() 44 static void avs_dsp_schedule_d0ix(struct avs_dev *adev, struct avs_ipc_msg *tx) in avs_dsp_schedule_d0ix() 60 static int avs_dsp_wake_d0i0(struct avs_dev *adev, struct avs_ipc_msg *tx) in avs_dsp_wake_d0i0() 72 int avs_dsp_disable_d0ix(struct avs_dev *adev) in avs_dsp_disable_d0ix() 85 int avs_dsp_enable_d0ix(struct avs_dev *adev) in avs_dsp_enable_d0ix() 95 static void avs_dsp_recovery(struct avs_dev *adev) in avs_dsp_recovery() 157 static void avs_dsp_exception_caught(struct avs_dev *adev, union avs_notify_msg *msg) in avs_dsp_exception_caught() 184 static void avs_dsp_receive_rx(struct avs_dev *adev, u64 header) in avs_dsp_receive_rx() 208 static void avs_dsp_process_notification(struct avs_dev *adev, u64 header) in avs_dsp_process_notification() 286 void avs_dsp_process_response(struct avs_dev *ade [all...] |
H A D | debugfs.c | 36 bool avs_logging_fw(struct avs_dev *adev) in avs_logging_fw() 41 void avs_dump_fw_log(struct avs_dev *adev, const void __iomem *src, unsigned int len) in avs_dump_fw_log() 46 void avs_dump_fw_log_wakeup(struct avs_dev *adev, const void __iomem *src, unsigned int len) in avs_dump_fw_log_wakeup() 54 struct avs_dev *adev = file->private_data; in fw_regs_read() 76 struct avs_dev *adev = file->private_data; in debug_window_read() 100 struct avs_dev *adev = file->private_data; in probe_points_read() 140 struct avs_dev *adev = file->private_data; in probe_points_write() 177 struct avs_dev *adev = file->private_data; in probe_points_disconnect_write() 213 struct avs_dev *adev = file->private_data; in strace_read() 234 struct avs_dev *ade in strace_open() [all...] |
H A D | dsp.c | 17 int avs_dsp_core_power(struct avs_dev *adev, u32 core_mask, bool power) in avs_dsp_core_power() 46 int avs_dsp_core_reset(struct avs_dev *adev, u32 core_mask, bool reset) in avs_dsp_core_reset() 70 int avs_dsp_core_stall(struct avs_dev *adev, u32 core_mask, bool stall) in avs_dsp_core_stall() 98 int avs_dsp_core_enable(struct avs_dev *adev, u32 core_mask) in avs_dsp_core_enable() 113 int avs_dsp_core_disable(struct avs_dev *adev, u32 core_mask) in avs_dsp_core_disable() 122 static int avs_dsp_enable(struct avs_dev *adev, u32 core_mask) in avs_dsp_enable() 143 static int avs_dsp_disable(struct avs_dev *adev, u32 core_mask) in avs_dsp_disable() 154 static int avs_dsp_get_core(struct avs_dev *adev, u32 core_id) in avs_dsp_get_core() 195 static int avs_dsp_put_core(struct avs_dev *adev, u32 core_id) in avs_dsp_put_core() 225 int avs_dsp_init_module(struct avs_dev *ade [all...] |
H A D | skl.c | 17 void avs_skl_ipc_interrupt(struct avs_dev *adev) in avs_skl_ipc_interrupt() 56 static irqreturn_t avs_skl_dsp_interrupt(struct avs_dev *adev) in avs_skl_dsp_interrupt() 78 avs_skl_enable_logs(struct avs_dev *adev, enum avs_log_enable enable, u32 aging_period, in avs_skl_enable_logs() 110 int avs_skl_log_buffer_offset(struct avs_dev *adev, u32 core) in avs_skl_log_buffer_offset() 118 static int avs_skl_log_buffer_status(struct avs_dev *adev, union avs_notify_msg *msg) in avs_skl_log_buffer_status() 138 static int avs_skl_coredump(struct avs_dev *adev, union avs_notify_msg *msg) in avs_skl_coredump() 152 static bool avs_skl_d0ix_toggle(struct avs_dev *adev, struct avs_ipc_msg *tx, bool wake) in avs_skl_d0ix_toggle() 158 static int avs_skl_set_d0ix(struct avs_dev *adev, bool enable) in avs_skl_set_d0ix()
|
H A D | mtl.c | 35 static int avs_mtl_core_power_on(struct avs_dev *adev) in avs_mtl_core_power_on() 66 static int avs_mtl_core_power_off(struct avs_dev *adev) in avs_mtl_core_power_off() 83 int avs_mtl_core_power(struct avs_dev *adev, u32 core_mask, bool power) in avs_mtl_core_power() 94 int avs_mtl_core_reset(struct avs_dev *adev, u32 core_mask, bool power) in avs_mtl_core_reset() 100 int avs_mtl_core_stall(struct avs_dev *adev, u32 core_mask, bool stall) in avs_mtl_core_stall() 127 static void avs_mtl_ipc_interrupt(struct avs_dev *adev) in avs_mtl_ipc_interrupt() 168 irqreturn_t avs_mtl_dsp_interrupt(struct avs_dev *adev) in avs_mtl_dsp_interrupt() 184 void avs_mtl_interrupt_control(struct avs_dev *adev, bool enable) in avs_mtl_interrupt_control()
|
H A D | path.h | 22 struct avs_dev *owner; 62 struct avs_path *avs_path_create(struct avs_dev *adev, u32 dma_id, 72 int avs_path_set_constraint(struct avs_dev *adev, struct avs_tplg_path_template *template, 77 int avs_peakvol_set_volume(struct avs_dev *adev, struct avs_path_module *mod, 79 int avs_peakvol_set_mute(struct avs_dev *adev, struct avs_path_module *mod,
|
H A D | path.c | 20 avs_path_find_tplg(struct avs_dev *adev, const char *name) in avs_path_find_tplg() 53 avs_path_find_path(struct avs_dev *adev, const char *name, u32 template_id) in avs_path_find_path() 95 avs_path_find_variant(struct avs_dev *adev, in avs_path_find_variant() 119 avs_nhlt_config_or_default(struct avs_dev *adev, struct avs_tplg_module *t); 121 int avs_path_set_constraint(struct avs_dev *adev, struct avs_tplg_path_template *template, in avs_path_set_constraint() 227 avs_nhlt_config_or_default(struct avs_dev *adev, struct avs_tplg_module *t) in avs_nhlt_config_or_default() 287 static int avs_append_dma_cfg(struct avs_dev *adev, struct avs_copier_gtw_cfg *gtw, in avs_append_dma_cfg() 330 static int avs_fill_gtw_config(struct avs_dev *adev, struct avs_copier_gtw_cfg *gtw, in avs_fill_gtw_config() 351 static int avs_copier_create(struct avs_dev *adev, struct avs_path_module *mod) in avs_copier_create() 385 static int avs_whm_create(struct avs_dev *ade [all...] |
H A D | apl.c | 18 static irqreturn_t avs_apl_dsp_interrupt(struct avs_dev *adev) in avs_apl_dsp_interrupt() 35 int avs_apl_enable_logs(struct avs_dev *adev, enum avs_log_enable enable, u32 aging_period, in avs_apl_enable_logs() 70 int avs_apl_log_buffer_status(struct avs_dev *adev, union avs_notify_msg *msg) in avs_apl_log_buffer_status() 99 static int avs_apl_wait_log_entry(struct avs_dev *adev, u32 core, in avs_apl_wait_log_entry() 124 int avs_apl_coredump(struct avs_dev *adev, union avs_notify_msg *msg) in avs_apl_coredump() 188 static bool avs_apl_lp_streaming(struct avs_dev *adev) in avs_apl_lp_streaming() 224 bool avs_apl_d0ix_toggle(struct avs_dev *adev, struct avs_ipc_msg *tx, bool wake) in avs_apl_d0ix_toggle() 241 int avs_apl_set_d0ix(struct avs_dev *adev, bool enable) in avs_apl_set_d0ix()
|
H A D | loader.c | 102 static int avs_fw_manifest_strip_verify(struct avs_dev *adev, struct firmware *fw, in avs_fw_manifest_strip_verify() 138 int avs_cldma_load_basefw(struct avs_dev *adev, struct firmware *fw) in avs_cldma_load_basefw() 194 int avs_cldma_load_library(struct avs_dev *adev, struct firmware *lib, u32 id) in avs_cldma_load_library() 215 static int avs_cldma_load_module(struct avs_dev *adev, struct avs_module_entry *mentry) in avs_cldma_load_module() 254 int avs_cldma_transfer_modules(struct avs_dev *adev, bool load, in avs_cldma_transfer_modules() 287 avs_hda_init_rom(struct avs_dev *adev, unsigned int dma_id, bool purge) in avs_hda_init_rom() 338 static int avs_imr_load_basefw(struct avs_dev *adev) in avs_imr_load_basefw() 360 int avs_hda_load_basefw(struct avs_dev *adev, struct firmware *fw) in avs_hda_load_basefw() 428 int avs_hda_load_library(struct avs_dev *adev, struct firmware *lib, u32 id) in avs_hda_load_library() 479 int avs_hda_transfer_modules(struct avs_dev *ade [all...] |
H A D | tgl.c | 15 static int avs_tgl_dsp_core_power(struct avs_dev *adev, u32 core_mask, bool power) in avs_tgl_dsp_core_power() 24 static int avs_tgl_dsp_core_reset(struct avs_dev *adev, u32 core_mask, bool reset) in avs_tgl_dsp_core_reset() 33 static int avs_tgl_dsp_core_stall(struct avs_dev *adev, u32 core_mask, bool stall) in avs_tgl_dsp_core_stall() 42 static int avs_tgl_config_basefw(struct avs_dev *adev) in avs_tgl_config_basefw()
|
H A D | icl.c | 18 int avs_icl_enable_logs(struct avs_dev *adev, enum avs_log_enable enable, u32 aging_period, in avs_icl_enable_logs() 86 static int avs_icl_slot_offset(struct avs_dev *adev, union avs_icl_memwnd2_slot_type slot_type) in avs_icl_slot_offset() 99 int avs_icl_log_buffer_offset(struct avs_dev *adev, u32 core) in avs_icl_log_buffer_offset() 113 bool avs_icl_d0ix_toggle(struct avs_dev *adev, struct avs_ipc_msg *tx, bool wake) in avs_icl_d0ix_toggle() 123 int avs_icl_set_d0ix(struct avs_dev *adev, bool enable) in avs_icl_set_d0ix() 131 int avs_icl_load_basefw(struct avs_dev *adev, struct firmware *fw) in avs_icl_load_basefw()
|
H A D | core.c | 53 void avs_hda_power_gating_enable(struct avs_dev *adev, bool enable) in avs_hda_power_gating_enable() 63 struct avs_dev *adev = hdac_to_avs(bus); in avs_hdac_clock_gating_enable() 70 void avs_hda_clock_gating_enable(struct avs_dev *adev, bool enable) in avs_hda_clock_gating_enable() 75 void avs_hda_l1sen_enable(struct avs_dev *adev, bool enable) in avs_hda_l1sen_enable() 107 struct avs_dev *adev = hdac_to_avs(bus); in avs_hdac_bus_init_chip() 203 struct avs_dev *adev = container_of(work, struct avs_dev, probe_work); in avs_hda_probe_work() 321 struct avs_dev *adev = dev_id; in avs_dsp_irq_handler() 328 struct avs_dev *adev = dev_id; in avs_dsp_irq_thread() 342 static int avs_hdac_acquire_irq(struct avs_dev *ade [all...] |
H A D | board_selection.c | 389 static const struct avs_acpi_boards *avs_get_i2s_boards(struct avs_dev *adev) in avs_get_i2s_boards() 406 static int __maybe_unused avs_register_probe_board(struct avs_dev *adev) in avs_register_probe_board() 433 static int avs_register_dmic_board(struct avs_dev *adev) in avs_register_dmic_board() 485 static int avs_register_i2s_board(struct avs_dev *adev, struct snd_soc_acpi_mach *mach) in avs_register_i2s_board() 540 static int avs_register_i2s_test_board(struct avs_dev *adev, int ssp_port, int tdm_slot) in avs_register_i2s_test_board() 570 static int avs_register_i2s_test_boards(struct avs_dev *adev) in avs_register_i2s_test_boards() 602 static int avs_register_i2s_boards(struct avs_dev *adev) in avs_register_i2s_boards() 638 static int avs_register_hda_board(struct avs_dev *adev, struct hda_codec *codec) in avs_register_hda_board() 685 static int avs_register_hda_boards(struct avs_dev *adev) in avs_register_hda_boards() 710 int avs_register_all_boards(struct avs_dev *ade [all...] |
H A D | probes.c | 16 static int avs_dsp_init_probe(struct avs_dev *adev, union avs_connector_node_id node_id, in avs_dsp_init_probe() 42 static void avs_dsp_delete_probe(struct avs_dev *adev) in avs_dsp_delete_probe() 60 struct avs_dev *adev = to_avs_dev(dai->dev); in avs_probe_compr_open() 85 struct avs_dev *adev = to_avs_dev(dai->dev); in avs_probe_compr_free() 129 struct avs_dev *adev = to_avs_dev(dai->dev); in avs_probe_compr_set_params() 184 struct avs_dev *adev = to_avs_dev(dai->dev); in avs_probe_compr_trigger() 293 int avs_probe_platform_register(struct avs_dev *adev, const char *name) in avs_probe_platform_register()
|
H A D | control.c | 16 static struct avs_dev *avs_get_kcontrol_adev(struct snd_kcontrol *kcontrol) in avs_get_kcontrol_adev() 25 static struct avs_path_module *avs_get_volume_module(struct avs_dev *adev, u32 id) in avs_get_volume_module() 57 struct avs_dev *adev; in avs_control_volume_get() 90 struct avs_dev *adev; in avs_control_volume_put() 140 struct avs_dev *adev; in avs_control_mute_get() 173 struct avs_dev *adev; in avs_control_mute_put()
|
H A D | ptl.c | 24 static int avs_ptl_core_power_on(struct avs_dev *adev) in avs_ptl_core_power_on() 55 static int avs_ptl_core_power_off(struct avs_dev *adev) in avs_ptl_core_power_off() 72 static int avs_ptl_core_power(struct avs_dev *adev, u32 core_mask, bool power) in avs_ptl_core_power()
|
H A D | cnl.c | 14 static void avs_cnl_ipc_interrupt(struct avs_dev *adev) in avs_cnl_ipc_interrupt() 60 irqreturn_t avs_cnl_dsp_interrupt(struct avs_dev *adev) in avs_cnl_dsp_interrupt()
|
H A D | lnl.c | 13 int avs_lnl_core_stall(struct avs_dev *adev, u32 core_mask, bool stall) in avs_lnl_core_stall()
|
H A D | sysfs.c | 14 struct avs_dev *adev = to_avs_dev(dev); in fw_version_show()
|
H A D | pcm.c | 27 struct avs_dev *adev; 122 struct avs_dev *adev = to_avs_dev(dai->component->dev); in avs_dai_startup() 376 struct avs_dev *adev = to_avs_dev(dai->component->dev); in avs_dai_i2shda_be_startup() 387 struct avs_dev *adev = to_avs_dev(dai->component->dev); in avs_dai_dmichda_be_startup() 789 struct avs_dev *adev = hdac_to_avs(bus); in avs_hda_stream_start() 824 struct avs_dev *adev = hdac_to_avs(bus); in avs_hda_stream_stop() 958 struct avs_dev *adev = to_avs_dev(acomp->base.dev); in avs_component_load_libraries() 992 struct avs_dev *adev; in avs_component_probe() 1067 struct avs_dev *adev = to_avs_dev(component->dev); in avs_component_remove() 1429 int avs_dmic_platform_register(struct avs_dev *ade [all...] |