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);
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 enable_logs)(struct avs_dev *, enum avs_log_enable, u32, u32, unsigned long,
56 int (* const log_buffer_offset)(struct avs_dev *, u32);
57 int (* const log_buffer_status)(struct avs_dev *, union avs_notify_msg *);
58 int (* const coredump)(struct avs_dev *, union avs_notify_msg *);
59 bool (* const d0ix_toggle)(struct avs_dev *, struct avs_ipc_msg *, bool);
60 int (* const set_d0ix)(struct avs_dev *, bool);
129 struct avs_dev { struct
174 #define hda_to_avs(hda) container_of(hda, struct avs_dev, base)
184 int avs_dsp_core_power(struct avs_dev *adev, u32 core_mask, bool power);
185 int avs_dsp_core_reset(struct avs_dev *adev, u32 core_mask, bool reset);
186 int avs_dsp_core_stall(struct avs_dev *adev, u32 core_mask, bool stall);
187 int avs_dsp_core_enable(struct avs_dev *adev, u32 core_mask);
188 int avs_dsp_core_disable(struct avs_dev *adev, u32 core_mask);
246 void avs_dsp_process_response(struct avs_dev *adev, u64 header);
247 int avs_dsp_send_msg_timeout(struct avs_dev *adev, struct avs_ipc_msg *request,
249 int avs_dsp_send_msg(struct avs_dev *adev, struct avs_ipc_msg *request,
252 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, struct avs_ipc_msg *request, int timeout,
259 int avs_dsp_send_rom_msg(struct avs_dev *adev, struct avs_ipc_msg *request, const char *name);
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 void avs_skl_ipc_interrupt(struct avs_dev *adev);
268 irqreturn_t avs_cnl_dsp_interrupt(struct avs_dev *adev);
269 int avs_apl_enable_logs(struct avs_dev *adev, enum avs_log_enable enable, u32 aging_period,
271 int avs_icl_enable_logs(struct avs_dev *adev, enum avs_log_enable enable, u32 aging_period,
273 int avs_skl_log_buffer_offset(struct avs_dev *adev, u32 core);
274 int avs_icl_log_buffer_offset(struct avs_dev *adev, u32 core);
275 int avs_apl_log_buffer_status(struct avs_dev *adev, union avs_notify_msg *msg);
276 int avs_apl_coredump(struct avs_dev *adev, union avs_notify_msg *msg);
277 bool avs_apl_d0ix_toggle(struct avs_dev *adev, struct avs_ipc_msg *tx, bool wake);
278 bool avs_icl_d0ix_toggle(struct avs_dev *adev, struct avs_ipc_msg *tx, bool wake);
279 int avs_apl_set_d0ix(struct avs_dev *adev, bool enable);
280 int avs_icl_set_d0ix(struct avs_dev *adev, bool enable);
284 int avs_get_module_entry(struct avs_dev *adev, const guid_t *uuid, struct avs_module_entry *entry);
285 int avs_get_module_id_entry(struct avs_dev *adev, u32 module_id, struct avs_module_entry *entry);
286 int avs_get_module_id(struct avs_dev *adev, const guid_t *uuid);
287 bool avs_is_module_ida_empty(struct avs_dev *adev, u32 module_id);
289 int avs_module_info_init(struct avs_dev *adev, bool purge);
290 void avs_module_info_free(struct avs_dev *adev);
291 int avs_module_id_alloc(struct avs_dev *adev, u16 module_id);
292 void avs_module_id_free(struct avs_dev *adev, u16 module_id, u8 instance_id);
293 int avs_request_firmware(struct avs_dev *adev, const struct firmware **fw_p, const char *name);
294 void avs_release_last_firmware(struct avs_dev *adev);
295 void avs_release_firmwares(struct avs_dev *adev);
297 int avs_dsp_init_module(struct avs_dev *adev, u16 module_id, u8 ppl_instance_id,
300 void avs_dsp_delete_module(struct avs_dev *adev, u16 module_id, u8 instance_id,
302 int avs_dsp_create_pipeline(struct avs_dev *adev, u16 req_size, u8 priority,
304 int avs_dsp_delete_pipeline(struct avs_dev *adev, u8 instance_id);
308 void avs_hda_clock_gating_enable(struct avs_dev *adev, bool enable);
309 void avs_hda_power_gating_enable(struct avs_dev *adev, bool enable);
310 void avs_hda_l1sen_enable(struct avs_dev *adev, bool enable);
312 int avs_dsp_load_libraries(struct avs_dev *adev, struct avs_tplg_library *libs, u32 num_libs);
313 int avs_dsp_boot_firmware(struct avs_dev *adev, bool purge);
314 int avs_dsp_first_boot_firmware(struct avs_dev *adev);
316 int avs_cldma_load_basefw(struct avs_dev *adev, struct firmware *fw);
317 int avs_cldma_load_library(struct avs_dev *adev, struct firmware *lib, u32 id);
318 int avs_cldma_transfer_modules(struct avs_dev *adev, bool load,
320 int avs_hda_load_basefw(struct avs_dev *adev, struct firmware *fw);
321 int avs_hda_load_library(struct avs_dev *adev, struct firmware *lib, u32 id);
322 int avs_hda_transfer_modules(struct avs_dev *adev, bool load,
325 int avs_icl_load_basefw(struct avs_dev *adev, struct firmware *fw);
344 int avs_dmic_platform_register(struct avs_dev *adev, const char *name);
345 int avs_i2s_platform_register(struct avs_dev *adev, const char *name, unsigned long port_mask,
347 int avs_hda_platform_register(struct avs_dev *adev, const char *name);
349 int avs_register_all_boards(struct avs_dev *adev);
350 void avs_unregister_all_boards(struct avs_dev *adev);
364 static inline int avs_log_buffer_status_locked(struct avs_dev *adev, union avs_notify_msg *msg) in avs_log_buffer_status_locked()
393 bool avs_logging_fw(struct avs_dev *adev);
394 void avs_dump_fw_log(struct avs_dev *adev, const void __iomem *src, unsigned int len);
395 void avs_dump_fw_log_wakeup(struct avs_dev *adev, const void __iomem *src, unsigned int len);
397 int avs_probe_platform_register(struct avs_dev *adev, const char *name);
399 void avs_debugfs_init(struct avs_dev *adev);
400 void avs_debugfs_exit(struct avs_dev *adev);
404 static inline bool avs_logging_fw(struct avs_dev *adev) in avs_logging_fw()
409 static inline void avs_dump_fw_log(struct avs_dev *adev, const void __iomem *src, unsigned int len) in avs_dump_fw_log()
414 avs_dump_fw_log_wakeup(struct avs_dev *adev, const void __iomem *src, unsigned int len) in avs_dump_fw_log_wakeup()
418 static inline int avs_probe_platform_register(struct avs_dev *adev, const char *name) in avs_probe_platform_register()
423 static inline void avs_debugfs_init(struct avs_dev *adev) { } in avs_debugfs_init()
424 static inline void avs_debugfs_exit(struct avs_dev *adev) { } in avs_debugfs_exit()