Lines Matching refs:snd_sof_dev

125 struct snd_sof_dev;
176 int (*probe_early)(struct snd_sof_dev *sof_dev); /* optional */
177 int (*probe)(struct snd_sof_dev *sof_dev); /* mandatory */
178 void (*remove)(struct snd_sof_dev *sof_dev); /* optional */
179 void (*remove_late)(struct snd_sof_dev *sof_dev); /* optional */
180 int (*shutdown)(struct snd_sof_dev *sof_dev); /* optional */
183 int (*run)(struct snd_sof_dev *sof_dev); /* mandatory */
184 int (*stall)(struct snd_sof_dev *sof_dev, unsigned int core_mask); /* optional */
185 int (*reset)(struct snd_sof_dev *sof_dev); /* optional */
186 int (*core_get)(struct snd_sof_dev *sof_dev, int core); /* optional */
187 int (*core_put)(struct snd_sof_dev *sof_dev, int core); /* optional */
194 void (*write8)(struct snd_sof_dev *sof_dev, void __iomem *addr,
196 u8 (*read8)(struct snd_sof_dev *sof_dev,
198 void (*write)(struct snd_sof_dev *sof_dev, void __iomem *addr,
200 u32 (*read)(struct snd_sof_dev *sof_dev,
202 void (*write64)(struct snd_sof_dev *sof_dev, void __iomem *addr,
204 u64 (*read64)(struct snd_sof_dev *sof_dev,
208 int (*block_read)(struct snd_sof_dev *sof_dev,
211 int (*block_write)(struct snd_sof_dev *sof_dev,
216 void (*mailbox_read)(struct snd_sof_dev *sof_dev,
219 void (*mailbox_write)(struct snd_sof_dev *sof_dev,
228 int (*send_msg)(struct snd_sof_dev *sof_dev,
232 int (*load_firmware)(struct snd_sof_dev *sof_dev); /* mandatory */
233 int (*load_module)(struct snd_sof_dev *sof_dev,
237 int (*pcm_open)(struct snd_sof_dev *sdev,
240 int (*pcm_close)(struct snd_sof_dev *sdev,
244 int (*pcm_hw_params)(struct snd_sof_dev *sdev,
250 int (*pcm_hw_free)(struct snd_sof_dev *sdev,
254 int (*pcm_trigger)(struct snd_sof_dev *sdev,
259 snd_pcm_uframes_t (*pcm_pointer)(struct snd_sof_dev *sdev,
263 int (*pcm_ack)(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream); /* optional */
272 u64 (*get_dai_frame_counter)(struct snd_sof_dev *sdev,
282 u64 (*get_host_byte_counter)(struct snd_sof_dev *sdev,
287 int (*ipc_msg_data)(struct snd_sof_dev *sdev,
292 int (*set_stream_data_offset)(struct snd_sof_dev *sdev,
297 int (*pre_fw_run)(struct snd_sof_dev *sof_dev); /* optional */
298 int (*post_fw_run)(struct snd_sof_dev *sof_dev); /* optional */
301 int (*parse_platform_ext_manifest)(struct snd_sof_dev *sof_dev,
305 int (*suspend)(struct snd_sof_dev *sof_dev,
307 int (*resume)(struct snd_sof_dev *sof_dev); /* optional */
308 int (*runtime_suspend)(struct snd_sof_dev *sof_dev); /* optional */
309 int (*runtime_resume)(struct snd_sof_dev *sof_dev); /* optional */
310 int (*runtime_idle)(struct snd_sof_dev *sof_dev); /* optional */
311 int (*set_hw_params_upon_resume)(struct snd_sof_dev *sdev); /* optional */
312 int (*set_power_state)(struct snd_sof_dev *sdev,
316 int (*set_clk)(struct snd_sof_dev *sof_dev, u32 freq); /* optional */
321 void (*dbg_dump)(struct snd_sof_dev *sof_dev,
323 void (*ipc_dump)(struct snd_sof_dev *sof_dev); /* optional */
324 int (*debugfs_add_region_item)(struct snd_sof_dev *sdev,
330 int (*trace_init)(struct snd_sof_dev *sdev,
333 int (*trace_release)(struct snd_sof_dev *sdev); /* optional */
334 int (*trace_trigger)(struct snd_sof_dev *sdev,
338 int (*get_bar_index)(struct snd_sof_dev *sdev,
340 int (*get_mailbox_offset)(struct snd_sof_dev *sdev);/* mandatory for common loader code */
341 int (*get_window_offset)(struct snd_sof_dev *sdev,
345 int (*machine_register)(struct snd_sof_dev *sdev,
347 void (*machine_unregister)(struct snd_sof_dev *sdev,
349 struct snd_soc_acpi_mach * (*machine_select)(struct snd_sof_dev *sdev); /* optional */
351 struct snd_sof_dev *sdev); /* optional */
354 int (*register_ipc_clients)(struct snd_sof_dev *sdev); /* optional */
355 void (*unregister_ipc_clients)(struct snd_sof_dev *sdev); /* optional */
361 bool (*is_chain_dma_supported)(struct snd_sof_dev *sdev, u32 dai_type); /* optional */
371 void (*dsp_oops)(struct snd_sof_dev *sdev, const char *level, void *oops);
372 void (*dsp_stack)(struct snd_sof_dev *sdev, const char *level, void *oops,
392 struct snd_sof_dev *sdev;
445 int (*init)(struct snd_sof_dev *sdev);
446 void (*free)(struct snd_sof_dev *sdev);
447 void (*fw_crashed)(struct snd_sof_dev *sdev);
448 void (*suspend)(struct snd_sof_dev *sdev, pm_message_t pm_state);
449 int (*resume)(struct snd_sof_dev *sdev);
460 int (*ctx_save)(struct snd_sof_dev *sdev);
461 int (*ctx_restore)(struct snd_sof_dev *sdev);
462 int (*set_core_state)(struct snd_sof_dev *sdev, int core_idx, bool on);
463 int (*set_pm_gate)(struct snd_sof_dev *sdev, u32 flags);
476 int (*validate)(struct snd_sof_dev *sdev);
477 size_t (*parse_ext_manifest)(struct snd_sof_dev *sdev);
478 int (*load_fw_to_dsp)(struct snd_sof_dev *sdev);
518 int (*init)(struct snd_sof_dev *sdev);
519 void (*exit)(struct snd_sof_dev *sdev);
520 int (*post_fw_boot)(struct snd_sof_dev *sdev);
522 int (*tx_msg)(struct snd_sof_dev *sdev, void *msg_data, size_t msg_bytes,
524 int (*set_get_data)(struct snd_sof_dev *sdev, void *data, size_t data_bytes,
526 int (*get_reply)(struct snd_sof_dev *sdev);
527 void (*rx_msg)(struct snd_sof_dev *sdev);
532 struct snd_sof_dev *sdev;
555 struct snd_sof_dev { struct
711 int snd_sof_dsp_power_down_notify(struct snd_sof_dev *sdev); argument
715 void snd_sof_new_platform_drv(struct snd_sof_dev *sdev);
725 int sof_create_ipc_file_profile(struct snd_sof_dev *sdev,
732 int snd_sof_load_firmware_raw(struct snd_sof_dev *sdev);
733 int snd_sof_load_firmware_memcpy(struct snd_sof_dev *sdev);
734 int snd_sof_run_firmware(struct snd_sof_dev *sdev);
735 void snd_sof_fw_unload(struct snd_sof_dev *sdev);
740 struct snd_sof_ipc *snd_sof_ipc_init(struct snd_sof_dev *sdev);
741 void snd_sof_ipc_free(struct snd_sof_dev *sdev);
742 void snd_sof_ipc_get_reply(struct snd_sof_dev *sdev);
743 void snd_sof_ipc_reply(struct snd_sof_dev *sdev, u32 msg_id);
744 static inline void snd_sof_ipc_msgs_rx(struct snd_sof_dev *sdev) in snd_sof_ipc_msgs_rx()
764 int sof_ipc_send_msg(struct snd_sof_dev *sdev, void *msg_data, size_t msg_bytes,
767 static inline void snd_sof_ipc_process_reply(struct snd_sof_dev *sdev, u32 msg_id) in snd_sof_ipc_process_reply()
776 int snd_sof_dbg_init(struct snd_sof_dev *sdev);
777 void snd_sof_free_debug(struct snd_sof_dev *sdev);
778 int snd_sof_debugfs_buf_item(struct snd_sof_dev *sdev,
781 void sof_print_oops_and_stack(struct snd_sof_dev *sdev, const char *level,
785 void snd_sof_handle_fw_exception(struct snd_sof_dev *sdev, const char *msg);
786 int snd_sof_dbg_memory_info_init(struct snd_sof_dev *sdev);
787 int snd_sof_debugfs_add_region_item_iomem(struct snd_sof_dev *sdev,
791 int sof_fw_trace_init(struct snd_sof_dev *sdev);
792 void sof_fw_trace_free(struct snd_sof_dev *sdev);
793 void sof_fw_trace_fw_crashed(struct snd_sof_dev *sdev);
794 void sof_fw_trace_suspend(struct snd_sof_dev *sdev, pm_message_t pm_state);
795 int sof_fw_trace_resume(struct snd_sof_dev *sdev);
800 static inline void sof_stack(struct snd_sof_dev *sdev, const char *level, in sof_stack()
807 static inline void sof_oops(struct snd_sof_dev *sdev, const char *level, void *oops) in sof_oops()
818 void sof_set_fw_state(struct snd_sof_dev *sdev, enum sof_fw_state new_state);
823 void sof_io_write(struct snd_sof_dev *sdev, void __iomem *addr, u32 value);
824 void sof_io_write64(struct snd_sof_dev *sdev, void __iomem *addr, u64 value);
825 u32 sof_io_read(struct snd_sof_dev *sdev, void __iomem *addr);
826 u64 sof_io_read64(struct snd_sof_dev *sdev, void __iomem *addr);
827 void sof_mailbox_write(struct snd_sof_dev *sdev, u32 offset,
829 void sof_mailbox_read(struct snd_sof_dev *sdev, u32 offset,
831 int sof_block_write(struct snd_sof_dev *sdev, enum snd_sof_fw_blk_type blk_type,
833 int sof_block_read(struct snd_sof_dev *sdev, enum snd_sof_fw_blk_type blk_type,
836 int sof_ipc_msg_data(struct snd_sof_dev *sdev,
839 int sof_set_stream_data_offset(struct snd_sof_dev *sdev,
843 int sof_stream_pcm_open(struct snd_sof_dev *sdev,
845 int sof_stream_pcm_close(struct snd_sof_dev *sdev,
850 int sof_client_dev_register(struct snd_sof_dev *sdev, const char *name, u32 id,
852 void sof_client_dev_unregister(struct snd_sof_dev *sdev, const char *name, u32 id);
853 int sof_register_clients(struct snd_sof_dev *sdev);
854 void sof_unregister_clients(struct snd_sof_dev *sdev);
855 void sof_client_ipc_rx_dispatcher(struct snd_sof_dev *sdev, void *msg_buf);
856 void sof_client_fw_state_dispatcher(struct snd_sof_dev *sdev);
857 int sof_suspend_clients(struct snd_sof_dev *sdev, pm_message_t state);
858 int sof_resume_clients(struct snd_sof_dev *sdev);
860 static inline int sof_client_dev_register(struct snd_sof_dev *sdev, const char *name, in sof_client_dev_register()
866 static inline void sof_client_dev_unregister(struct snd_sof_dev *sdev, in sof_client_dev_unregister()
871 static inline int sof_register_clients(struct snd_sof_dev *sdev) in sof_register_clients()
876 static inline void sof_unregister_clients(struct snd_sof_dev *sdev) in sof_unregister_clients()
880 static inline void sof_client_ipc_rx_dispatcher(struct snd_sof_dev *sdev, void *msg_buf) in sof_client_ipc_rx_dispatcher()
884 static inline void sof_client_fw_state_dispatcher(struct snd_sof_dev *sdev) in sof_client_fw_state_dispatcher()
888 static inline int sof_suspend_clients(struct snd_sof_dev *sdev, pm_message_t state) in sof_suspend_clients()
893 static inline int sof_resume_clients(struct snd_sof_dev *sdev) in sof_resume_clients()