Lines Matching refs:sdev

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,
179 int (*set_hw_params_upon_resume)(struct snd_sof_dev *sdev); /* 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,
217 #define sof_arch_ops(sdev) ((sdev)->pdata->desc->arch_ops) argument
248 struct snd_sof_dev *sdev; member
300 struct snd_sof_dev *sdev; member
310 struct snd_sof_dev *sdev; member
326 struct snd_sof_dev *sdev; member
340 struct snd_sof_dev *sdev; member
350 struct snd_sof_dev *sdev; member
459 void snd_sof_new_platform_drv(struct snd_sof_dev *sdev);
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() argument
507 list_for_each_entry(spcm, &sdev->pcm_list, list) { 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() argument
617 if (sof_arch_ops(sdev)->dsp_stack) in sof_stack()
618 sof_arch_ops(sdev)->dsp_stack(sdev, oops, stack, stack_words); in sof_stack()
621 static inline void sof_oops(struct snd_sof_dev *sdev, void *oops) in sof_oops() argument
623 if (sof_arch_ops(sdev)->dsp_oops) in sof_oops()
624 sof_arch_ops(sdev)->dsp_oops(sdev, 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,