Lines Matching refs:snd_sof_dev
86 struct snd_sof_dev;
102 int (*probe)(struct snd_sof_dev *sof_dev); /* mandatory */
103 int (*remove)(struct snd_sof_dev *sof_dev); /* optional */
104 int (*shutdown)(struct snd_sof_dev *sof_dev); /* optional */
107 int (*run)(struct snd_sof_dev *sof_dev); /* mandatory */
108 int (*stall)(struct snd_sof_dev *sof_dev, unsigned int core_mask); /* optional */
109 int (*reset)(struct snd_sof_dev *sof_dev); /* optional */
110 int (*core_power_up)(struct snd_sof_dev *sof_dev,
112 int (*core_power_down)(struct snd_sof_dev *sof_dev,
120 void (*write)(struct snd_sof_dev *sof_dev, void __iomem *addr,
122 u32 (*read)(struct snd_sof_dev *sof_dev,
124 void (*write64)(struct snd_sof_dev *sof_dev, void __iomem *addr,
126 u64 (*read64)(struct snd_sof_dev *sof_dev,
130 void (*block_read)(struct snd_sof_dev *sof_dev, u32 bar,
133 void (*block_write)(struct snd_sof_dev *sof_dev, u32 bar,
142 int (*send_msg)(struct snd_sof_dev *sof_dev,
146 int (*load_firmware)(struct snd_sof_dev *sof_dev); /* mandatory */
147 int (*load_module)(struct snd_sof_dev *sof_dev,
153 int (*fw_ready)(struct snd_sof_dev *sdev, u32 msg_id); /* mandatory */
156 int (*pcm_open)(struct snd_sof_dev *sdev,
159 int (*pcm_close)(struct snd_sof_dev *sdev,
163 int (*pcm_hw_params)(struct snd_sof_dev *sdev,
169 int (*pcm_hw_free)(struct snd_sof_dev *sdev,
173 int (*pcm_trigger)(struct snd_sof_dev *sdev,
178 snd_pcm_uframes_t (*pcm_pointer)(struct snd_sof_dev *sdev,
183 int (*probe_assign)(struct snd_sof_dev *sdev,
186 int (*probe_free)(struct snd_sof_dev *sdev,
189 int (*probe_set_params)(struct snd_sof_dev *sdev,
193 int (*probe_trigger)(struct snd_sof_dev *sdev,
196 int (*probe_pointer)(struct snd_sof_dev *sdev,
203 void (*ipc_msg_data)(struct snd_sof_dev *sdev,
208 int (*ipc_pcm_params)(struct snd_sof_dev *sdev,
213 int (*pre_fw_run)(struct snd_sof_dev *sof_dev); /* optional */
214 int (*post_fw_run)(struct snd_sof_dev *sof_dev); /* optional */
217 int (*parse_platform_ext_manifest)(struct snd_sof_dev *sof_dev,
221 int (*suspend)(struct snd_sof_dev *sof_dev,
223 int (*resume)(struct snd_sof_dev *sof_dev); /* optional */
224 int (*runtime_suspend)(struct snd_sof_dev *sof_dev); /* optional */
225 int (*runtime_resume)(struct snd_sof_dev *sof_dev); /* optional */
226 int (*runtime_idle)(struct snd_sof_dev *sof_dev); /* optional */
227 int (*set_hw_params_upon_resume)(struct snd_sof_dev *sdev); /* optional */
228 int (*set_power_state)(struct snd_sof_dev *sdev,
232 int (*set_clk)(struct snd_sof_dev *sof_dev, u32 freq); /* optional */
237 void (*dbg_dump)(struct snd_sof_dev *sof_dev,
239 void (*ipc_dump)(struct snd_sof_dev *sof_dev); /* optional */
242 int (*trace_init)(struct snd_sof_dev *sdev,
244 int (*trace_release)(struct snd_sof_dev *sdev); /* optional */
245 int (*trace_trigger)(struct snd_sof_dev *sdev,
249 int (*get_bar_index)(struct snd_sof_dev *sdev,
251 int (*get_mailbox_offset)(struct snd_sof_dev *sdev);/* mandatory for common loader code */
252 int (*get_window_offset)(struct snd_sof_dev *sdev,
256 int (*machine_register)(struct snd_sof_dev *sdev,
258 void (*machine_unregister)(struct snd_sof_dev *sdev,
260 void (*machine_select)(struct snd_sof_dev *sdev); /* optional */
262 struct snd_sof_dev *sdev); /* optional */
276 void (*dsp_oops)(struct snd_sof_dev *sdev, void *oops);
277 void (*dsp_stack)(struct snd_sof_dev *sdev, void *oops,
313 struct snd_sof_dev *sdev;
366 struct snd_sof_dev { struct
475 int snd_sof_dsp_power_down_notify(struct snd_sof_dev *sdev); argument
479 void snd_sof_new_platform_drv(struct snd_sof_dev *sdev);
488 int snd_sof_load_firmware(struct snd_sof_dev *sdev);
489 int snd_sof_load_firmware_raw(struct snd_sof_dev *sdev);
490 int snd_sof_load_firmware_memcpy(struct snd_sof_dev *sdev);
491 int snd_sof_run_firmware(struct snd_sof_dev *sdev);
492 int snd_sof_parse_module_memcpy(struct snd_sof_dev *sdev,
494 void snd_sof_fw_unload(struct snd_sof_dev *sdev);
495 int snd_sof_fw_parse_ext_data(struct snd_sof_dev *sdev, u32 bar, u32 offset);
500 struct snd_sof_ipc *snd_sof_ipc_init(struct snd_sof_dev *sdev);
501 void snd_sof_ipc_free(struct snd_sof_dev *sdev);
502 void snd_sof_ipc_reply(struct snd_sof_dev *sdev, u32 msg_id);
503 void snd_sof_ipc_msgs_rx(struct snd_sof_dev *sdev);
504 int snd_sof_ipc_stream_pcm_params(struct snd_sof_dev *sdev,
506 int snd_sof_dsp_mailbox_init(struct snd_sof_dev *sdev, u32 dspbox,
509 int snd_sof_ipc_valid(struct snd_sof_dev *sdev);
520 int snd_sof_init_trace(struct snd_sof_dev *sdev);
521 void snd_sof_release_trace(struct snd_sof_dev *sdev);
522 void snd_sof_free_trace(struct snd_sof_dev *sdev);
523 int snd_sof_dbg_init(struct snd_sof_dev *sdev);
524 void snd_sof_free_debug(struct snd_sof_dev *sdev);
525 int snd_sof_debugfs_io_item(struct snd_sof_dev *sdev,
529 int snd_sof_debugfs_buf_item(struct snd_sof_dev *sdev,
532 int snd_sof_trace_update_pos(struct snd_sof_dev *sdev,
534 void snd_sof_trace_notify_for_error(struct snd_sof_dev *sdev);
535 void snd_sof_get_status(struct snd_sof_dev *sdev, u32 panic_code,
539 int snd_sof_init_trace_ipc(struct snd_sof_dev *sdev);
540 void snd_sof_handle_fw_exception(struct snd_sof_dev *sdev);
541 int snd_sof_dbg_memory_info_init(struct snd_sof_dev *sdev);
551 static inline void sof_stack(struct snd_sof_dev *sdev, void *oops, u32 *stack, in sof_stack()
557 static inline void sof_oops(struct snd_sof_dev *sdev, void *oops) in sof_oops()
568 void sof_io_write(struct snd_sof_dev *sdev, void __iomem *addr, u32 value);
569 void sof_io_write64(struct snd_sof_dev *sdev, void __iomem *addr, u64 value);
570 u32 sof_io_read(struct snd_sof_dev *sdev, void __iomem *addr);
571 u64 sof_io_read64(struct snd_sof_dev *sdev, void __iomem *addr);
572 void sof_mailbox_write(struct snd_sof_dev *sdev, u32 offset,
574 void sof_mailbox_read(struct snd_sof_dev *sdev, u32 offset,
576 void sof_block_write(struct snd_sof_dev *sdev, u32 bar, u32 offset, void *src,
578 void sof_block_read(struct snd_sof_dev *sdev, u32 bar, u32 offset, void *dest,
581 int sof_fw_ready(struct snd_sof_dev *sdev, u32 msg_id);
583 void intel_ipc_msg_data(struct snd_sof_dev *sdev,
586 int intel_ipc_pcm_params(struct snd_sof_dev *sdev,
590 int intel_pcm_open(struct snd_sof_dev *sdev,
592 int intel_pcm_close(struct snd_sof_dev *sdev,
595 int sof_machine_check(struct snd_sof_dev *sdev);