Lines Matching refs:snd_sof_dev
65 struct snd_sof_dev;
81 int (*probe)(struct snd_sof_dev *sof_dev); /* mandatory */
82 int (*remove)(struct snd_sof_dev *sof_dev); /* optional */
85 int (*run)(struct snd_sof_dev *sof_dev); /* mandatory */
86 int (*stall)(struct snd_sof_dev *sof_dev); /* optional */
87 int (*reset)(struct snd_sof_dev *sof_dev); /* optional */
88 int (*core_power_up)(struct snd_sof_dev *sof_dev,
90 int (*core_power_down)(struct snd_sof_dev *sof_dev,
98 void (*write)(struct snd_sof_dev *sof_dev, void __iomem *addr,
100 u32 (*read)(struct snd_sof_dev *sof_dev,
102 void (*write64)(struct snd_sof_dev *sof_dev, void __iomem *addr,
104 u64 (*read64)(struct snd_sof_dev *sof_dev,
108 void (*block_read)(struct snd_sof_dev *sof_dev, u32 bar,
111 void (*block_write)(struct snd_sof_dev *sof_dev, u32 bar,
120 int (*send_msg)(struct snd_sof_dev *sof_dev,
124 int (*load_firmware)(struct snd_sof_dev *sof_dev); /* mandatory */
125 int (*load_module)(struct snd_sof_dev *sof_dev,
131 int (*fw_ready)(struct snd_sof_dev *sdev, u32 msg_id); /* optional */
134 int (*pcm_open)(struct snd_sof_dev *sdev,
137 int (*pcm_close)(struct snd_sof_dev *sdev,
141 int (*pcm_hw_params)(struct snd_sof_dev *sdev,
147 int (*pcm_hw_free)(struct snd_sof_dev *sdev,
151 int (*pcm_trigger)(struct snd_sof_dev *sdev,
156 snd_pcm_uframes_t (*pcm_pointer)(struct snd_sof_dev *sdev,
160 void (*ipc_msg_data)(struct snd_sof_dev *sdev,
165 int (*ipc_pcm_params)(struct snd_sof_dev *sdev,
170 int (*pre_fw_run)(struct snd_sof_dev *sof_dev); /* optional */
171 int (*post_fw_run)(struct snd_sof_dev *sof_dev); /* optional */
174 int (*suspend)(struct snd_sof_dev *sof_dev); /* optional */
175 int (*resume)(struct snd_sof_dev *sof_dev); /* optional */
176 int (*runtime_suspend)(struct snd_sof_dev *sof_dev); /* optional */
177 int (*runtime_resume)(struct snd_sof_dev *sof_dev); /* optional */
178 int (*runtime_idle)(struct snd_sof_dev *sof_dev); /* optional */
179 int (*set_hw_params_upon_resume)(struct snd_sof_dev *sdev); /* optional */
182 int (*set_clk)(struct snd_sof_dev *sof_dev, u32 freq); /* optional */
187 void (*dbg_dump)(struct snd_sof_dev *sof_dev,
189 void (*ipc_dump)(struct snd_sof_dev *sof_dev); /* optional */
192 int (*trace_init)(struct snd_sof_dev *sdev,
194 int (*trace_release)(struct snd_sof_dev *sdev); /* optional */
195 int (*trace_trigger)(struct snd_sof_dev *sdev,
199 int (*get_bar_index)(struct snd_sof_dev *sdev,
201 int (*get_mailbox_offset)(struct snd_sof_dev *sdev);/* mandatory for common loader code */
202 int (*get_window_offset)(struct snd_sof_dev *sdev,
212 void (*dsp_oops)(struct snd_sof_dev *sdev, void *oops);
213 void (*dsp_stack)(struct snd_sof_dev *sdev, void *oops,
248 struct snd_sof_dev *sdev;
300 struct snd_sof_dev *sdev;
310 struct snd_sof_dev *sdev;
326 struct snd_sof_dev *sdev;
340 struct snd_sof_dev *sdev;
350 struct snd_sof_dev *sdev;
362 struct snd_sof_dev { struct
459 void snd_sof_new_platform_drv(struct snd_sof_dev *sdev); argument
461 int snd_sof_create_page_table(struct snd_sof_dev *sdev,
468 int snd_sof_load_firmware(struct snd_sof_dev *sdev);
469 int snd_sof_load_firmware_raw(struct snd_sof_dev *sdev);
470 int snd_sof_load_firmware_memcpy(struct snd_sof_dev *sdev);
471 int snd_sof_run_firmware(struct snd_sof_dev *sdev);
472 int snd_sof_parse_module_memcpy(struct snd_sof_dev *sdev,
474 void snd_sof_fw_unload(struct snd_sof_dev *sdev);
475 int snd_sof_fw_parse_ext_data(struct snd_sof_dev *sdev, u32 bar, u32 offset);
480 struct snd_sof_ipc *snd_sof_ipc_init(struct snd_sof_dev *sdev);
481 void snd_sof_ipc_free(struct snd_sof_dev *sdev);
482 int snd_sof_ipc_reply(struct snd_sof_dev *sdev, u32 msg_id);
483 void snd_sof_ipc_msgs_rx(struct snd_sof_dev *sdev);
484 int snd_sof_ipc_stream_pcm_params(struct snd_sof_dev *sdev,
486 int snd_sof_dsp_mailbox_init(struct snd_sof_dev *sdev, u32 dspbox,
489 int snd_sof_ipc_valid(struct snd_sof_dev *sdev);
493 struct snd_sof_widget *snd_sof_find_swidget(struct snd_sof_dev *sdev,
495 struct snd_sof_widget *snd_sof_find_swidget_sname(struct snd_sof_dev *sdev,
498 struct snd_sof_dai *snd_sof_find_dai(struct snd_sof_dev *sdev,
502 struct snd_sof_pcm *snd_sof_find_spcm_dai(struct snd_sof_dev *sdev, in snd_sof_find_spcm_dai()
515 struct snd_sof_pcm *snd_sof_find_spcm_name(struct snd_sof_dev *sdev,
517 struct snd_sof_pcm *snd_sof_find_spcm_comp(struct snd_sof_dev *sdev,
520 struct snd_sof_pcm *snd_sof_find_spcm_pcm_id(struct snd_sof_dev *sdev,
527 int snd_sof_ipc_stream_posn(struct snd_sof_dev *sdev,
545 int snd_sof_init_topology(struct snd_sof_dev *sdev,
547 int snd_sof_load_topology(struct snd_sof_dev *sdev, const char *file);
548 int snd_sof_complete_pipeline(struct snd_sof_dev *sdev,
551 int sof_load_pipeline_ipc(struct snd_sof_dev *sdev,
558 int snd_sof_init_trace(struct snd_sof_dev *sdev);
559 void snd_sof_release_trace(struct snd_sof_dev *sdev);
560 void snd_sof_free_trace(struct snd_sof_dev *sdev);
561 int snd_sof_dbg_init(struct snd_sof_dev *sdev);
562 void snd_sof_free_debug(struct snd_sof_dev *sdev);
563 int snd_sof_debugfs_io_item(struct snd_sof_dev *sdev,
567 int snd_sof_debugfs_buf_item(struct snd_sof_dev *sdev,
570 int snd_sof_trace_update_pos(struct snd_sof_dev *sdev,
572 void snd_sof_trace_notify_for_error(struct snd_sof_dev *sdev);
573 void snd_sof_get_status(struct snd_sof_dev *sdev, u32 panic_code,
577 int snd_sof_init_trace_ipc(struct snd_sof_dev *sdev);
614 static inline void sof_stack(struct snd_sof_dev *sdev, void *oops, u32 *stack, in sof_stack()
621 static inline void sof_oops(struct snd_sof_dev *sdev, void *oops) in sof_oops()
632 void sof_io_write(struct snd_sof_dev *sdev, void __iomem *addr, u32 value);
633 void sof_io_write64(struct snd_sof_dev *sdev, void __iomem *addr, u64 value);
634 u32 sof_io_read(struct snd_sof_dev *sdev, void __iomem *addr);
635 u64 sof_io_read64(struct snd_sof_dev *sdev, void __iomem *addr);
636 void sof_mailbox_write(struct snd_sof_dev *sdev, u32 offset,
638 void sof_mailbox_read(struct snd_sof_dev *sdev, u32 offset,
640 void sof_block_write(struct snd_sof_dev *sdev, u32 bar, u32 offset, void *src,
642 void sof_block_read(struct snd_sof_dev *sdev, u32 bar, u32 offset, void *dest,
645 int sof_fw_ready(struct snd_sof_dev *sdev, u32 msg_id);
647 void intel_ipc_msg_data(struct snd_sof_dev *sdev,
650 int intel_ipc_pcm_params(struct snd_sof_dev *sdev,
654 int intel_pcm_open(struct snd_sof_dev *sdev,
656 int intel_pcm_close(struct snd_sof_dev *sdev,