Lines Matching refs:avs_dev

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);
51 void (* const int_control)(struct avs_dev *, bool);
52 int (* const load_basefw)(struct avs_dev *, struct firmware *);
53 int (* const load_lib)(struct avs_dev *, struct firmware *, u32);
54 int (* const transfer_mods)(struct avs_dev *, bool, struct avs_module_entry *, u32);
55 int (* const enable_logs)(struct avs_dev *, enum avs_log_enable, u32, u32, unsigned long,
57 int (* const log_buffer_offset)(struct avs_dev *, u32);
58 int (* const log_buffer_status)(struct avs_dev *, union avs_notify_msg *);
59 int (* const coredump)(struct avs_dev *, union avs_notify_msg *);
60 bool (* const d0ix_toggle)(struct avs_dev *, struct avs_ipc_msg *, bool);
61 int (* const set_d0ix)(struct avs_dev *, bool);
111 struct avs_dev { struct
155 #define hda_to_avs(hda) container_of(hda, struct avs_dev, base)
165 int avs_dsp_core_power(struct avs_dev *adev, u32 core_mask, bool power);
166 int avs_dsp_core_reset(struct avs_dev *adev, u32 core_mask, bool reset);
167 int avs_dsp_core_stall(struct avs_dev *adev, u32 core_mask, bool stall);
168 int avs_dsp_core_enable(struct avs_dev *adev, u32 core_mask);
169 int avs_dsp_core_disable(struct avs_dev *adev, u32 core_mask);
227 static inline void avs_ipc_err(struct avs_dev *adev, struct avs_ipc_msg *tx, in avs_ipc_err()
246 void avs_dsp_process_response(struct avs_dev *adev, u64 header);
247 int avs_dsp_send_msg_timeout(struct avs_dev *adev,
250 int avs_dsp_send_msg(struct avs_dev *adev,
253 int avs_dsp_send_pm_msg_timeout(struct avs_dev *adev, struct avs_ipc_msg *request,
255 int avs_dsp_send_pm_msg(struct avs_dev *adev, struct avs_ipc_msg *request,
257 int avs_dsp_send_rom_msg_timeout(struct avs_dev *adev,
259 int avs_dsp_send_rom_msg(struct avs_dev *adev, struct avs_ipc_msg *request);
260 void avs_dsp_interrupt_control(struct avs_dev *adev, bool enable);
264 int avs_dsp_disable_d0ix(struct avs_dev *adev);
265 int avs_dsp_enable_d0ix(struct avs_dev *adev);
267 int skl_log_buffer_offset(struct avs_dev *adev, u32 core);
271 int avs_get_module_entry(struct avs_dev *adev, const guid_t *uuid, struct avs_module_entry *entry);
272 int avs_get_module_id_entry(struct avs_dev *adev, u32 module_id, struct avs_module_entry *entry);
273 int avs_get_module_id(struct avs_dev *adev, const guid_t *uuid);
274 bool avs_is_module_ida_empty(struct avs_dev *adev, u32 module_id);
276 int avs_module_info_init(struct avs_dev *adev, bool purge);
277 void avs_module_info_free(struct avs_dev *adev);
278 int avs_module_id_alloc(struct avs_dev *adev, u16 module_id);
279 void avs_module_id_free(struct avs_dev *adev, u16 module_id, u8 instance_id);
280 int avs_request_firmware(struct avs_dev *adev, const struct firmware **fw_p, const char *name);
281 void avs_release_last_firmware(struct avs_dev *adev);
282 void avs_release_firmwares(struct avs_dev *adev);
284 int avs_dsp_init_module(struct avs_dev *adev, u16 module_id, u8 ppl_instance_id,
287 void avs_dsp_delete_module(struct avs_dev *adev, u16 module_id, u8 instance_id,
289 int avs_dsp_create_pipeline(struct avs_dev *adev, u16 req_size, u8 priority,
291 int avs_dsp_delete_pipeline(struct avs_dev *adev, u8 instance_id);
295 void avs_hda_clock_gating_enable(struct avs_dev *adev, bool enable);
296 void avs_hda_power_gating_enable(struct avs_dev *adev, bool enable);
297 void avs_hda_l1sen_enable(struct avs_dev *adev, bool enable);
299 int avs_dsp_load_libraries(struct avs_dev *adev, struct avs_tplg_library *libs, u32 num_libs);
300 int avs_dsp_boot_firmware(struct avs_dev *adev, bool purge);
301 int avs_dsp_first_boot_firmware(struct avs_dev *adev);
303 int avs_cldma_load_basefw(struct avs_dev *adev, struct firmware *fw);
304 int avs_cldma_load_library(struct avs_dev *adev, struct firmware *lib, u32 id);
305 int avs_cldma_transfer_modules(struct avs_dev *adev, bool load,
307 int avs_hda_load_basefw(struct avs_dev *adev, struct firmware *fw);
308 int avs_hda_load_library(struct avs_dev *adev, struct firmware *lib, u32 id);
309 int avs_hda_transfer_modules(struct avs_dev *adev, bool load,
329 int avs_dmic_platform_register(struct avs_dev *adev, const char *name);
330 int avs_i2s_platform_register(struct avs_dev *adev, const char *name, unsigned long port_mask,
332 int avs_hda_platform_register(struct avs_dev *adev, const char *name);
334 int avs_register_all_boards(struct avs_dev *adev);
335 void avs_unregister_all_boards(struct avs_dev *adev);
349 static inline int avs_log_buffer_status_locked(struct avs_dev *adev, union avs_notify_msg *msg) in avs_log_buffer_status_locked()
377 bool avs_logging_fw(struct avs_dev *adev);
378 void avs_dump_fw_log(struct avs_dev *adev, const void __iomem *src, unsigned int len);
379 void avs_dump_fw_log_wakeup(struct avs_dev *adev, const void __iomem *src, unsigned int len);
381 int avs_probe_platform_register(struct avs_dev *adev, const char *name);
383 void avs_debugfs_init(struct avs_dev *adev);
384 void avs_debugfs_exit(struct avs_dev *adev);
388 static inline bool avs_logging_fw(struct avs_dev *adev) in avs_logging_fw()
393 static inline void avs_dump_fw_log(struct avs_dev *adev, const void __iomem *src, unsigned int len) in avs_dump_fw_log()
398 avs_dump_fw_log_wakeup(struct avs_dev *adev, const void __iomem *src, unsigned int len) in avs_dump_fw_log_wakeup()
402 static inline int avs_probe_platform_register(struct avs_dev *adev, const char *name) in avs_probe_platform_register()
407 static inline void avs_debugfs_init(struct avs_dev *adev) { } in avs_debugfs_init()
408 static inline void avs_debugfs_exit(struct avs_dev *adev) { } in avs_debugfs_exit()